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.
Leave a Reply
You must be logged in to post a comment.
tee command
Print the results to the screen but also to a file.
You can enter more than one filename if you want multiple copies.
You must be logged in to post a comment.