Lab 3

LAB 3

In Lab 3, I will show how the following commands operate.

>

append

 

TheĀ >Ā command is use to redirect and output to the std out.

>>

append 2

TheĀ >> commandĀ is used to redirect and append. it can be use to redirect without replacing the files inside the Ā file.

|

pipe 1

 

pipe

The commandĀ |Ā is called the pipeline operator. it allows you to redirect the output of one command and pipe it as input to another.

head

cat

 

head

 

theĀ headĀ  command is use to display the first Ā 10 lines of file

tail

cat

tail

 

TheĀ tailĀ  command s used to display the last 10 lines of a file

echo

echo

 

TheĀ echoĀ command is use to display a line of a text.

 

Leave a Reply

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