gordon's note infotech 取得你的 linux 版本

取得你的 linux 版本

Get your Linux version:

neofetch

or

lsb_release -a

or

cat /etc/os-release

or

cat /etc/issue

or

cat /proc/version

or

hostnamectl

or

uname -r

 
另外,亦可用此命令得到更多資訊

uname -a
  1. Kernel Name
  2. Network node hostname
  3. Kernal Release
  4. Kernal Version
  5. Machine Hardware name
  6. Processor type
  7. Hardware platform
  8. Operating System

Machine Hardware name 指出系統是跑 32 位元 (“i686” 或 “i386”) 還是跑 64 位元 (“x86_64”)
另外 Processor type 和 Hardware platform 皆有可能為 32 位元或是 64 位元。
 
也可以只要列出 Machine Hardware name

uname -m

 
另外還有幾個類似 uname -m 的指令為

arch
lscpu
file /sbin/init

 
如果得到的是 /sbin/init: symbolic link to /lib/systemd/systemd
那就改下

file /lib/systemd/systemd

 

 
source: How to check os version in Linux command line
 

#ubuntu #fedora #mint #opensuse #version

Leave a Reply

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

Related Post