uname

NAME

uname - print system information

SYNOPSIS

uname [OPTION]...

DESCRIPTION

Print certain system information. With no OPTION, same as

justin@Justin:~$ uname -a
Linux Justin 2.6.32-5-686 #1 SMP Fri Dec 10 16:12:40 UTC 2010 i686 GNU/Linux

-a = -s, -n, -r, -v, -m, -o

justin@Justin:~$ uname -s
Linux

justin@Justin:~$ uname
Linux
justin@Justin:~$ uname -n
Justin
justin@Justin:~$ uname -r
2.6.32-5-686
justin@Justin:~$ uname -v
#1 SMP Fri Dec 10 16:12:40 UTC 2010
justin@Justin:~$ arch
i686
justin@Justin:~$ uname -m
i686
justin@Justin:~$ uname -p
unknown
justin@Justin:~$ uname -i
unknown
justin@Justin:~$ uname -o
GNU/Linux

—help display this help and exit

justin@Justin:~$ uname --help
用法:uname [选项]...
Print certain system information.  With no OPTION, same as -s.

  -a, --all                print all information, in the following 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  输出版本信息并退出

Report uname bugs to bug-coreutils@gnu.org
GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
General help using GNU software: <http://www.gnu.org/gethelp/>
Report uname translation bugs to <http://translationproject.org/team/>

—version output version information and exit

justin@Justin:~$ uname --version
uname (GNU coreutils) 7.4
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

由 David MacKenzie 编写。

The full documentation for uname is maintained as a Texinfo manual. If the info and uname programs are properly installed at your site, the command

info coreutils 'uname invocation'

should give you access to the complete manual.

Wiki comments powered by Disqus