????5??tail????
????tail???????????????β???????????????tail -10 file?? ?????????file??10???????tail?????з????????????????????????ò????????????? "-f"??
????tail -f ???????????????????
?????????????????????????????????????????????????????????????????????????????ж?????????????????????????ú?????????????????е?server??????????server???????????????д?????????????tail -f???????????????????????????????????
????6??find????
????????????????????????????????find???
????-name ?????????????????
???????磬???????????????????cpp??β?????
????find . -name "*cpp" | xargs grep "abc"
??????Щ???????????????????xargs????????????????б??????С???δ?????????????????????б???????????????find?У????????????????????????????cpp??β????????????????“????????”??“????????“????????xargs??????find??????????
????7??alias????
????alias??????????????????????????alias???????????????????????????
????????????????alias?????????????
????alias ll="ls -lht"
????????????alias?????????????????????Ч????????Ч?????????????????/.bashrc????????????????????????????????????????alias???磺
????alias la="ls -al --color=auto"
???????θ????????′ε???????????Ч???????????Ч?????????
????source ~/.bashrc
????8?????????????
????ps??????????????е?????
????ps -ef ???????е????
????top ?????????????????????????????á?cpu?????????????????????
????shift + m ???????????????????????????????????????????
????q ???
????9????????????
????Ctrl + z ????????????????????
????Ctrl + d ????????????????????????????????Ctrl + D???????shell
????Ctrl + a ?????????е????λ??
????Ctrl + e ?????????е?β??λ??
????Ctrl + w ??????????(word)
????Ctrl + u ??????????????
????Ctrl + k ??????????????
????Ctrl + c ?ж???????
????10??????????
???????????????
????&& ????????????????е????????
????|| ????????????????е????????
????jobs ????????????????б?
????fg + N  ????N????????????????Ctrl + z?????????
????11??vim????
????!%xxd ?????????????????????
????! ???????shell??????????ж????shell????
????* ?????????????????????
????# ?????????????????????
????[[ ???????????????
????]] ?????????????β?
????[{ ?????????????????????
????]} ?????????????????????
????ggvG????ggVG ????????
????gg=G ???????????????и????????
????u ?????????????
????Ctrl + r ????????????????
????set scb ?????????????????????????????????????????????????????????????????????????????????set scb!
??????????????????ctag??Tlist??
????ctags
??????????????????????????????????????????????????????????????????????????????????????塢???????????????????????塢??????????namespace??typedefs???? ???????????????????? ???????????г????????????????ctags??????????easy????????????????????????????????塣
????Tlist
????????vim?У????????????????????????????????????????壬??????????????????????????λ?á???????????????????????????
????12??shell????????????
??????????
????shell??????????????????#??????????????У?????
????#?????????????
????if [ "1" = "2" ]; then
????DoSomething
????fi
??????????
????shell?в?????????????????????????????????????????????????????????????here document??here document?????????????????????????????????′????У?????document??????????????????????
????<<document
????....
????document
????here document??<<???????????????????????????????????????Χ????????????:????????????????????????μ?????????????????????????????????????????????????????????
????:<<block
????code
????block
??????????????????????????????????
????:<<block'
????code
????'block
?????ЩС????
????????1?? ???????????????????У?
????1??sed '/^$/d' file ????????????????????
????2??awk '/./ {print $0;}' file ?????????????????????????????????
????3??awk '/[^^$]/{ print $0; } file
????????2?? ??????????????????????????"a b.html"s??
????1???????????壬???????????б???????÷?б???????????????
????2???????????????????
????3???????????????????
????????3??
????????x????????????δ??????????$?????0???????????????????????г????????????????????????????????t????????????$??????????echo??? $???????????????????