![](https://sandeeppote.com/wp-content/uploads/2021/12/Linux_hardware-small.jpg)
Understand the OS versoin and Linux machine hardware
Use uname command to display information of kernel
uname
![](https://sandeeppote.com/wp-content/uploads/2021/12/image-2.png)
For more information of kernel use-
uname -r
![](https://sandeeppote.com/wp-content/uploads/2021/12/image-3.png)
5 is Kernel Version
11 is Major Version
0 is Minor Version
1022 is patch release
azure is specific info
To understand CPU of machine use lscpu command
lscpu
In this case Architecture is x86_64 with CPU socket 1 and threads that run in parallel is 4.
![](https://sandeeppote.com/wp-content/uploads/2021/12/image-4.png)
To understand physical disk use lsblk command
lsblk
sda shows block devices of type disk
![](https://sandeeppote.com/wp-content/uploads/2021/12/image-5.png)
Use lsmem command to get the memory of the Linux machine
lsmem
![](https://sandeeppote.com/wp-content/uploads/2021/12/image-6.png)
Use free -m command to get the free memory i.e. total vs used memory
free -m
![](https://sandeeppote.com/wp-content/uploads/2021/12/image-7.png)
Append the command with sudo to run the command as super user