Show all local disk and UFS mounts on Solaris

df -kFufs

0
By: mnikhil
2009-02-07 18:33:03
df

These Might Interest You

  • Adds up the used disk space on all hard drives that are directly connected to the machine (i.e. no network mounts etc.) Assumes there are no IDE drives present. Show Sample Output


    0
    echo $(df -BG | grep sd | awk '{print $3}' | paste -sd+ | tr -d G | bc) GiB used in total
    thureduehrsen · 2016-08-09 10:08:35 0
  • This helps quickly get information for each disk that is seemingly having hardware issues.


    -1
    iostat -En $(iostat -en|grep c#t|awk '$2 > 0 {print $NF}')
    unixmonkey28207 · 2011-12-09 15:54:28 0
  • Mounts a disk-image of a hdd with partitions


    0
    IMG="image.img";PART=1;mount -o loop,ro,offset=$(parted $IMG -s unit b print|awk '$1=='$PART' {sub(/B/,"",$2);print $2}') $IMG /mnt/whatever
    AndroTux · 2011-12-31 14:58:18 0
  • Show a simple table with disk IO for the specified host. you monitor a LOT of different thing. Mostly used for MRTG and similar, but this is nice for a quick look, which disk is busy. "public" is your SNMP community ensure that snmpd is running on the host which you intend to monitor Show Sample Output


    4
    watch -n1 snmptable -v2c -c public localhost diskIOTable
    oernii2 · 2010-03-19 11:31:52 0

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: