Lab 3
Commands and Operators in Linux
> Operator-
Redirects output to a file.
< Operator-
Redirects input.
cat <lab.txt
| Operator-
Redirects the output of one command and pipe it as input to another
ls /usr/bin|sort
grep command-
Allows user to find special patterns within files and displays the lines to the user.
head command-
PrintsĀ the first ten lines in a file.
tail command-
Prints the last 10 lines in a file.
echo command-
Used to display a line of text.