Skip to content

Instantly share code, notes, and snippets.

@petrochenkov-ak
Created August 4, 2024 12:08
Show Gist options
  • Select an option

  • Save petrochenkov-ak/c086e842f8ed258339664e7337825df1 to your computer and use it in GitHub Desktop.

Select an option

Save petrochenkov-ak/c086e842f8ed258339664e7337825df1 to your computer and use it in GitHub Desktop.
nginx log #nginx
# /var/log/nginx/error.log
# /var/log/nginx/access.log
du -sh /var/log/nginx/*.log
find /var/log/nginx -type f -name "*.log" -exec rm {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment