Home > Operation and Maintenance > Linux Operation and Maintenance > How to check the system version in linux

How to check the system version in linux

angryTom
Release: 2019-11-05 17:08:42
Original
7057 people have browsed it

How to check the system version in linux

How to check the system version on Linux

General method to check:

1. uname -a (Linux to view the current operating system kernel information)

Linux localhost.localdomain 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 athlon i386 GNU/Linux
Copy after login

2. cat /proc/version (Linux to view the current operating system version information)

Linux version 2.4.20-8 (bhcompile@porky.devel.redhat.com)
(gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #1 Thu Mar 13 17:54:28 EST 2003
Copy after login

3 , cat /etc/issue

Red Hat Enterprise Linux AS release 4 (Nahant Update 8)
Kernel /r on an /m
Copy after login

RedHat series view:

##1, cat /etc/redhat-release

Red Hat Enterprise Linux AS release 4 (Nahant Update 8)
Copy after login

2, lsb_release -a

LSB Version: :core-3.0-ia32:core-3.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch
Distributor ID: RedHatEnterpriseAS
Description: Red Hat Enterprise Linux AS release 4 (Nahant Update 8)
Release: 4
Codename: NahantUpdate8
Copy after login

Debian series view:

1, cat /etc/debian_version

9.0
Copy after login

2, cat /etc/os- release

PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
Copy after login

3, hostnamectl

   Static hostname: debian
         Icon name: computer-vm
           Chassis: vm
        Machine ID: 6866ec1d654b4a2ea52d591dc0146d82
           Boot ID: 51bfbc1e197b4d378e95073da0df0288
    Virtualization: xen
  Operating System: Debian GNU/Linux 9 (stretch)
            Kernel: Linux 4.9.0-1-amd64
      Architecture: x86-64
Copy after login
Recommended:

linux system tutorial

The above is the detailed content of How to check the system version in linux. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template