Last active
August 29, 2015 14:02
-
-
Save rogerz/2326ecd61d00531ceb73 to your computer and use it in GitHub Desktop.
system admin cheatsheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* filter and count IPs | |
```shell | |
grep -F 'SLEEP%285%29' /var/log/nginx/www.letsface.cn/access_www.letsface.cn.log | grep -F '26/May/' | awk '{print $1}' | sort | uniq -c | sort -nr | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo su - node |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment