Brilliant Strategies Of Info About How To Check The Linux Distribution
![How To Check Os Version In Linux Command Line - Nixcraft](https://www.tecmint.com/wp-content/uploads/2019/11/RHEL-Linux-Distribution.png)
To check if the lsb_release command is installed run the following command.
How to check the linux distribution. So in this post we are listing out some common commands that are used to detect distro specific information on linux. How to check if the running distribution is oracle linux or redhat. Here are a few ways to find out which linux distro you are using :
Import platform import sys def linux_distribution(): To check which version your wsl linux distribution or distributions are running, open a powershell terminal session and run the following command. There are several cli commands to get the os linux info:
Only distribution version can be printed by grepping the version_id line like below. From the boot time messages fire up your favorite terminal program and type in the following dmesg | head. This includes the distro name and version.
The following command lists more comprehensive information about the version: