replicate standard output to a specific file

The tee command replicates the standard output to both your terminal and an output file (here output.txt) :

[pene@donunix] ps -u pene | tee output.txt

No comments: