How to Piping Commands Together

In Linux, The pipe character, “|” is used by Linux Hosting professionals to concatenate two or more commands together. The output of the first command is “piped” into the next program, and if there is a second pipe, the output is sent to the third program, etc.

Example:
ls -la /usr/bin | less

The above command used by Linux hosting professionals gives a long listing of all of the files in /usr/bin. Due to long output we pipe the
output to a program called “less”, which displays the output for us one screen at a time.

Rate this post:


1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
Loading ... Loading ...