top is a very useful tool to capture information about process running on Linux. Many times this information may need to be captured to a file. This can be done with the following command:
top -b -n1 > /tmp/top.txt
This will run top once write the output to a file and exit.
top can also be run so that it will give multiple repor...
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.