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?
Redirecting output using the
>
operatorUsing the
tee
command with the|
operatorPiping the output to another command with the
|
operatorAppending the output to a file using the
>>
operator