Process I/O Redirection

> filename

Redirects standard output to a file.

>> filename

Appends standard output to a file.

< filename

Redirects standard input from a file.

2> filename

Redirects standard error to a file.

&> filename

Redirects both standard output and error to a file.

& - Running Command in Background

Use the & to do this.

For example, if you want to copy a large file, you can use this to keep the terminal free while a long task takes place.

&& - Stringing Commands

The && lets you run multiple commands in the same line

Last updated

Was this helpful?