uname
Sign in to saveuname (short for unix name) is a computer program in Unix and Unix-like computer operating systems that prints the name, version and other details about the current machine and the operating system running on it.
Key facts
- Software.name
- uname
- Software.screenshot
- simh-pdp11-unix-sysv.png
- Software.caption
- The command on UNIX System V
- Software.developer
- AT&T Bell Laboratories, David MacKenzie.
- Software.operating system
- Unix and Unix-like
- Software.platform
- Cross-platform
- Software.genre
- Command
- Software.license
- coreutils: GPL-3.0-or-later
via Wikipedia infobox
Described at
uname
pubs.opengroup.org →By default, the uname utility shall write the operating system name to standard output. When options are specified, symbols representing one or more system characteristics shall be written to the standard output. The format and contents of the symbols are implementation-defined. On systems conforming to the System Interfaces volume of POSIX.1-2017, the symbols written shall be those supported by the uname () function as defined in the System Interfaces volume of POSIX.1-2017. Write the name of the hardware type on which the system is running to standard output. Write the current version level of this release of the operating system implementation. If no options are specified, the uname utility shall write the operating system name, as if the -s option had been specified. Provide a default value for the internationalization variables that are unset or null. (See XBD Internationalization Variables for the precedence of internationalization variables used to determine the values of locale categories.) If set to a non-empty string value, override the values of all the other internationalization variables. Determine the locale that should be used to affect the format and contents of diagnostic messages written to standard error. [XSI) ] ![[Option Start]]( Determine the location of message catalogs for the processing of LC MESSAGES. ![[Option End]]( If options are specified to select different combinations of the symbols, only those symbols shall be written, in the order shown above for the -a option. If a symbol is not selected for writing, its corresponding trailing characters also shall not be written. Note that any of the symbols could include embedded characters, which may affect parsing algorithms if multiple options are selected for output. The node name is typically a name that the system uses to identify itself for inter-system communication addressing. writes the operating system name and release level, separated by one or more characters. It was suggested that this utility cannot be used portably since the format of the symbols is implementation-defined. The POSIX.1 working group could not achieve consensus on defining these formats in the underlying uname () function, and there was no expectation that this volume of POSIX.1-2017 would be any more successful. Some applications may still find this historical utility of value. For example, the symbols could be used for system log entries or for comparison with operator or user input.
Excerpt from a page describing this subject · 7,168 chars · not written by Vinony
~14 min read
Encyclopedic overview
6 sectionsContents
- History
- Related and similar commands
- Examples
- See also
- Footnotes
- External links
uname (short for unix name) is a computer program in Unix and Unix-like computer operating systems that prints the name, version and other details about the current machine and the operating system running on it.
==History== The uname system call and command appeared for the first time in PWB/UNIX. Both are specified by POSIX. The GNU version of uname is included in the "sh-utils" or "coreutils" packages. uname itself is not available as a standalone program. The version of uname bundled in GNU coreutils was written by David MacKenzie. The command is available as a separate package for Microsoft Windows as part of the GnuWin32 project and the UnxUtils collection of native Win32 ports of common GNU Unix-like utilities.
Excerpted from Wikipedia’s “uname” article, available under the CC BY-SA 4.0 licence.