Answers for "clear bash history"


delete command from history

Just check the enumeration of your commands history and then delete them:
history -d 7 #Deletes seventh command in your history list
Posted by: Guest on November-06-2020

clear bash history

cat /dev/null > ~/.bash_history && history -c && exit
Posted by: Guest on October-13-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language