What is the purpose of the tee command? Give an example of the use of this command.
What will be an ideal response?
The tee command allows you to redirect the output of a command to one or more files as well as the standard output of the command (which can be redirected to a file or sent to another command via a pipe). The following command display the terminal information for the user sarwar as well as saves this information in the sarwar.terminal file.
who | grep “sarwar” | tee sarwar.terminal
You might also like to view...
The function call string1.erase( 5 ) will:
a. Return a copy of string1 minus the character that occupied position 5. b. Erase all characters up to and including the character in position 5 from string1. c. Erase all characters starting from and including the character in position 5 to the end of string1. d. Return a copy of string1 minus every fifth character.
Which of the following threats must financial institutions address?
A) Denial of service B) Unauthorized access C) Malware D) All of the above