top-execute and exit
Is there a way to execute top command once and exit...i.e. stop refreshing window and continue console without pressing 'q' or 'ctrl+c'...
|
Hi,
Have a look at the man page of top: Code:
man top Code:
top -n 1 Kind regards, Eric |
In addition you may consider the -b (batch) option in conjunction with -n. This will produce an output formatted for interacting with other programs and will give the complete list of processes (not only those ones you can see in the limited amount of rows in the current terminal):
Code:
top -b -n 1 PS - Hi, Eric! :) |
Quote:
What's up? How are you? And most important: Happy New Year! Kind regards, Eric |
All times are GMT -5. The time now is 01:13 AM. |