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.

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.