clearing command history from terminal
Is it any problem if I am unable to clear them? I believe it is normal for the computer to remember these recent commands. Thanks
Mac OS X (10.4.11)
Mac OS X (10.4.11)
history -c This removed temporary the history for the actual Session.
history -w
Library/Preferences in your homefolder. You can delete the preference file, or you could create an AppleScript with the command
do shell script "defaults delete com.apple.Terminal CommandHistory" because the terminal write at quit the historycache back to the preference file, when you run the command direct in the shell.
defaults
clearing command history from terminal