What is output redirection? How is it performed in UNIX/Linux?
What will be an ideal response?
In UNIX/Linux, the greater-than sign (>) is called an output redirection operator. You can use this redirection operator to create a new file or overwrite an existing file by attaching it to a command that produces output. In effect, you redirect the output to a disk file instead of to the monitor. For example, if you type who > current_users and press Enter, this creates a file called current_users that contains the information from the who command.
Redirecting output is useful in many circumstances. For example, when you monitor a system, you might redirect output to a file that you can examine later. Or, you might have a program or report-generating utility that manipulates data so that you can redirect the results to a file instead of to the screen. You learn about other redirection operators later in this book, but, for now, the > operator is a good starting point.
You might also like to view...
When the fuel pressure regulator is deactivated, the fuel pressure defaults to ________
A) 60 PSI B) Acceleration mode C) Low pressure mode D) High pressure mode
Agronomy and horticulture are:
A. terms that are no longer used. B. are simple practices that require little education to perform. C. are the production of field crops and intensely managed crops, respectively. D. are clearly distinct from one another.
Which of the following codes is not essential when placing a call to someone in another country?
A) subscriber number B) 011 C) area code D) country code
What are successive revolutions?
What will be an ideal response?