Apple Mac OS X Server Command-Line Specifications Page 19

  • Download
  • Add to my manuals
  • Print
  • Page
    / 58
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 18
19
Use this chapter to learn about using the command-line by
typing in commands.
You can use the command-line environment in Mac OS X and Mac OS X Server
interactively by typing a command and waiting for a result, or you can use the shell
to compose scripts that run without direct interaction. This chapter discusses using
the command-line environment interactively.
For more information about using a particular shell interactively, see the man page for
that shell.
Standard Pipes
Many commands can receive text input from the user and print text to the console.
They do so using standard pipes, which are automatically created by the shell and
passed to the command.
Standard pipes include:
 stdin—The standard input pipe is where command input enters a command.
By default, the user enters input from the command-line interface. You can redirect
the output from les or other commands to stdin.
 stdout—The standard output pipe is where command output is sent. By default,
command output is sent to the command line. You can redirect the output from the
command line to other commands and tools.
 stderr—The standard error pipe is where error messages are sent. By default, errors
are displayed on the command line along with standard output.
2
Using the Command-Line Shell
Interactively
Page view 18
1 2 ... 14 15 16 17 18 19 20 21 22 23 24 ... 57 58

Comments to this Manuals

No comments