Web Hosting Talk







View Full Version : / getting full how to locate unwanted files


carpman
07-07-2001, 08:12 AM
Subject is bit long but means what it says :D

my / partition is at 82% i did have a bookmark that gave instruction on how to locate the biggest files on a partition so i can delete them (if safe to do so).

anyone know what commands to use?

MrGoodHost
07-07-2001, 08:24 AM
show BYTE usage for everything mounted on your machine
type: df -k

More info here : http://vulcan.wr.usgs.gov/HowTo/info.spaceleft.html

carpman
07-07-2001, 10:05 AM
Hi, this tells me that / is nearly full, but i want to identitfy which files are causing the partition to be full

Madman2020
07-07-2001, 02:19 PM
You can also run df -hs or df -ks on a particular directory off of / which will give you the amount of space on that dir.

Annette
07-07-2001, 02:44 PM
du -sh * | grep M

I'd say if it's / to look in /tmp first. You can run the above from the root and migrate down into the directories that are listed as having the largest size. Run it from within those directories, and you'll get the files that are larger than a meg. Simple way to make a quick pass for cleanup purposes.