Home > System Tutorial > LINUX > body text

Linux kernel version command (3 methods)

WBOY
Release: 2024-03-12 13:16:02
forward
1243 people have browsed it

1. Check the Linux kernel version command (two methods):

1、cat/proc/version

[root@localhost ~]# cat /proc/version
Linux version 2.6.18-194.8.1.el5.centos.plus ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Wed Jul 7 11:50:45 EDT 2010 
Copy after login

2, uname-a

查看linux系统大版本号_怎么查看系统版本号linux_查看系统版本命令linux

[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-194.8.1.el5.centos.plus #1 SMP Wed Jul 7 11:50:45 EDT 2010 i686 i686 i386 GNU/Linux 
Copy after login

2. Command to check the Linux system version (3 ways):

1. lsb_release-a can list all version information:

[root@localhost ~]# lsb_release -a
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: CentOS
Description: CentOS release 5.5 (Final)
Release: 5.5
Codename: Final 
Copy after login

查看linux系统大版本号_查看系统版本命令linux_怎么查看系统版本号linux

This command applies to all Linux distributionsView the Linux system large version number, including Redhat, SuSE, Debian... and other distributions.

2. cat/etc/redhat-releaseView the large version number of the linux systemWhat is linux? These methods are only suitable for Redhat system Linux:

[root@localhost ~]# cat /etc/redhat-release
CentOS release 5.5 (Final) 
Copy after login

3. cat/etc/issuelinux community, this command also applies to all Linux distributions.

[root@localhost ~]# cat /etc/issue
CentOS release 5.5 (Final)
Kernel r on an m 
Copy after login

The above is the detailed content of Linux kernel version command (3 methods). For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:itcool.net
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