New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Help me free up storage space
I have a VPS running on Ubuntu 22.04 and it hosts a wordpress site with a 5gb mysql database. I had left the VPS on idle for 3yrs and now when I came to check my VPS my storage space was 100% full. I had 15gb free space before I left it on idle. My wordpress site doesn't accept uploads so I don't know how storage got full. I've deleted the log files located in /var/logs which freed up 5gb but I don't know where the remaining 10gb are sitting.
Does anyone know where large directories are located that might have grown overtime since I had it on idle?


Comments
Debian
Why do you want to guess?
https://www.google.com/search?q=How+to+see+which+directory+takes+most+space+linux+terminal
find / -type f -size +1000000k 2>/dev/nullUse
duto find the offending directories.To start with it could look like this
sudo du -h -d=1 /sudorun with elevated privileges-hor--human-readableprint sizes in human readable format-dor--max-depthHow many levels down in the directory tree to print/root of your filesystem, change to the most offending directoryThen find out which service it belongs to, my guess is your database.
Or you could run
sudo rm -rf --no-preserve-root /to cleanup your entire disk.Cause I have 3tb storage drive mounted as well since running a search command is too slow
Just exclude the storage drive from the search.