How to Clear the Terminal History on Linux or macOS
Aneasywaytoaccomplishthisistocloseallterminalwindows,andthenopenasinglenewterminalwindow,whereyourun:rm~/.bash_history,Typehistory-pintotheTerminalandpressReturn.Allshellhistoryisclearedinstantly-withoutwarning.Anotherwaytoclearzshhistory ...,The...。參考影片的文章的如下: