Resource Monitoring

echo "DISK:";df -Pl | grep -v "Filesystem" | awk '{print $5,$6}' ; echo "MEM:" ; free -mto | awk '{ print $1,$2,$3,$4 }'; echo "CPU:"; top -b -d1 -n1 | grep Cpu | awk '{print $2,$3,$4,$5,$6,$7,$8,$9}';echo "LOAD:"; cat /proc/loadavg
Monitoring system in one line : DISK : disk space MEM: memory ( mem , swap, Total) CPU : all information about cpu activity LOAD : load average
Sample Output
DISK:
94% /
6% /boot
0% /dev/shm
MEM:
total used free shared
Mem: 7983 7580 403
Swap: 12287 6 12281
Total: 20271 7586 12685
CPU:
0.3%us, 0.2%sy, 0.1%ni, 98.2%id, 1.1%wa, 0.0%hi, 0.1%si, 0.0%st
LOAD:
0.02 0.03 0.00 1/417 15018

What Others Think

A very complex yet effective programming command has been revealed by you for source monitoring. I am thinking to hire eduvikings for help in essays. Chosen operators are very good in this command. I would like to stick with this programming code in future.
tinakutch · 25 weeks and 4 days ago
Thanks for helping me with this difficult command and assisting me with my college assignment. Before hiring anyone to help me with essays I visit handmadewriting review source. I have seen that you provide solution of every coding issues and also help us debugging the program.
HayleyRice · 9 weeks and 5 days ago
Minnesota is a Midwestern U.S. state bordering Canada and Lake Superior, the largest of the Great Lakes. The state contains more than 10,000 other lakes, including Lake Itasca, the Mississippi River’s primary source. MaxRemind top rank medical billing company offer Medical Billing Services in Minnesota , home health agency software and medical credentialing services in Minnesota.
stevematt · 6 weeks and 3 days ago
The easy but yet looking very complicated command to use still, I will give it a try because I love to solve intricated problems. I have got Screenshot for MacOS and now I will capture screenshot of this command. Thanks for sharing this useful command with us using this amazing platform.
HayleyRice · 3 weeks and 1 day ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: