Standard error
From Linux Shell Scripting Tutorial - A Beginner's handbook
- Standard error is the default error output device, which is used to write all system error messages.
- It is denoted by two number (2).
- Also known as stderr.
- The default standard input is the screen or monitor.
- 2> is input redirection symbol and syntax is:
command 2> errors.txt
For example, send find command errors to a file called fileerrors.txt, sothat you can review errors later on, enter:
find / -iname "*.conf" 2>fileerrors.txt cat fileerrors.txt
