Linux Distribution and Version check
![](https://redientsecurity.in/wp-content/uploads/2022/07/check_os_version_in_linux_from_command_line.png)
Linux Distribution Check
Let’s check which Linux OS you are using, Open your Terminal and type the following command..
$ lsb_release -a
![](https://redientsecurity.in/wp-content/uploads/2022/07/Screenshot-from-2022-07-13-12-37-42-1024x109.png)
I am using Ubuntu Linux and OS Release is 20.04
Linux Systemd-based distribution
Check more details about Linux OS
$ cat /etc/os-release
![](https://redientsecurity.in/wp-content/uploads/2022/07/Screenshot-from-2022-07-13-12-42-01-1024x206.png)
Uname Command in Linux
Uname is a short form of Unix name. Uname command used to view Linux OS’s Name, Kernel, OS Version and Hardware information.
$ uname –help
Above command will view all Options related to Uname command
![](https://redientsecurity.in/wp-content/uploads/2022/07/Screenshot-from-2022-07-13-12-59-11-1024x287.png)
Options | Commands | Descriptions |
---|---|---|
-a | -a | Prints all information, omitting -p and -i if the information is unknown. |
-s | –kernel-name | Print the kernel name. |
-n | –nodename | Print the network node hostname. |
-r | –kernel-release | Print the kernel release. |
-v | –kernel-version | Print the kernel version. |
-m | –machine | Print the machine hardware name. |
-p | –processor | Print the processor type, or “unknown”. |
-i | –hardware-platform | Print the hardware platform |
-o | –operating-system | Print the operating system. |
–help | Display a help message, and exit. | |
–version | Display version information, and exit. |