6

【Linux】 常用查看系統信息

 3 years ago
source link: https://segmentfault.com/a/1190000040002781
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

【Linux】 常用查看系統信息

发布于 今天 16:00

本文主要介紹在Linux裏面查看系統信息的幾個命令:

  1. uname -a 显示系统信息-(固定搭配)
  2. lsb_release -a 显示发行版本信息 -(固定搭配)

方法1 :uname -a (a=all) 所有信息,既包含

  • -m 显示电脑类型。
  • -n 显示在网络上的主机名称
  • -r 显示操作系统发行编号
  • -s 显示操作系统名称
  • -v 系统版本与时间

相當於: a = m + n + r + s + v

uname -a

image.png


方法2: lsb_release -a 所有信息,既包括

  • -v 显示版本信息
  • -i 显示发行版的id
  • -d 显示该发行版的描述信息
  • -r 显示当前系统是发行版的具体版本号
  • -c 发行版代号
  • -a 显示上面的所有信息
  • -h 显示帮助信息
lsb_release -a 

image.png


參考資料:
1.Linux - uname 常用命令
2.shell小记:lsb_release
3.[lsb_release](https://ipcmen.com/limage.png


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK