Lab 3

Lab 3 Description

In this lab I will show the following commands:

a. >
b. <
c. |
d. grep
e. head
f. tail
g. echo

 

foward

The “>” command in Linux will redirect output from stdout.

backward

The “<” command in Linux will redirect input.

l

Pipelines allows you to redirect the output of one command and pipe it as input to another
The operator is the vertical bar |.

grep

The command “grep” allows you to find text patterns within files. When grep finds the pattern, it prints out the lines containing it.

head

the command “head” prints the first 10 lines of a file.

tail

The command “tail” prints the last 10 lines of a file.

echo

The command “echo” is mainly used to display a line of text.

Leave a Reply

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