Redirection
The term redirection encompasses the various ways you can cause the shell to alter where standard input of a command comes from and where standard output goes. As the previous section demonstrated, by default the shell associates standard input and standard output of a command with the window/screen and keyboard. You can cause the shell to redirect standard input and/or standard output of any command by associating the input or output with a command or file other than the device file representing the screen/keyboard. This section demonstrates how to redirect output to and input from ordinary text files and utilities.
Redirecting Standard Output
The redirect output symbol (>) instructs the shell to redirect the output of a command ...
Get A Practical Guide to Red Hat® Linux® 8 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.