Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1471746
  • 博文数量: 150
  • 博客积分: 65
  • 博客等级: 民兵
  • 技术积分: 3415
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-25 10:30
个人简介

游戏后台开发

文章分类

全部博文(150)

文章存档

2020年(1)

2019年(4)

2017年(3)

2016年(6)

2015年(4)

2014年(45)

2013年(86)

2012年(1)

分类: LINUX

2013-10-30 17:49:26

NAME
     uname - print name of current system


SYNOPSIS
     uname [-aimnprsvX]


     uname [-S system_name]


DESCRIPTION
     The uname utility prints information about the current  sys-
     tem on the standard output. When options are specified, sym-
     bols representing one or more system characteristics will be
     written to the standard output. If no options are specified,
     uname  prints  the  current  operating  system's  name.  The
     options  print  selected  information  returned by uname(2),
     sysinfo(2), or both.


OPTIONS
     The following options are supported:


     -a              Prints basic information currently available
                     from the system.


     -i              Prints the name of the platform.


     -m              Prints the machine  hardware  name  (class).
                     Use of this option is discouraged. Use uname
                     -p instead. See NOTES section below.


     -n              Prints the nodename  (the  nodename  is  the
                     name  by which the system is known to a com-
                     munications network).


     -p              Prints the current host's ISA  or  processor
                     type.


     -r              Prints the operating system release level.


     -s              Prints the name  of  the  operating  system.
                     This is the default.


SunOS 5.10          Last change: 17 Sep 2003                    1


User Commands                                            uname(1)


     -S system_name  The nodename may be changed by specifying  a
                     system  name argument. The system name argu-
                     ment is restricted to  SYS_NMLN  characters.
                     SYS_NMLN is an implementation specific value
                     defined in . Only the  super-
                     user is allowed this capability. This change
                     does not persist across reboots of the  sys-
                     tem. Use sys-unconfig(1M) to change a host's
                     name permanently.


     -v              Prints the operating system version.


     -X              Prints  expanded  system  information,   one
                     information element per line, as expected by
                     SCO   UNIX.   The   displayed    information
                     includes:


                       o  system name,  node,  release,  version,
                          machine, and number of CPUs.


                       o  BusType,  Serial,  and  Users  (set  to
                          "unknown" in Solaris)


                       o  OEM# and  Origin#  (set  to  0  and  1,
                          respectively)


EXAMPLES
     Example 1: Printing the OS name and release level


     The following command:


     example% uname -sr


     prints  the  operating  system  name  and   release   level,
     separated by one character.


ENVIRONMENT VARIABLES
     See environ(5) for descriptions of the following environment
     variables  that affect the execution of uname: LANG, LC_ALL,
     LC_CTYPE, LC_MESSAGES, and NLSPATH.


     SYSV3    This variable  is  used  to  override  the  default
              behavior  of  uname.  This  is necessary to make it
              possible for some INTERACTIVE UNIX Systems and  SCO
              UNIX  programs  and  scripts to work properly. Many


SunOS 5.10          Last change: 17 Sep 2003                    2


User Commands                                            uname(1)


              scripts use uname to determine the  SYSV3  type  or
              the  version of the OS to ensure software is compa-
              tible with that  OS.  Setting  SYSV3  to  an  empty
              string  will make uname print the following default
              values:


              nodename nodename 3.2 2 i386


              The individual elements  that  uname  displays  can
              also  be modified by setting SYSV3 in the following
              format:


              os,sysname,node,rel,ver,mach


              os              Operating system (IUS or SCO).


              sysname         System name.


              node            Nodename as  displayed  by  the  -n
                              option.


              rel             Release level as displayed  by  the
                              -r option.


              ver             Version number as displayed by  the
                              -v option.


              mach            Machine name  as  displayed  by  -m
                              option.


              Do not put spaces between the elements.  If an ele-
              ment  is  omitted, the current system value will be
              used.


EXIT STATUS


SunOS 5.10          Last change: 17 Sep 2003                    3


User Commands                                            uname(1)


     The following exit values are returned:


     0        Successful completion.


     >0       An error occurred.
阅读(1648) | 评论(0) | 转发(0) |
0

上一篇:split命令

下一篇:arch

给主人留下些什么吧!~~