Shell中uname命令檢視系統核心、版本
阿新 • • 發佈:2019-01-11
uname命令
- 描述
用於列印核心名稱和版本、主機名等系統資訊。
- 用法
uname [OPTION]...
| 引數 | 用法 |
|---|---|
| -a | print all information |
| -s | print the kernel name |
| -n | print the network node hostname |
| -r | print the kernel release |
| -v | print the kernel version |
| -m | print the machine hardware name |
| -p | print the processor type or “unknown” |
| -i | print the hardware platform or “unknown” |
| -o | print the operating system |
預設uname命令只打印核心的名稱
[root@test ~]# uname
Linux
只打印系統的主機名(與hostname命令相同)
[[email protected] ~]# uname -n
test.xuptip.com
列印核心版本資訊
[root@test ~]# uname -r
3.10 .0-123.el7.x86_64
列印系統的硬體名稱
[root@test ~]# uname -m
x86_64
列印系統的處理器型別的資訊
[root@test ~]# uname -p
x86_64
列印系統的硬體平臺資訊
[root@test ~]# uname -i
x86_64
列印上述所有資訊
[[email protected] ~]# uname -a
Linux test.xuptip.com 3.10.0-123.el7.x86_64 #1 SMP Mon May 5 11:16:57 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux
