Home > Operation and Maintenance > Linux Operation and Maintenance > Check what commands can be used to check the Linux system version

Check what commands can be used to check the Linux system version

王林
Release: 2020-05-31 14:35:15
Original
6657 people have browsed it

Check what commands can be used to check the Linux system version

1. lsb_release -a, you can list all version information

[root@S-CentOS ~]# lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.5 (Final)
Release: 6.5
Codename: Final
Copy after login

This command is applicable to all Linux distributions, including RedHat, SUSE, Debian...etc. Release.

2. cat /etc/redhat-release, this method is only suitable for Redhat Linux

 [root@S-CentOS home]# cat /etc/redhat-release
CentOS release 6.5 (Final)
Copy after login

3. cat /etc/issue, this command is also applicable to all Linux distributions

[root@S-CentOS home]# cat /etc/issue
CentOS release 6.5 (Final)
Kernel \r on an \m
Copy after login

Recommended tutorial: linux tutorial

The above is the detailed content of Check what commands can be used to check the Linux system version. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
Statement of this Website
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
Latest Issues
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template