如果 Ubuntu OS 中存在临时文件,如何清理(删除)它们?
How to clean (delete) temporary files if they exist in Ubuntu OS?
我需要在操作系统为 Ubuntu.
的虚拟机中进行大量清理工作
通常在Windows中,有这样一个包含临时文件的目录,应该清理:
C:\Documents and Settings\Administrator\Local Settings\Temp
Ubuntu中是否存在这样的目录?如果有,那是什么?
在Ubuntu和其他unices上,是/tmp
。机器重启时自动清理
运行 这个在 shell:
sudo rm -rf /tmp/*
我需要在操作系统为 Ubuntu.
的虚拟机中进行大量清理工作通常在Windows中,有这样一个包含临时文件的目录,应该清理:
C:\Documents and Settings\Administrator\Local Settings\Temp
Ubuntu中是否存在这样的目录?如果有,那是什么?
在Ubuntu和其他unices上,是/tmp
。机器重启时自动清理
运行 这个在 shell:
sudo rm -rf /tmp/*