How do I redirect in bash?

How do I redirect in bash?
Answer
In general you can
write command n>file, which will redirect the file descriptor n to file . Redirects the output of the ls command to the file_list file. Here bash redirects the stderr to file. The number 2 stands for stderr.
 

Tìm kiếm

Back
Top