Command to check enviornment for the server.

While working on any server its always better to knew on which server enviornment we are working, is it a dedicated/cloud or vps because every enviornment having its own settings and parameters.

Run the following command from the shell and check the result.

cat /var/cpanel/envtype

You will receive the result like standard,virtuozzo etc,please check the following examples.

For Dedicated sever

root@ [~]# cat /var/cpanel/envtype
standard

For cloud server
root@ [~]# cat /var/cpanel/envtype
vmwarer

For VPS servers
virtuozzoroot@vps [~]# cat /var/cpanel/envtype
virtuozzo

 

About Anant 384 Articles
Senior technical writer