Learning Linux - Command line skills: Deleting a command from your bash history
Every Linux pro lives in their Linux shell history, it makes repetitive processes fast, easy, and accurate. However, there are plenty of times when you use a command that you really don't want in your history file. For example, suppose you had to use the dreaded rm -Rf . at some point? You certainly don't want that hanging around in your history where you may accidentally re-run it.
The problem is you don't want to just delete your whole shell history either. Well here's a tutorial on deleting specific lines from your bash history.
#Linux
https://www.ostechnix.com/clear-specific-command-bash-history-linux/
No comments:
Post a Comment