您的位置:首页 > 运维架构 > Linux

Linux命令之uname

2013-05-16 22:51 399 查看
uname
功能说明:uname用来获取电脑和操作系统的相关信息。
语  法:uname[-amnrsvpio][--help][--version]
补充说明:uname可显示linux主机所用的操作系统的版本、硬件的名称等基本信息。
参  数:-a或–all 详细输出所有信息,依次为内核名称,主机名,内核版本号,内核版本,硬件名,处理器类型,硬件平台类型,操作系统名称-m或–machine 显示主机的硬件(CPU)名-n或-nodename 显示主机在网络节点上的名称或主机名称-r或–release 显示linux操作系统内核版本号-s或–sysname 显示linux内核名称-v 显示显示操作系统是第几个 version 版本-p 显示处理器类型或unknown -i 显示硬件平台类型或unknown -o 显示操作系统名--help 获得帮助信息–version 显示uname版本信息

命令实践:
[root@yubing ~]#unameLinux[root@yubing ~]#uname -a 处理器类型Linux yubing 2.6.18-194.el5#1 SMP Fri Apr 2 14:58:35 EDT 2010 i686 i686 i386 GNU/Linux内核名称内核版本号内核版本硬件名操作系统名称主机名硬件平台类型[root@yubing ~]#uname -m 硬件(CPU)名i686[root@yubing ~]#uname -n 在网络节点上的名称或主机名称yubing[root@yubing ~]#uname -r Linux操作系统内核版本号2.6.18-194.el5[root@yubing ~]#uname -s Linux内核名称Linux[root@yubing ~]#uname -v 操作系统是第几个version版本#1 SMP Fri Apr 214:58:35 EDT 2010[root@yubing ~]#uname -p 处理器类型i686[root@yubing ~]#uname -i 硬件平台类型i386[root@yubing ~]#uname -o 操作系统名GNU/Linux[root@yubing ~]#uname --help用法:uname [选项]...Print certainsystem information. With no OPTION, sameas -s.
-a, --all print all information, in thefollowing 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 --help 显示此帮助信息并退出 --version 输出版本信息并退出
请向 <bug-coreutils@gnu.org> 报告错误。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  uname linux uname命令