I can't delete the shell history in macOS Catalina. I use rm ~/.bash_history
.
history -c
all command fields. I need to delete the command history.
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.
Sign up to join this communityI can't delete the shell history in macOS Catalina. I use rm ~/.bash_history
.
history -c
all command fields. I need to delete the command history.
Just do a
rm ~/.zsh_history
that clears the history. After that close the Terminal app. To check if the history was cleared run
history
in Terminal.
rm ~/.bash_history
history -c
bash
,zsh
or something else? If unsure, runps -p $$
and look into theCMD
column. – nohillside♦ Dec 14 '19 at 18:37