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...
A pending code is set when a fault is detected on ________
A) A one-trip fault item B) The catalytic converter efficiency test C) The first fault of a two-trip failure D) A thermostat problem (too long to closed-loop status)
Glass pipe joints are similar in design to
A. hubbed cast iron joints B. plastic pipe joints C. hubless cast iron joints D. threaded steel joints
A single spring, multiple springs, or metal bellows are all examples of the _____ that are found in mechanical seals
A) primary faces B) packing materials C) sealing surfaces D) closing mechanisms
A heat pump system could have two liquid line driers instead of using a bidirectional drier.
Answer the following statement true (T) or false (F)