www.delorie.com/gnu/docs/sh-utils/sh-utils_65.html   search  
 
Buy GNU books!


GNU shell utilities

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

10.2 uname: Print system information

uname prints information about the machine and operating system it is run on. If no options are given, uname acts as if the -s option were given. Synopsis:

 
uname [option]...

If multiple options or -a are given, the selected information is printed in this order:

 
sysname nodename release osversion machine

The osversion, at least, may well be multiple words. For example:

 
uname -a
=> Linux hayley 1.0.4 #3 Thu May 12 18:06:34 1994 i486

The program accepts the following options. Also see 2. Common options.

`-a'
`--all'
Print all of the below information.

`-m'
`--machine'
Print the machine (hardware) type.

`-n'
`--nodename'
Print the machine's network node hostname.

`-p'
`--processor'
Print the machine's processor type

`-r'
`--release'
Print the operating system release.

`-s'
`--sysname'
Print the operating system name.

`-v'
Print the operating system version.


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright © 2003   by The Free Software Foundation     Updated Jun 2003