|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
What's eating my disk space
Hello,
I've got a server I inherited that is continually losing disk space. I've tried looking for large files, but am unable to find any offenders - please point me to any resources that may help as well. Thanks |
|
#2
|
||||
|
||||
|
use the 'du' command
|
|
#3
|
|||
|
|||
|
Thanks for your reply, I'm gonna look into it.
Also, I was able to find a large file before I posted that I deleted but it didn't release the file space it occupied - a reboot reallocated the disk space. |
|
#4
|
|||
|
|||
|
Quote:
that's weird, what OS are you running? how did you delete them? what command(s) did you use? |
|
#5
|
|||
|
|||
|
I'm running CentOS, and used the rm filename command.
|
|
#6
|
||||
|
||||
|
The file may have been open (was it a log file?) so space would not have been released by an rm - a cat /dev/null > filename (or just > filename) will make the file zero size, even it if it being actively used.
__________________
According to Sod's Law, buttered toast lands butter side down, when dropped. Per nature, cats always land on their feet. So, what happens when you strap buttered toast to the back of a cat and throw it out a window?. |
|
#7
|
|||
|
|||
|
kewl
|
|
#8
|
||||
|
||||
|
Use this:
du -h --max-depth=1 on / It will tell you exactly which directory is the culprit..Then you use it down the tree, and you find out where is the big file(s) located... du -h --max-depth=1 /var/log/apache2 (for example).. Hope it helps.
__________________
Google is my best friend |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Linux Help > What's eating my disk space |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|