CompTIA Linux+ XK0-005 Practice Question
An administrator is writing a shell script where the output of a command needs to be both displayed on the screen and written to a file for logging purposes. Which command and operator should the administrator use to achieve this?
Using the
tee
command with the|
operatorAppending the output to a file using the
>>
operatorRedirecting output using the
>
operatorPiping the output to another command with the
|
operator