勉強したこと、調べたことを記録する
$ find ./ -name *.py |xargs grep -n4 "todo"
grep -vE "(dummy|127\\.0\\.0\\.1)" access_log
$ tail -f "/var/log/httpd/logs/{access,error}_log
$ watch -n3 "date '+%F %H:%M:%S'"
$ tail -f /var/log/message | grep sshd | tee -a sshd.log
$ date "+%F %H:%M:%S" | tr -d "\n" $ echo -n "hello"
$ watch -n3 "date '+%F %H:%M:%S' | tr -d '\n' >> netstat.log && \ echo -n " = " >> netstat.log && \ netstat -ant | grep "httpd" | wc -l | tee -a netstat.log"
$ cat access_log | cut -d' ' -f4-5,7
$ mv hoge foo -b "bk"
0 件のコメント:
コメントを投稿