Home > Operation and Maintenance > CentOS > What command can you use to check the version number on centos?

What command can you use to check the version number on centos?

青灯夜游
Release: 2023-02-27 15:10:42
Original
67073 people have browsed it

Commands to check the version number: 1. "cat /etc/issue" or "cat /etc/redhat-release", which can output the centos version number; 2. "cat /proc/version", "uname -a" or "uname -r" can output the kernel version number.

What command can you use to check the version number on centos?

#The operating environment of this tutorial: centos6.5 system, thinkpad t480 computer.

View centos version

cat /etc/issue

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

cat /etc/redhat-release

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

View kernel linux version

cat /proc/version

[root@localhost ~]# cat /proc/version
Linux version 2.6.32-754.15.3.el6.x86_64 (mockbuild@x86-01.bsys.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-23) (GCC) ) #1 SMP Tue Jun 18 16:25:32 UTC 2019
Copy after login

uname -a

[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.32-754.15.3.el6.x86_64 #1 SMP Tue Jun 18 16:25:32 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Copy after login

uname -r

[root@localhost ~]# uname -r
2.6.32-754.15.3.el6.x86_64
Copy after login

Recommended: "centos usage tutorial"

The above is the detailed content of What command can you use to check the version number on centos?. 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