Comments on: How to Save Top Command Output to a File https://www.tecmint.com/save-top-command-output-to-a-file/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Thu, 13 Jul 2023 12:18:58 +0000 hourly 1 By: Mukhtar https://www.tecmint.com/save-top-command-output-to-a-file/comment-page-1/#comment-1711795 Tue, 01 Feb 2022 12:15:33 +0000 https://www.tecmint.com/?p=28459#comment-1711795 Wonderful command saves my time.

for i in {1..4}; do sleep 2 && top -b -p 678 -n1 | tail -1 ; done >> cron.txt

]]>