Simplify your business
Tuesday, 7 October 2008 1:00 pm

Disk usage

Sunday, 24 July 2005  

As a Linux developer, sometimes you need to know how much space is taken up by files in a directory. The following command shows all files in the current directory, ordered by descending file size:

du -s /home/users/ivan/ * | sort -nr

Especially useful when you need to identify the largest files in a directory.

Posted in Linux, Tips by Ivan
Blinklist icon Del.iocio.us icon Furl icon Reddit icon Technorati icon Yahoo! icon

Got something to say?

To protect your privacy, your email address will not be displayed.





Some basic rules for commenting:

  • Watch your language.
  • Keep comments on-topic and relevant.
  • You can use basic XHTML tags for formatting and linking but not bbcode.
  • Comments are moderated, so don't double post if your comment doesn't appear immediately.
  • Please proof-read your comments for spelling and grammar mistakes.
  • Watch your language.