File size
Dear All,
I have a server that is constantly losing disk space. What is the good way to find which files size is increasing and by how much. Will it be possible to find which files size is increased by how much?? Thanks in advance |
I'd expect a linux server administrator to know how to do that already or at least find out in a more efficient manner. Try the du command with a depth of 1 and sort the output numerically. Do that from the root directory and work your way down starting with the directory taking up the most amount of space. (Hint it's usually a log file that isn't rotating frequently enough, possibly in the /var directory).
|
lsof will probably help. this is what i do from time to time:
Code:
sudo find / -type f -printf "%s \t\t%p\n" | sort -nr > ~/file-sizes.txt |
^ Is your name Willie or are you talking about me?
|
He doesn't seem to be talking about anyone. Schneidz gave the correct and fastest answer. Thats all.
|
Quote:
|
|
Thanks a lot to you all for your replies...
|
All times are GMT -5. The time now is 12:12 AM. |