Linux系统下的uname命令

简介:

uname 命令可用于大多数 UNIX 和类 UNIX 系统以及 Linux。

功能说明: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版本信息

uname使用范例 :

[root@localhost ~]# uname
Linux
 

注:单独使用uname命令时相当于uname -s

[root@localhost ~]# uname -a
Linux localhost 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 GNU/Linux

[root@localhost ~]# uname -m
i686

[root@localhost ~]# uname -n
localhost

[root@localhost ~]# uname -r
2.6.18-4-686

[root@localhost ~]# uname -s
Linux

[root@localhost ~]# uname -v
#1 SMP Mon Mar 26 17:17:36 UTC 2007

[root@localhost ~]# uname -p
i686

[root@localhost ~]# uname -i
i386

[root@localhost ~]# uname -o
GNU/Linux

[root@localhost ~]# uname –version
uname (GNU coreutils) 5.97
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.

There is NO WARRANTY, to the extent permitted by law. 

 

参考至:http://www.9usb.net/200911/linux-uname-mingling.html 

如有错误,欢迎指正

邮箱:czmcj@163.com 

作者:czmmiao 原文地址:http://czmmiao.iteye.com/blog/911118
相关文章
|
1天前
|
监控 安全 Linux
Linux系统之安装ServerBee服务器监控工具
【4月更文挑战第22天】Linux系统之安装ServerBee服务器监控工具
35 2
|
1天前
|
缓存 Linux
linux系统缓存机制
linux系统缓存机制
|
1天前
|
Ubuntu Linux Shell
linux免交互登陆远程主机并执行命令(密钥对和Expect)
linux免交互登陆远程主机并执行命令(密钥对和Expect)
|
1天前
|
Linux
【Linux】常用命令
【Linux】常用命令
20 0
|
1天前
|
安全 Ubuntu Linux
Linux 网络操作命令Telnet
Linux 网络操作命令Telnet
10 0
Linux 网络操作命令Telnet
|
2天前
|
存储 Linux Android开发
RK3568 Android/Linux 系统动态更换 U-Boot/Kernel Logo
RK3568 Android/Linux 系统动态更换 U-Boot/Kernel Logo
15 0
|
2天前
|
Linux 开发工具 Android开发
Docker系列(1)安装Linux系统编译Android源码
Docker系列(1)安装Linux系统编译Android源码
4 0
|
2天前
|
Linux 数据安全/隐私保护
Linux常用命令实例带注释
Linux常用命令实例带注释
28 0
|
2天前
|
Linux 开发工具 数据安全/隐私保护
Linux(19)常用解压命令记录
Linux(19)常用解压命令记录
7 0
|
3天前
|
资源调度 JavaScript Ubuntu
Linux系统之部署briefing视频聊天系统
【4月更文挑战第21天】Linux系统之部署briefing视频聊天系统
37 2