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
The previous command has to successfully run or the following commands will not execute.
Last updated
Was this helpful?