Delete terminal history in Linux
โพสต์: ศุกร์ 08 ก.ค. 2016 07:24
You can clear your bash history like this:
erases the content of the file.
clears the current terminal history.
โค้ด: เลือกทั้งหมด
cat /dev/null > ~/.bash_history && history -c && exit
โค้ด: เลือกทั้งหมด
cat /dev/null > ~/.bash_history
โค้ด: เลือกทั้งหมด
~/.bash_history
โค้ด: เลือกทั้งหมด
history -c