# How to test nginx config file

> Assuming you have nginx installed on your linux server. Run the following command:

- Canonical: https://preview.arshadmehmood.com/today-i-learned/nginx/how-to-test-nginx-config-file/
- Section: nginx
- Author: Arshad Mehmood

Assuming you have nginx installed on your linux server. Run the following command:
```
sudo nginx -t
```

