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

Ashish Detroja picture Ashish Detroja · Nov 6, 2015 · Viewed 39.2k times · Source

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?

Answer

Dmitry Stril picture Dmitry Stril · Nov 6, 2015

run this in shell:

sudo rm -rf /tmp/*