0% found this document useful (0 votes)
16 views25 pages

Lesson 2 - Exploring Linux Command-Line Tools - Part 1

This document covers several Linux command line tools including navigating directories with commands like pwd, ls, and cd. It also discusses getting help on commands using man and history, setting environment variables, and searching files using regular expressions. The objectives are to work on the command line, process text streams using filters, use streams and pipes, search files using regular expressions, and perform basic file editing.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views25 pages

Lesson 2 - Exploring Linux Command-Line Tools - Part 1

This document covers several Linux command line tools including navigating directories with commands like pwd, ls, and cd. It also discusses getting help on commands using man and history, setting environment variables, and searching files using regular expressions. The objectives are to work on the command line, process text streams using filters, use streams and pipes, search files using regular expressions, and perform basic file editing.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 25

Lesson 2: Exploring Linux

Command-Line tools

This document is created by Nguyen Hoang Chi [email protected] Page 1


Objectives covered

o 103.1 Work on the command line (weight: 4)


o 103.2 Process text streams using filters (weight: 2)
o 103.4 Use streams, pipes, and redirects (weight: 4)
o 103.7 Search text files using regular expressions (weight: 3)
o 103.8 Basic file editing (weight: 3)

This document is created by Nguyen Hoang Chi [email protected] Page 2


Work on the command line

This document is created by Nguyen Hoang Chi [email protected] Page 3


Linux Shell

This document is created by Nguyen Hoang Chi [email protected] Page 4


Choose a shell

- Bash (commonly default linux shell)


- Dash
- Kornshell (ksh)
- Z shell (zsh)
- Tcsh
- ...

This document is created by Nguyen Hoang Chi [email protected] Page 5


Logging in and out

This document is created by Nguyen Hoang Chi [email protected] Page 6


Password manipulation

This document is created by Nguyen Hoang Chi [email protected] Page 7


Command syntax:

Command [option] [argument]

This document is created by Nguyen Hoang Chi [email protected] Page 8


Command syntax:

This document is created by Nguyen Hoang Chi [email protected] Page 9


date and cal command

This document is created by Nguyen Hoang Chi [email protected] Page 10


clear and echo command

This document is created by Nguyen Hoang Chi [email protected] Page 11


who and finger command

This document is created by Nguyen Hoang Chi [email protected] Page 12


Path name

This document is created by Nguyen Hoang Chi [email protected] Page 13


Navigating directories commands:

pwd ls cd

- Absolute & Relative path


- cd shortcuts: “$HOME” “..” “~” “-”

This document is created by Nguyen Hoang Chi [email protected] Page 14


Evironment variables:

This document is created by Nguyen Hoang Chi [email protected] Page 15


Getting help on commands:

man (manual)
history

This document is created by Nguyen Hoang Chi [email protected] Page 16


man command

This document is created by Nguyen Hoang Chi [email protected] Page 17


man command

This document is created by Nguyen Hoang Chi [email protected] Page 18


man command

This document is created by Nguyen Hoang Chi [email protected] Page 19


history command

This document is created by Nguyen Hoang Chi [email protected] Page 20


history command

This document is created by Nguyen Hoang Chi [email protected] Page 21


history command

This document is created by Nguyen Hoang Chi [email protected] Page 22


history command

This document is created by Nguyen Hoang Chi [email protected] Page 23


Time for labs

Execise 1: Exploring Linux Command-line


tools – Part 1

This document is created by Nguyen Hoang Chi [email protected] Page 24


Question...!

This document is created by Nguyen Hoang Chi [email protected] Page 25

You might also like