查看Linux OS內(nèi)核與版本的幾種命令分享
查看Linux OS內(nèi)核與版本的幾種命令
方法一
[root@localhost ~]# cat /etc/os-release NAME="openEuler" VERSION="23.03" ID="openEuler" VERSION_ID="23.03" PRETTY_NAME="openEuler 23.03" ANSI_COLOR="0;31"
方法二
[root@localhost ~]# cat /proc/version Linux version 6.1.19-7.0.0.17.oe2303.x86_64 (root@dc-64g.compass-ci) (gcc_old (GCC) 10.3.1, GNU ld (GNU Binutils) 2.37) #1 SMP PREEMPT_DYNAMIC Tue Mar 28 00:01:02 CST 2023
方法三
[root@localhost ~]# uname -a Linux localhost.localdomain 6.1.19-7.0.0.17.oe2303.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 28 00:01:02 CST 2023 x86_64 x86_64 x86_64 GNU/Linux [root@localhost ~]#
方法四
#需要系統(tǒng)有包支持,沒(méi)有的話需要聯(lián)網(wǎng)安裝,如下所示 [root@ss /]# lsb_release -a bash: lsb_release: command not found... Install package 'redhat-lsb-core' to provide command 'lsb_release'? [N/y] y * Waiting in queue... * Loading list of packages.... The following packages have to be installed: esmtp-1.2-15.el8.x86_64 User configurable send-only Mail Transfer Agent libesmtp-1.0.6-18.el8.x86_64 SMTP client library liblockfile-1.14-1.el8.x86_64 This implements a number of functions found in -lmail on SysV systems m4-1.4.18-7.el8.x86_64 The GNU macro processor mailx-12.5-29.el8.x86_64 Enhanced implementation of the mailx command ncurses-compat-libs-6.1-9.20180224.el8.x86_64 Ncurses compatibility libraries patch-2.7.6-11.el8.x86_64 Utility for modifying/upgrading files redhat-lsb-core-4.1-47.el8.x86_64 LSB Core module support redhat-lsb-submod-security-4.1-47.el8.x86_64 LSB Security submodule support spax-1.5.3-13.el8.x86_64 Portable archive exchange Proceed with changes? [N/y] y * Waiting in queue... * Waiting for authentication... * Waiting in queue... * Downloading packages... * Requesting data... * Testing changes... * Installing packages... LSB Version: :core-4.1-amd64:core-4.1-noarch Distributor ID: CentOS Description: CentOS Linux release 8.4.2105 Release: 8.4.2105 Codename: n/a [root@ss /]# lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch Distributor ID: CentOS Description: CentOS Linux release 8.4.2105 Release: 8.4.2105 Codename: n/a
總結(jié)
以上為個(gè)人經(jīng)驗(yàn),希望能給大家一個(gè)參考,也希望大家多多支持腳本之家。
相關(guān)文章
在APACHE環(huán)境下配置下載服務(wù)器的注意事項(xiàng)
這篇文章主要介紹了在APACHE環(huán)境下配置下載服務(wù)器的注意事項(xiàng),需要的朋友可以參考下2016-08-08Linux中使用命令more,less,cat查看文件內(nèi)容
今天小編就為大家分享一篇關(guān)于Linux中使用命令more,less,cat查看文件內(nèi)容,小編覺(jué)得內(nèi)容挺不錯(cuò)的,現(xiàn)在分享給大家,具有很好的參考價(jià)值,需要的朋友一起跟隨小編來(lái)看看吧2019-03-03在Linux環(huán)境下安裝和使用Pyenv的詳細(xì)指南
Pyenv是一個(gè)用于管理多個(gè)Python版本的強(qiáng)大工具,特別適合在Linux環(huán)境下使用,本文將詳細(xì)介紹如何在Linux系統(tǒng)上安裝和使用Pyenv,以便更好地管理Python開(kāi)發(fā)環(huán)境,需要的朋友可以參考下2025-03-03Apache 本地服務(wù)器啟動(dòng)后又自動(dòng)停止解決辦法
setup_inherited_listeners(), WSASocket failed to open the inherited socket2010-04-04配置iptables,把80端口轉(zhuǎn)到8080的簡(jiǎn)單方法
下面小編就為大家?guī)?lái)一篇配置iptables,把80端口轉(zhuǎn)到8080的簡(jiǎn)單方法。小編覺(jué)得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧,祝大家游戲愉快哦2016-12-12解讀crontab腳本錯(cuò)誤日志和正確的輸出寫入到文件
這篇文章主要介紹了解讀crontab腳本錯(cuò)誤日志和正確的輸出寫入到文件問(wèn)題,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。如有錯(cuò)誤或未考慮完全的地方,望不吝賜教2023-04-04centos8 使用yum 安裝 mongodb 4.2的方法
這篇文章主要介紹了centos8 使用yum 安裝 mongodb 4.2的方法,本文給大家介紹的非常詳細(xì),具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2019-10-10Centos6.x服務(wù)器配置jdk+tomcat+mysql環(huán)境(jsp+mysql)
這篇文章主要介紹了Centos6.x服務(wù)器配置jdk+tomcat+mysql環(huán)境(jsp+mysql),需要的朋友可以參考下2017-09-09Linux編譯優(yōu)化必須掌握的幾個(gè)姿勢(shì)總結(jié)
內(nèi)核是操作系統(tǒng)的核心,也是操作系統(tǒng)最基本的部分。下面這篇文章主要給大家總結(jié)介紹了關(guān)于Linux編譯優(yōu)化必須掌握的幾個(gè)姿勢(shì),文中通過(guò)示例代碼介紹的非常詳細(xì),需要的朋友可以參考借鑒,下面隨著小編來(lái)一起學(xué)習(xí)學(xué)習(xí)吧2018-09-09