如何檢視ubuntu當前linu版本

2021-12-16 19:24:30 字數 1969 閱讀 3000

1樓:

使用 lsb_release 命令也可以檢視 ubuntu 的版本號,與方法一相比,內容更為詳細。

在終端中執行下列指令:

sudo lsb_release -a

將輸出結果:

distributor id: ubuntudescription: ubuntu 8.04release: 8.04

codename: hardy

end檢視核心版本號

檢視核心版本號的方法是:

開啟一個終端,

輸入命令:uname -r

2樓:可靠的夢想之星

1.檢視ubuntu的版本使用如下命令:

2.檢視linux的核心版本

更為詳細的linux命令介紹可檢視「linux命令大全」。

3樓:蠱殺傷之

1,檢視核心版本命令:

cat /proc/version

uname -a

uname -rcat /etc/issue

man uname

2,檢視linux版本:抄錄如下:

1) 登入到伺服器執行 lsb_release -a ,即可列出所有版本資訊,例如:

[[email protected] ~]# lsb_release -a

lsb version: 1.3

distributor id: redhatenterpriseas

descrīption: red hat enterprise linux as release 4 (nahant update 1)

release: 4

codename: nahantupdate1

[[email protected] ~]#

這個命令適用於所有的linux,包括redhat、suse、debian等發行版。

2) 登入到linux執行cat /etc/redhat-release ,例如如下:

[[email protected] ~]# cat /etc/redhat-release

red hat enterprise linux as release 4 (nahant update 1)

[[email protected] ~]#

這種方式下可以直接看到具體的版本號,比如 as4 update 1

3)登入到linux執行rpm -q redhat-release ,例如如下

[[email protected] ~]# rpm -q redhat-release

redhat-release-4as-2.4

[[email protected] ~]#

這種方式下可看到一個所謂的release號,比如上邊的例子是2.4

這個release號和實際的版本之間存在一定的對應關係,如下:

redhat-release-3as-1 -> redhat enterprise linux as 3

redhat-release-3as-7.4 -> redhat enterprise linux as 3 update 4

redhat-release-4as-2 -> redhat enterprise linux as 4

redhat-release-4as-2.4 -> redhat enterprise linux as 4 update 1

redhat-release-4as-3 -> redhat enterprise linux as 4 update 2

redhat-release-4as-4.1 -> redhat enterprise linux as 4 update 3

redhat-release-4as-5.5 -> redhat enterprise linux as 4 update 4

4樓:迅猛路

uname -a

這個應該通用

如何檢視linux系統版本,如何檢視linux作業系統版本

看你裝的是什麼linux了 版本檔案都放在 etc 下面 aam linux w93c etc cd etc aam linux w93c etc ls al grep release rw r r 1 root root 74 2008 12 03 lsb release drwxr xr x 2...

如何檢視linu下分割槽大小,如何檢視LINUX下分割槽大小

一 df 命令 df 是來自於coreutils 軟體包,系統安裝時,就自帶的 我們通過這個命令可以檢視磁碟的使用情況以及檔案系統被掛載的位置 舉例 root localhost beinan df lh filesystem 容量 已用 可用 已用 掛載點 dev xvda1 20g 1.4g 1...

如何檢視ubuntu的核心版本和發行版本號

可是有沒有一種比較快捷的方法比如說在終端裡面檢視呢?答案是肯定的。為了檢視 ubuntu 的版本號,可以採用以下兩種方法之一。方法一在終端中執行下列指令 cat etc issue 可以檢視當前正在執行的 ubuntu 的版本號。其輸出結果類似下面的內容 ubuntu 8.04 n l方法二使用 l...