uname print system information if no option same as -s -a, --all print all information, in the following order: -s, --kernel-name print the kernel name -n, --nodename print the network node hostname -r, --kernel-release print the kernel release -s, --kernel-name print the kernel name -n, --nodename print the network node hostname -r, --ker...
by jimonitu - Linux文档专区 - 2007-08-20 12:00:30 阅读(532) 回复(0)
转自Easy Linux 社 区 原帖地址:http://www.1zlinux.com/bbs/thread-270-1-1.html 这个算6号的,明天发不了了 linux基本命令之uname uname命令介绍 1.名称:uname 2.适用对象:所有使用者 3.命令格式:uname [选项]... 4.作用:打印出系统信息 5.参数详解: -a, --all #打印出所有信息,如果-p,-i的结果为unknown,将不显示-p,-i的结果 -s, --kernel-name #打印出内核名称 -n, --nodename ...
【uname系统调用】 功能描述: 获取当前内核名称和其它信息。 用法: #include extern int uname (struct utsname *__name) __THROW; 参数: __name:指向存放系统信息的缓冲区,原型如下 struct utsname { char sysname[_UTSNAME_SYSNAME_LENGTH];//当前操作系统名 char nodename[_UTSNAME_NODENAME_LENGTH];//网络上的名称 char release[_UTSNAME_RELEASE_LENGTH];//当前发布级别 char version[_UTSNAME_VERS...
【uname系统调用】 功能描述: 获取当前内核名称和其它信息。 用法: #include /* Put information about the system in NAME. */ extern int uname (struct utsname *__name) __THROW; 参数: __name:指向存放系统信息的缓冲区,原型如下 /* Structure describing the system and machine. */ struct utsname { /* Name of the implementation of the operating system. */ char sysname[_UTSNAME_SYSNAME_LEN...
[root]# uname -a Linux hostname 2.4.20-37.9.legacysmp #1 SMP Mon Sep 27 19:29:13 EDT 2004 i686 i686 i386 GNU/Linux 我两年前用过REDHAT,我记得uname -a 可以看到 redhat 6.3之类的东东,现在怎么看不到了?
[root]# uname -a Linux hostname 2.4.20-37.9.legacysmp #1 SMP Mon Sep 27 19:29:13 EDT 2004 i686 i686 i386 GNU/Linux 我两年前用过REDHAT,我记得uname -a 可以看到 redhat 6.3之类的东东,现在怎么看不到了?
http://www.akae.cn/study/LinuxBasicCmd/uname.html Linux视频分享 http://ftp.akaedu.org/study "欢迎参与上传学习资料,赠送嵌入式学习图书活动" 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/80906/showart_1287505.html