Check the version of the currently installed Nginx by calling the Nginx binary.
Use -v parameter to display the Nginx version only
nginx -v
Use the -V parameter to display the version with more details about the compiler package
nginx -V
Output sample
