Various commands to get the PC specification in Linux
![Various commands to get the PC specification in Linux](/content/images/size/w2000/2021/01/kevin-horvat-Pyjp2zmxuLk-unsplash.jpg)
To get the number of sockets, cores per socket, threads per core
lscpu | grep -E '^Thread|^Core|^Socket|^CPU\('
To get cache size, CPU name, frequency rate
cat /proc/cpuinfo
To get GPGPU information (nvidia driver is required), including memory spaces, driver version, cuda toolkit version, gpgpu name, etc...
nvidia-smi
To get memory spaces
free
Get disk space
df
![Buy Me A Coffee](https://cdn.buymeacoffee.com/buttons/v2/default-red.png)