1. Delete specific index entry: history -d <number>
number : the index number shown in output of history command.
2. Complete history file : history -c
3. Specific commands you want to hide:
[root@localhost local]# HISTCONTROL=ignorespace
This will remove history for command started with space.
4. Turn off history :
[root@localhost local]# set +o history
5. Turn on history:
[root@localhost local]# set -o history
No comments:
Post a Comment