The method of viewing the version Information of linux system
This article is to share with you about the method of viewing linux system version information, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
General method View:
1. Uname-a (Linux views the kernel information of the current operating system)
Linux localhost.localdomain 2.4.20-8 # 1 Thu Mar 13 17:54:28 EST 2003 i686 athlon i386 GNU/Linux
2. Cat / proc/version (Linux views 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
3 、 cat / etc/issue
Red Hat Enterprise Linux AS release 4 (Nahant Update 8) Kernel / r on an / m
RedHat series view:
1 、 cat / etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 8)
2. Lsb_release-a
LSB Version:: core-3.0-ia32:core-3.0-noarch:graphics-3.0-ia32:graphics-3.0-noarchDistributor ID: RedHatEnterpriseASDescription: RedHatEnterprise Linux AS release 4 (NahantUpdate8) Release: 4Codename: NahantUpdate8
Debian series view:
1 、 cat / etc/debian_version
9.0
2 、 cat / etc/os-release
PRETTY_NAME= "Debian GNU/Linux 9 (stretch)" NAME= "Debian GNU/Linux" VERSION_ID= "9" VERSION= "9 (stretch)" ID=debianHOME_URL= "https://www.debian.org/"SUPPORT_URL="https://www.debian.org/support"BUG_REPORT_URL="https://bugs.debian.org/"
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 is the way to view the version information of the linux system. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.