One important thing to do is house keeping your disk space in your computer. I use Ubuntu server to keep files, sharing drive, store music collections, download things from internet, time machine backup drives, photo and video collections, etc. I also setup shared folders for family usage to exchange files between computers in my network.
In many cases, most of files in the server are no longer needed after few months. Those files are only sitting there abandoned and never be used again.
In this article I will share few easy steps that I regularly do. I prefer do the house keeping manually, make sure I carefully delete files and folders that I don't use anymore.
Open your terminal, then check your physical drives:
sudo fdisk -l
Then check available space on each volume:
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 71G 10G 57G 15% /
udev 1.6G 4.0K 1.6G 1% /dev
tmpfs 656M 812K 655M 1% /run
none 5.0M 8.0K 5.0M 1% /run/lock
none 1.7G 0 1.7G 0% /run/shm
/dev/sdb1 278G 263G 15G 95% /media/files
/dev/sdc1 489G 481G 7.9G 99% /media/backup
/dev/sdc2 444G 94G 350G 22% /media/share
You can see few of volumes are almost full. Then you can go to each volume to check which files you plan to delete.
ls -lha /your_folder_name
To delete a folder type this command:
sudo rm -rfv /your_folder_name/
Please be caution that the command will delete the entire folder including all subfolders and files. Make sure you have checked its contents carefully. Now you have more space in your drives.