^u erase command line to head
^w erase last word typed
^Z send a task to background
^d quit terminal
fg [num] revoke the [num] job from background.
cp file{,.old}
is shorthand for
cp file file.old
export HISTIGNORE="&:ls:[bf]g:exit"
export HISTCONTROL=erasedups
export HISTFILESIZE=10000
export PS1='\u@\h:\w \A$'
set 1 second cap for execution (don't do this in your bash!)
ulimit -t 1;./a.out
enable core dump for debugging
ulimit -c unlimited
Restore garbled terminal after accidentally print a binary
Press [ctrl-v] [ctrl-o] [return]
No comments:
Post a Comment