Professional Documents
Culture Documents
Unit objectives
Redirect the input and output of a command
Course ILT
Interprets commands
Can manipulate command input and
output using shell metacharacters
File descriptors
Standard Input (stdin)
– Represent information input to a
Course ILT
another command
Pipe
– A string of commands connected by the
“|” metacharacter
Course ILT Piping information
Course ILT Using multiple pipes
Course ILT Common filter commands
Course ILT Activity A-2
different users
Load variables at log in
Environment file execution
Order:
1. /etc/profile
Course ILT
2. ~/.bash_profile
3. ~/.bash_login
4. ~/.profile
Course ILT Activity B-2
to execute in order
Can enter commands just as a user
would
Escape sequences
continued
Course ILT Decision constructs, continued
if construct rules
– elif (else if) and else statements are
optional
Course ILT
Syntax
– command && command
– command || command
Course ILT Activity C-2
keystrokes
Course ILT Activity D-1
remember
Set HISTSIZE environment variable
Course ILT Activity D-2