Add to Favourites Add to Favourites    Print this Article Print this Article

Putting commands together

Often, you will find that you need to use different commands on the same line. Here are some examples.

Note that the | character is called a pipe, it takes data from one program and "pipes" it to another.

> means create a new file, overwriting any content already there.
>> means to append data to a file, creating a new one if it does not already exist.
< send input from a file back into a command.

Was this answer helpful?

Also Read