UNIX Shells by Example (4th Edition)

 <  Day Day Up  >  

uname ”prints name of current machine

uname [ amnprsv ] uname [ S system_name ]

uname prints information about the current system on the standard output. If no options are specified, uname prints the current operating system's name. The options print selected information returned by uname and/or sysinfo .

Example A.65.

1 uname -n 2 uname -a

EXPLANATION

  1. Prints the name of the host machine.

  2. Prints the machine hardware name, network nodename, operating system release number, the operating system name, and the operating system version ”same as “m , “n , “r , “s , and “v .

 <  Day Day Up  >  

Категории