March 2002
Beginner
504 pages
10h 47m
English
As you have seen in previous chapters, most commands produce output. For example, the command
$ date
produces the current date in the terminal window:
Thu Nov 12 16:32:35 PST 2001
When a command produces output that is written to the terminal, you say that the program has printed its output to the Standard Output, or STDOUT. When you run the date command, it prints the date to STDOUT. You have also seen commands produce error messages, such as:
$ ln –s ch01.doc ch01-01.doc ln: cannot create ch01-1.doc: File Exists
Error messages are not written to STDOUT, but instead they are written to a special type of output called Standard Error or STDERR, which is reserved for error messages. Most commands use STDERR for error messages and STDOUT ...
Read now
Unlock full access