bash history

Bash history

 

recall

!1 => to recall/execute the first item in the history

search

ctrl-r => reverse incremental history search mode Enter => immediately reall and execute the command ctrl-j or Escape => retrieve the command, but alow you to continue edition ctrl-g or ctrl-c => cancel

filter what gets stored in the command history

export HISTIGNORE="&:ls:[bf]g:exit"

ref: http://talug.org/events/20030709/cmdline_history.html


Post by: Jalen Wang (转载请注明出处)

posted on 2012-12-21 16:41  Jalen Wang  阅读(189)  评论(0编辑  收藏  举报

导航