Home  >  Article  >  Operation and Maintenance  >  Check what system linux is

Check what system linux is

青灯夜游
青灯夜游Original
2022-04-24 18:40:0633910browse

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.

Check what system linux is

#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

Check what system linux is

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

Check what system linux is

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

Check what system linux is

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn