Lab 3

Lab 3

Commands and Operators in Linux

> Operator-

Redirects output to a file.

>_operator

< Operator-

Redirects input.

cat <lab.txt

<_operator

| Operator-

Redirects the output of one command and pipe it as input to another

ls /usr/bin|sort

|_operator

grep command-

Allows user to find special patterns within files and displays the lines to the user.

grep

head command-

Prints the first ten lines in a file.

head

tail command-

Prints the last 10 lines in a file.

tail

echo command-

Used to display a line of text.

echo

Leave a Reply

Your email address will not be published. Required fields are marked *