uname命令:
[sean@localhost ~]$ uname --help
用法:uname [选项]...
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:
-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 or "unknown"
-i, --hardware-platform print the hardware platform or "unknown"
-o, --operating-system print the operating system
详细信息:
[sean@localhost ~]$ uname -a
Linux LX 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
内核名称(uname命令不带参数等价于uname -s):
[sean@localhost ~]$ uname
Linux
网络主机名:
[sean@localhost ~]$ uname -n
localhost.localdomain
内核发布号:
[sean@localhost ~]$ uname -r
2.6.18-164.el5
内核版本号:
[sean@localhost ~]$ uname -v
#1 SMP Tue Aug 18 15:51:48 EDT 2009
硬件架构:
[sean@localhost ~]$ uname -m
x86_64
操作系统:
[sean@localhost ~]$ uname -o
GNU/Linux
来源:CSDN
作者:sean-zou
链接:https://blog.csdn.net/a19881029/article/details/8213175