How to remove if your typed password or sensitive information in your command console.
[root@linux1 ~]#history
1 history
2 mypassword
3 otherpassword
4 ls -la
5 sudo rm -f /home/
Remove sensitive command with numbered entry.
[root@linux1 ~]#history -d 2
[root@linux1 ~]#history
1 history
2 otherpassword
3 ls -la
4 sudo rm -f /home/
Recent Comments