Show Available Disk Usage | Pretty Way

clear && df -h | grep /dev/sda1 | awk {'print $4'} | lolcat -a -s 10
Shows available disk space on sda1 animated with colors
Sample Output
337G 

0
2016-08-10 21:42:38

These Might Interest You

  • print sum of disk usage for filetype within current dir and subdirs Show Sample Output


    0
    find . -name '*.xml' -type f -print | xargs du -ch
    nathwill · 2011-03-22 00:47:42 0
  • ncdu is a text-mode ncurses-based disk usage analyzer. Useful for when you want to see where all your space is going. For a single flat directory it isn't more elaborate than an du|sort or some such thing, but this analyzes all directories below the one you specify so space consumed by files inside subdirectories is taken into account. This way you get the full picture. Features: file deletion, file size or size on disk and refresh as contents change. Homepage: http://dev.yorhel.nl/ncdu Show Sample Output


    4
    ncdu directory_name
    bwoodacre · 2009-06-09 00:02:48 3
  • A short way to give us relevant report in a moment done about quantities on disk usage, memory and swap in our Linux Systems. Show Sample Output


    -9
    alias dfr='df;free'
    ximo88 · 2009-04-28 11:30:31 0
  • You also can sum the file usage of all files find /usr/lib -maxdepth 1 -type l -print0 | xargs -r0 du -Lch


    3
    find /usr/lib -maxdepth 1 -type l -print0 | xargs -r0 du -Lh
    starchox · 2009-03-07 00:17:45 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: