How to dump top Command Output to a File?
The top is one of the most frequently used command by system administrative. It provides a dynamic real-time display of all running tasks. It display full system summary with a list of processes and threads which are controled by the Linux kernel.You can save real time viewing of the running system by using '-n' and '-b' option.Where;'-n' - option specifies the maximim number of iteration i.e. if you want to save the output one time then type '1' as shown in the command.'b' - option is used when you wnat to save the 'top' output to other program or file.and to see the saved output from the file use cat command. As shown below:1. To save 'top' output with single iterationBelow command will save the top command output with '1' iteration i.e. output will be save one time.