Lab 3

In lab 3 we learned about many more different commands that have to do with redirection, pipelines, patterns and expansions. The name of the commands are listed below along with a screenshot of how it works and a description about what it does.

Commands:

A. > : redirects output to a file.

greater than symbol

B. < : Redirects input to a file.

less than symbol

C.  | : redirects the output of one command and pipe it as input to another.

vertical bar 1

vertical bar 2

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

grep

E. Head : Prints the first ten lines of a file.

head

F. Tail: Prints last ten lines of a file.

tail

G. Echo: Used to display a line of text.

echo

Leave a Reply

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