Skip to content

Instantly share code, notes, and snippets.

@rogerz
Last active August 29, 2015 14:02
Show Gist options
  • Save rogerz/2326ecd61d00531ceb73 to your computer and use it in GitHub Desktop.
Save rogerz/2326ecd61d00531ceb73 to your computer and use it in GitHub Desktop.
system admin cheatsheet
* 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
```
sudo su - node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment