日本综合一区二区|亚洲中文天堂综合|日韩欧美自拍一区|男女精品天堂一区|欧美自拍第6页亚洲成人精品一区|亚洲黄色天堂一区二区成人|超碰91偷拍第一页|日韩av夜夜嗨中文字幕|久久蜜综合视频官网|精美人妻一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
Linux下查看版本信息具體方法

Linux中如何查看版本信息?本篇文章重點為大家分享一下Linux下查看版本信息具體方法,有需要的小伙伴可以參考一下。

創(chuàng)新互聯(lián)建站成立10多年來,這條路我們正越走越好,積累了技術(shù)與客戶資源,形成了良好的口碑。為客戶提供做網(wǎng)站、網(wǎng)站制作、網(wǎng)站策劃、網(wǎng)頁設(shè)計、申請域名、網(wǎng)絡(luò)營銷、VI設(shè)計、網(wǎng)站改版、漏洞修補等服務(wù)。網(wǎng)站是否美觀、功能強大、用戶體驗好、性價比高、打開快等等,這些對于網(wǎng)站建設(shè)都非常重要,創(chuàng)新互聯(lián)建站通過對建站技術(shù)性的掌握、對創(chuàng)意設(shè)計的研究為客戶提供一站式互聯(lián)網(wǎng)解決方案,攜手廣大客戶,共同發(fā)展進(jìn)步。

lsb_release

顯示LSB(Linux Standard Base)兼容的發(fā)行版本信息。如果是LSB兼容的發(fā)行版本,在/etc/lsb-release就可以查看到具體的版本信息。

Linux中查看版本信息命令介紹Linux中查看版本信息命令介紹

lsb_release可以快速過濾這些信息找到自己需要的字段,這個命令有可能沒有自帶,可以自行安裝lsb-release包就可以有了。

lsb_release -h
FSG lsb_release v1.4 prints certain LSB (Linux Standard Base) and
Distribution information.

Usage: lsb_release [OPTION]...
With no OPTION specified it is the same as -v.

Options:
 -v, --version
   Display the version of the LSB specification against which the distribution is compliant.
 -i, --id
   Display the string id of the distributor.
 -d, --description
   Display the single line text description of the distribution.
 -r, --release
   Display the release number of the distribution.
 -c, --codename
   Display the codename according to the distribution release.
 -a, --all
   Display all of the above information.
 -s, --short
   Display all of the above information in short output format.
 -h, --help
   Display this message.
lsb_release -a
LSB Version:    n/a
Distributor ID: ManjaroLinux
Description:    Manjaro Linux
Release:    21.0.2
Codename:   Ornara

Version文件

lsb_release這個命令需要有另外安裝,如果沒有安裝也可以通過其他的版本信息文件找到版本的信息。

RHEL系列:/etc/redhat-release、/etc/os-release、/etc/system-release 等,這些文件一般都是指向同一個文件,如果是重新發(fā)行的版本,例如centos,還會有/etc/centos-release

Debian系列:/etc/debian-version、/etc/issue等,同樣重新發(fā)行的版本也會有對應(yīng)的version文件。

Linux中查看版本信息命令介紹Linux中查看版本信息命令介紹

內(nèi)核版本

查看內(nèi)核版本一般都使用uname這個命令。

uname -a
Linux manjaro 5.11.14-1-MANJARO #1 SMP PREEMPT Wed Apr 14 08:25:29 UTC 2021 x86_64 GNU/Linux

用這個命令也可以快速過濾到自己需要的字段。

也可以直接查看/proc/version來查看當(dāng)前云中的內(nèi)核版本

cat /proc/version
Linux version 5.11.14-1-MANJARO (builduser@LEGION) (gcc (GCC) 10.2.0, GNU ld (GNU Binutils

標(biāo)題名稱:Linux下查看版本信息具體方法
文章來源:http://www.dlmjj.cn/article/djciieg.html