Quick Linux tip💡 🐧
In Linux, the pipe(|) is very useful if you want to redirect the output of one command to serve as input to the next for further processing. However, this doen't redirect its errors.
What if you want to redirect and process both errors and normal output🤔
In Linux, the pipe(|) is very useful if you want to redirect the output of one command to serve as input to the next for further processing. However, this doen't redirect its errors.
What if you want to redirect and process both errors and normal output🤔
The "|&" redirection operator in bash is a shorthand for the "2>&1 |" operator.
$ command1 2>&1 | command2
Follow us (@linuxopsys) for more byte sized Linux tips and be a better informed Linux user 🐧😎
$ command1 2>&1 | command2
Follow us (@linuxopsys) for more byte sized Linux tips and be a better informed Linux user 🐧😎
Loading suggestions...