Friday, February 1, 2008

Fireleg disk space

du -chS

The -S separates each subdirectory and gives its size.
The -h makes sizes human readable.

discus is another great command, but I don't have apt-get to install it.
If I had it I would "apt-get install discus"

In /travis/jags_server1.4/dist/ I found nohup.out at 489M.
This is what was sucking up my diskspace, must have left System.out.println turned on, and had to rm nohup.out

lsof is a very interesting command to find open files, or files related to processes.

It also helped me find the disk usage problem.

And don't forget ls.
ls -haltr makes for nice output.

No comments: