【版权申明】未经博主同意,谢绝转载!(请尊重原创,博主保留追究权)
LinuxShell目录传送门: https://blog.csdn.net/MACMACip/article/details/89890219
LinuxShell-系统信息命令
1.arch
2.uname
1.arch
$ man arch
arch - print machine hardware name (same as uname -m)
Print machine architecture.
打印机器的架构.
可见, 我的Linux系统是64位的.(32位系统的表现为: x86或x32)
2.uname
$ man uname
uname - print system information
Print certain system information. With no OPTION, same as -s.
打印系统信息(如果没有添加选项, 则与"uname -s"的命令结果相同)
-a, --all
print all information, in the following order, except omit -p and -i if unknown:
打印所有的系统信息, 使用以下的顺序.(如果-p和-i的命令选项的结果是未知的话, 则忽略它的结果.)
-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
打印操作系统名
由此可知, uname -a输出结果的意思如下:
Linux ubuntu 4.15.0-43-generic #46~16.04.1-Ubuntu SMP Fri Dec 7 13:31:08 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
内核名 | 网络节点名 | Linux内核的发行版本 | 内核版本 | 机器硬件名 | 处理器类型 | 硬件平台 | 操作系统名 |
---|---|---|---|---|---|---|---|
-s, --kernel-name | -n, --nodename | -r, --kernel-release | -v, --kernel-version | -m, --machine | -p, --processor | -i, --hardware-platform | -o, --operating-system |
Linux | ubuntu | 4.15.0-43-generic | #46~16.04.1-Ubuntu SMP Fri Dec 7 13:31:08 UTC 2018 | x86_64 | x86_64 | x86_64 | GNU/Linux |