In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Sometimes you need to check the CentOs version of your system, and there are some commands that can be viewed as follows: view Linux kernel version commands (two methods) and Linux system version commands (three methods)
1. Check the Linux kernel version command (two methods):
1 、 cat / proc/version
[root@localhost ~] # cat / proc/versionLinux version 2.6.18-194.8.1.el5.centos.plus (mockbuild@builder17.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) # 1 SMP Wed Jul 7 11:50:45 EDT 2010
2. Uname-a
[root@localhost] # uname-aLinux 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
2. Check the command of the Linux system version (3 methods):
1. Lsb_release-a, and all version information can be listed:
[root@localhost ~] # lsb_release-aLSB Version:: core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarchDistributor ID: CentOSDescription: CentOS release 5.5 (Final) Release: 5.5Codename: Final
This command applies to all Linux distributions, including Redhat, SuSE, Debian... Wait for the release.
2. Cat / etc/redhat-release, this method is only suitable for Linux of Redhat system:
[root@localhost ~] # cat / etc/redhat-releaseCentOS release 5.5 (Final)
3. Cat / etc/issue, this command also applies to all Linux distributions.
[root@localhost ~] # cat / etc/issueCentOS release 5.5 (Final)
The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.