Skip to content

Instantly share code, notes, and snippets.

@hussainanjar
Last active August 29, 2017 09:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hussainanjar/d77dd804d339169fec8f1ed2bcff51ff to your computer and use it in GitHub Desktop.
Save hussainanjar/d77dd804d339169fec8f1ed2bcff51ff to your computer and use it in GitHub Desktop.
Useful Commands
# Count IP address from nginx log file https://www.mkyong.com/nginx/count-ip-address-in-nginx-access-logs/
sudo awk '{print $1}' /var/log/nginx/access.log | sort | uniq -c | sort -nr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment