Search code examples
linuxubuntuoperating-systemtemp

How to clean (delete) temporary files if they exist in Ubuntu OS?


I need to do a lot of cleaning in my virtual machine whose operating system is Ubuntu.

Normally in Windows, there is this kind of directory that contains temporary files and that should be cleaned:

C:\Documents and Settings\Administrator\Local Settings\Temp

Does it exist such a directory in Ubuntu? If yes, what is it?


Solution

  • run this in shell:

    sudo rm -rf /tmp/*