[CentOS] top command

John Doe

jdmls at yahoo.com
Thu Oct 24 14:33:19 UTC 2013


From: Kaushal Shriyan <kaushalshriyan at gmail.com>

> I am running CentOS 6.4 on a remote server. when i run the below command,
> it prints out the headers too. is there a way to remove headers using the
> below command line
> *top -b -p 22657 > topcpu.txt*

If you want to stick to top:
  top -b -p 22657 | grep -v '^[a-z ]\|^$'

JD



More information about the CentOS mailing list