Capturing output of top command
We have RHEL 5.11 in our production environment. I had some confirmation and some observation with capturing output of top command.
1) To capture top output, top –n 3 –b > top.lst should be fine? 2) I had observation that top command output can be very long which may not be evident if we give top at prompt and do Ctrl+C. This was an observation that the top command at prompt could be displaying only 1 screen at a time whereas the complete output of top command can be 3 page scrolls. I hope, I have been able to explain my query and observation with regard to capturing output of top command. Requesting a reply to my query. Regards |
Yes.
Yes. |
The command will do three iternations of the top command and be formatted for being send to a text file.
Code:
-b :Batch-mode operation Code:
-n :Number-of-iterations limit as: -n number |
All times are GMT -5. The time now is 01:10 PM. |