To check VM stats, use the following commands.

To see used and unused memory, swap space.

<pre lang="bash">
free

To see RAM details.

<pre lang="bash">
sudo dmidecode -t 17

To see number of processors.

<pre lang="bash">
nproc

To see CPU details.

<pre lang="bash">
lscpu