~./bash_history - 在正常情况下 - 只有你和 root 才能访问。你可能有一个 cronjob 来偶尔或经常清空这个文件。这可能很简单:
#m h dom mon dow command
* * * * * cat /dev/null>~./bash_history
如果以上方法不能解决您的问题,您可以使用名为bleachbit 的工具。
$ apt-cache show bleachbit
给了我:
Description-en: delete unnecessary files from the system
BleachBit deletes unnecessary files to free valuable disk space, maintain
privacy, and remove junk. It removes cache, Internet history, temporary files,
cookies, and broken shortcuts.
.
It handles cleaning of Adobe Reader, Bash, Beagle, Epiphany, Firefox, Flash,
GIMP, Google Earth, Java, KDE, OpenOffice.org, Opera, RealPlayer, rpmbuild,
Second Life Viewer, VIM, XChat, and more.
.
Beyond simply erasing junk files, BleachBit wipes free disk space (to hide
previously deleted files for privacy and to improve compression of images),
vacuums Firefox databases (to improve performance without deleting data), and
securely **shreds** arbitrary files.
注意它处理 bash 的清理。
请查看 BleachBit [ features ] 页面。