uname 8.25 命令詳解


uname 能打印某些係統信息。

譬如:顯示電腦及操作係統相關信息。

另請參閱: ps    

基本用法     詳細用法

root:# uname -a
Linux testUser 5.4.18-35-generic #21-KYLINOS SMP Tue Jul 20 13:33:58 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
root:#
			
root:# uname -a
Linux iZj6ch0Z 4.4.0-203-generic #235-Ubuntu SMP Tue Feb 2 02:49:08 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
root:#
			

基本語法

uname [OPTION]...
			

若沒有 OPTION, 等同參數 -s。

OPTION 選項

參數 EN 解釋 中文翻譯 備注
-a, --all print all information 打印所有信息
-s, --kernel-name print the kernel name 打印內核名稱
-n, --nodename print the network node hostname 打印網絡節點主機名
-r, --kernel-release print the kernel release 打印內核發布版本
-v, --kernel-version print the kernel version 打印內核版本
-m, --machine print the machine hardware name 打印機器硬件名稱
-p, --processor print the processor type (non-portable) 打印處理器類型 (非便攜式)
-i, --hardware-platform print the hardware platform (non-portable) 打印硬件平颱 (非便攜式)
-o, --operating-system print the operating system 打印操作係統
--help display this help and exit 顯示幫助信息並退齣
--version output version information and exit 輸齣版本信息並退齣

基本用法

功能 命令 文字解釋 示例 示例解釋
輸齣 uname -a 展示 OS 內核信息
版本 uname --version 展示版本信息
幫助 uname --help 展示幫助信息

 

版權聲明: 本文為獨傢原創稿件,版權歸 樂數軟件 ,未經許可不得轉載。