Skip to content

Instantly share code, notes, and snippets.

@kriskornel
Last active October 23, 2017 19:14
Show Gist options
  • Save kriskornel/3fbd4afcbe54b54d122a129f3f285416 to your computer and use it in GitHub Desktop.
Save kriskornel/3fbd4afcbe54b54d122a129f3f285416 to your computer and use it in GitHub Desktop.
Command for emptying the content of Nginx Log Files in Ubuntu
root@deikxyz:~# cat /dev/null >  cat /dev/null > /var/log/nginx/access.log
(hit enter)
root@deikxyz:~# cat /dev/null >  cat /dev/null > /var/log/nginx/error.log
(hit enter)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment