How to redirect the standard output and the standard error in Unix
Sometimes you need to redirect the standard output (stdout) and / or the standard error (stderr). > or 1> redirects the stdout and 2> redirects the stderr. 1. Redirecting the stdout to file: command 1> file # ls /etc/grub.d/ >…