some useful linux commands

# best way to see log file
less +F /var/log/syslog
(equals:  less /var/log/syslog, then shift+f)
# see dmesg when it changes
watch -n 0.1 "dmesg | tail -n 30"
# use xargs with find
find . -type x | xargs -I{} --no-run-if-empty file {}

 

posted @ 2016-09-30 12:19  yanghuahui  阅读(400)  评论(0编辑  收藏  举报