uname - print system information

uname - print system information

1. uname - print system information

Print certain system information. With no OPTION, same as -s.

-a, --all
print all information, in the following order, except omit -p and -i if unknown:

yongqiang@yongqiang:~$ uname -a
Linux yongqiang 4.4.0-17763-Microsoft #864-Microsoft Thu Nov 07 15:22:00 PST 2019 x86_64 x86_64 x86_64 GNU/Linux
yongqiang@yongqiang:~$

-s, --kernel-name
print the kernel name

yongqiang@yongqiang:~$ uname -s
Linux
yongqiang@yongqiang:~$

-n, --nodename
print the network node hostname

yongqiang@yongqiang:~$ uname -n
yongqiang
yongqiang@yongqiang:~$

-r, --kernel-release
print the kernel release

yongqiang@yongqiang:~$ uname -r
4.4.0-17763-Microsoft
yongqiang@yongqiang:~$

-v, --kernel-version
print the kernel version

yongqiang@yongqiang:~$ uname -v
#864-Microsoft Thu Nov 07 15:22:00 PST 2019
yongqiang@yongqiang:~$

-m, --machine
print the machine hardware name

yongqiang@yongqiang:~$ uname -m
x86_64
yongqiang@yongqiang:~$

-p, --processor
print the processor type (non-portable)

yongqiang@yongqiang:~$ uname -p
x86_64
yongqiang@yongqiang:~$

-i, --hardware-platform
print the hardware platform (non-portable)

yongqiang@yongqiang:~$ uname -i
x86_64
yongqiang@yongqiang:~$

-o, --operating-system
print the operating system

yongqiang@yongqiang:~$ uname -o
GNU/Linux
yongqiang@yongqiang:~$

--help
display this help and exit

--version
output version information and exit

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章