history - View command history from ~/.bash_profile file
history -d $((HISTCMD-2)) && history -d $((HISTCMD-1))
This command will hide the history command and the previous command.
history -d $((HISTCMD-1))
This command will delete from history only the record of this command.
history -d [line_number]
Deletes command from line [line_number]
history -d $((HISTCMD-2)) && history -d $((HISTCMD-1))
This command will hide the history command and the previous command.
history -d $((HISTCMD-1))
This command will delete from history only the record of this command.
history -d [line_number]
Deletes command from line [line_number]
No comments:
Post a Comment