command to check cordova version code example
Example 1: check laravel version
php artisan --version
Example 2: check centos version
$ cat /etc/redhat-release
output : CentOS Linux release 7.4.1708 (Core)
php artisan --version
$ cat /etc/redhat-release
output : CentOS Linux release 7.4.1708 (Core)