Thursday, July 16, 2015

linux delete command from history

### histcontrol used to exclude commands from history: 
### add space before commands to exclude from history:




$HISTCONTROL=ignorespace

$ history -d 29



Note: the second command has a space preceded.

No comments:

Post a Comment