dstat - a mix of vmstat, iostat, netstat, ps, sar...

dstat -ta
This is a very powerful command line tool to gather statistics for a Linux system. http://dag.wieers.com/home-made/dstat/
Sample Output
dstat -ta
-----time----- ----total-cpu-usage---- -dsk/total- -net/total- ---paging-- ---system--
  date/time   |usr sys idl wai hiq siq| read  writ| recv  send|  in   out | int   csw
02-04 10:21:18|  3   9  83   3   0   1|7021B  112k|   0     0 |3382B  134B| 109   176
02-04 10:21:19| 45   8  45   0   0   2|   0     0 | 186k   22k|   0     0 | 354   405
02-04 10:21:20| 38  12  50   0   0   0|   0     0 |  21k 9137B|   0     0 |  94   148

By: vutcovici
2009-04-02 14:19:12

What Others Think

Use dstat -ta --output /dir/file.csv to save the output to a comma-delimited file. Feed the CSV file to OpenOffice spreadsheet and make a pretty graph for the Boss.
SuperFly · 631 weeks and 5 days 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: