Linux Tips and Tricks

Linux Tips and Tricks

How to capture the output of the Top command

October20
Top command is used to display linux tasks

when you do top command it will show the highly cpu consumable process in the top list.

if you want to capture and process the output of the top command then, you need to add some parameters to the top command.

-b –> batch mode operation
-n –> how many iterations

simply execute the command top -b -n1

The above command will give the output of the top command, Try it out and let me know if you have any doubts..

posted under Uncategorized

Email will not be published

Website example

Your Comment:


Recent Comments

    Categories