Archive for the tag 'tee'

SBDavid

tee command

tee command

Print the results to the screen but also to a file.

ps -e | grep apache | tee apache-processes.txt

You can enter more than one filename if you want multiple copies.