Home > Article > Operation and Maintenance > Check what system linux is
Checking method: 1. Use the "cat /etc/os-release" command to check the system version in the "name" item in the output list; 2. Use the "cat /proc/version" command to check the system version in the "name" item in the output list. Check the system version in the output information; 3. Use the "dmesg | grep "linux"" command.
#The operating environment of this tutorial: Red Hat Enterprise Linux 7.3 system, Dell G3 computer.
For mainstream distribution versions such as rhel, debian, opensuse, and archlinux, they each have different package managers to manage software packages on the system. If you don't know which distribution system you are using, you will have no idea where to start when installing the software package.
The following article will share with you some methods of checking the Linux distribution system.
Method 1: Use cat /etc/os-release command
rhel system cat /etc/os-release cat / etc/system-release cat /etc/redhat-release centos system cat /etc/centos-release fedora system
Method 2: cat /proc/version
The /proc/version file records the version of the Linux kernel released, the gcc version used to compile the kernel, the time of kernel compilation, and the user name of the kernel compiler
Method 3: dmesg command
dmesg (display message or driver message) is a command on most unix operating systems, used to print kernel message buffer information
Related recommendations: "Linux Video Tutorial"
The above is the detailed content of Check what system linux is. For more information, please follow other related articles on the PHP Chinese website!