When you just bought a VPS but don’t know if the provider has the same configuration as the package you bought, or you want to see how much of the hard drive, RAM and CPU space you can use. commands below.
Note: You must log in to the VPS with the root account. [PuTTY] software can be used to run commands.
Check CPU
To check CPU processor information, CPU type and processing speed, use the following command:
cat /proc/cpuinfo
Check RAM parameters
To check how much RAM is available, how much has been used and how much is free, use the following command:
free -h
Check Disk (HDD)
You can view full information about VPS’s Hard Disk with the following command:
df -h
Check Linux kernel version
It’s very simple, just run the following command.
uname -a
If you want to check the operating system version, do the following:
With CentOS:
cat /etc/redhat-release
With Ubuntu:
lsb_release -a
With the above 4 command groups, you can check VPS information simply, avoiding the case of buying the wrong VPS package. Good luck!