Saturday, 24 August 2019

Linux redirection

> - redirects standard output to file, overwrite a file

>> - appends standard output to file

< - redirects input from a file

Linux Input/Output

0 - stdin standard input

1 - stdout standard output

2 - stderr standard error

Combine standard error and standard output

2>&1

Redirect standard output and standard output to file

$command &>file

No comments: