Nate Weiner

  • Archive
  • RSS

Find the Files/Folders Taking Up the Most Space in Unix

If you’re logged into your server and trying to pin down what folders are taking up the most space on your hard drive, there are simple commands to compile an organized list. First, to see the disk space usage of your drives and partition, run:

df
This will output a list of all drives/partitions on your system, the size, usage and percent used. If you’d like to see all of the folders in a particular directory sorted by their filesize use the du command.
du -ks ./* | sort -n
    • #linux
    • #unix
  • 3 years ago
  • 9
  • Permalink
  • Share
    Tweet

9 Notes/ Hide

  1. gloria2fg liked this
  2. 9while9 reblogged this from nateweiner
  3. nateweiner posted this
← Previous • Next →

About

Prototyper, water waster, developer of Read It Later.

 

Follow

Twitter: @NateWeiner
Vimeo: Nate Weiner
500px: Nate Weiner
Blog: RSS

Pages

  • Contact
  • RSS
  • Random
  • Archive
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr