Nginx is one of the popular web server and proxy server available in the industry. To check the version of Nginx from command line, we just need to execute the following command. This works in windows as well as linux.

nginx -v

The version details will be printed on the command line. A sample screenshot is given below.