Finding large files

I had noticed that my disk usage was very high for some weird reason so in an attempt to locate the offender(s) i found the following command very useful.

du -a * | sort -rn > disk-usage.log

It simply takes the current directory and lists out the size of each sub-directory from largest to smallest into a nice log file.

If you are interested in how large the packages you have installed are on your Debian server you can run the following

dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -rn

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <p> <a> <em> <strong> <ul> <ol> <li> <b> <strong> <i> <u> <img> <br> <br/>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

Recent flickr photos

Diving in Crete
Crete sunset
Residence in cliff
Tommy
Diving in crete
Crete
Crete
Athens
Athens
Athens

Recent tracks

  • Lullabies To Paralyze
  • Five Songs and a Cover
  • Finding Beauty In Negative Spaces
  • Rage Against the Machine
  • Scream
  • Weezer (Blue)
  • Stadium Arcadium (disc 1: Jupiter)
  • Them Crooked Vultures