How to remove temp files with a command other then "apt-get autoremove"? [closed]

Try the below command to remove temp files,

sudo rm -rf /tmp/*

apt-get autoremove will remove automatically all unused packages.


You can use Ubuntu-tweak (see http://ubuntu-tweak.com/downloads/) to clean your Ubuntu installation ;)

If you have an SSD hard drive, you should also run sudo fstrim -v / at least once a week to trim your hard drive.