Just started learning UNIX so the question might seem really newbie but would appreciate the answer, as I've been trying to work it out on my own for an hour already with google's help, with no success however.
cat /etc/shadow 2>&1 | wc -l
What would be the effect of this command? My guess is:
- The command prints the line count of “/etc/shadow”, if there is a standard error, it will be redirected to standard output and the error lines will be counted.
- The command prints the files of “/etc/shadow”, if there is a standard error, it will be redirected to standard output and the error's lines will be counted.