Groups
Groups
Sign in
Groups
Groups
Learnadmin
Conversations
About
Send feedback
Help
[LearnAdmin] Single command to get CPU usage % in linux
14 views
Skip to first unread message
Naresh Surampudi
unread,
Apr 12, 2013, 3:15:51 AM
4/12/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to learnadmin+g...@googlegroups.com
top -bn1 | grep "Cpu(s)" | sed "s/.*, *\([0-9.]*\)%\id.*/\1/" | awk '{print 100 - $1"%"}'
--
Posted By Naresh Surampudi to
LearnAdmin
at 4/12/2013 12:45:00 PM
Reply all
Reply to author
Forward
0 new messages