Linux命令行quirks
find . -iname '*.ext' -exec grep -il 'sth-to-be-found' '{}' \;
tail -f filename
tail -nN filename
"*" 在bash和regular expression中的意义虽然有些接近,还是不一样的。re中的"*"是指zero or more preceding,千万注意。
^u delete to the start of the line
^k delete to the end of the line
^a move the cursor to the start of the line
^e move the cursor to the end of the line
bash中用set -o vi来切换到vi模式,爽!注意切换以后是insert mode,按esc可进入normal mode。