1. 程式人生 > >Ros入門(1)ubuntu檢視當前系統的版本和核心

Ros入門(1)ubuntu檢視當前系統的版本和核心

下面是一些檢視當前Linux系統的版本的方法: 
注:proc目錄下記錄的當前系統執行的各種資料,version記錄的版本資訊可以通過cat檢視到。

1. 使用命令:cat /proc/version 


proc目錄下記錄的當前系統執行的各種資料,version記錄的版本資訊可以直接通過cat檢視到,還可以看到gcc版本資訊。

2. 使用命令:uname -a

如上圖顯示自己的核心版本,並且可以檢視系統是32位(i386);


3. 使用命令:lsb_release -a

# lsb_release --help
Usage: lsb_release [options]

Options:
  -h, --help         show this help message and exit
  -v, --version      show LSB modules this system supports
  -i, --id           show distributor ID
  -d, --description  show description of this distribution
  -r, --release      show release number of this distribution
  -c, --codename     show code name of this distribution
  -a, --all          show all of the above information
  -s, --short        show requested information in short format 
4. 使用命令:cat /etc/issue