Ubuntu 基本指令 — 查看版本資訊

Sylvia
Apr 23, 2021

查看版本資訊 To check Ubuntu Version (CML)

查看 Ubuntu 版本資訊

使用以下指令可以查看當前使用的 Ubuntu 版本資訊。

1. lsb_release -a

lsb_release –a
lsb_release -a

2. cat /etc/lsb-release

cat /etc/lsb-release 

在 /etc/lsb-release 這個檔案裡會記錄著版本訊息,直接瀏覽到該資料夾也可以知道版本資訊。

cat /etc/lsb-release

3. cat /etc/*release

這個指令可以看多更多資訊。

cat /etc/*release
cat /etc/*release

3. hostnamecl

此方法可以看到 Kernel。

hostnamectl
hostnamectl

4. cat /etc/issue

cat /etc/issue
cat /etc/issue

補充:可查看 Kernel 的另一種方法。

uname -a

uname -a
uname -a

Reference

How to Check Your Ubuntu Version -> https://phoenixnap.com/kb/how-to-check-ubuntu-version

Ubuntu 查詢版本資訊 -> https://www.arthurtoday.com/2009/12/ubuntu_21.html

— The End —

Published on 2021/04/23 & Last edited on 2021/04/23

--

--