Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

uname(1) [freebsd man page]

UNAME(1)						    BSD General Commands Manual 						  UNAME(1)

NAME
uname -- display information about the system SYNOPSIS
uname [-aiKmnoprsUv] DESCRIPTION
The uname command writes the name of the operating system implementation to standard output. When options are specified, strings represent- ing one or more system characteristics are written to standard output. The options are as follows: -a Behave as though the options -m, -n, -r, -s, and -v were specified. -i Write the kernel ident to standard output. -K Write the FreeBSD version of the kernel. -m Write the type of the current hardware platform to standard output. -n Write the name of the system to standard output. -o This is a synonym for the -s option, for compatibility with other systems. -p Write the type of the machine processor architecture to standard output. -r Write the current release level of the operating system to standard output. -s Write the name of the operating system implementation to standard output. -U Write the FreeBSD version of the user environment. -v Write the version level of this release of the operating system to standard output. If the -a flag is specified, or multiple flags are specified, all output is written on a single line, separated by spaces. The -K and -U flags are intended to be used for fine grain differentiation of incremental FreeBSD development and user visible changes. ENVIRONMENT
An environment variable composed of the string UNAME_ followed by any flag to the uname utility (except for -a) will allow the corresponding data to be set to the contents of the environment variable. EXIT STATUS
The uname utility exits 0 on success, and >0 if an error occurs. SEE ALSO
feature_present(3), getosreldate(3), sysctl(3), uname(3), sysctl(8) STANDARDS
The uname command is expected to conform to the IEEE Std 1003.2 (``POSIX.2'') specification. HISTORY
The uname command appeared in PWB UNIX. The -K and -U extension flags appeared in FreeBSD 10.0. BSD
November 20, 2013 BSD

Check Out this Related Man Page

uname(1)						      General Commands Manual							  uname(1)

NAME
uname - Displays information about the operating system SYNOPSIS
uname [-amnrsvp] uname [-S system-name] The uname command displays system information or sets the system name. STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: uname: XCU5.0, SVID 4 Refer to the standards(5) reference page for more information about industry standards and associated tags. OPTIONS
Displays all information specified with the -m, -n, -r, -s, and -v options. Displays the type of hardware running the system. Displays the name of the node (this may be a name that the system is known by to a communications network). [Tru64 UNIX] Displays the processor type of the current host. Displays the release number of the operating system. Displays the name of the implementation of the operating system. (This option is on by default.) [Tru64 UNIX] Changes the name of the system to system_name. The system_name argument is restricted to SYS_NMLN-1 characters. The value of SYS_NMLN is implementation specific and is defined in /usr/include/sys/utsname.h. Only users with appropriate privileges can use this option. Displays the operating system version. OPERANDS
None DESCRIPTION
The uname command writes system information to standard output. This command is used primarily to determine which system you are using. The options cause selected information returned by the uname() call to be displayed. NOTES
When the -a option is used, output is displayed in the order: <system> <node> <release> <version> <hardware> When you request information by specifying the individual options, the appropriate information is displayed in the order indicated. [Tru64 UNIX] If the -p option is used, processor information is appended to the output line. The output of uname may include embedded blank spaces, so you should use caution when passing the output to parsing algorithms. EXIT STATUS
The following exit values are returned: The requested information has been successfully written. An error occurred. EXAMPLES
To display the complete system name and version banner, enter: uname -a ENVIRONMENT VARIABLES
The following environment variables affect the execution of uname: Provides a default value for the internationalization variables that are unset or null. If LANG is unset or null, the corresponding value from the default locale is used. If any of the internationalization vari- ables contain an invalid setting, the utility behaves as if none of the variables had been defined. If set to a non-empty string value, overrides the values of all the other internationalization variables. Determines the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte as opposed to multibyte characters in arguments). Determines the locale for the for- mat and contents of diagnostic messages written to standard error. Determines the location of message catalogues for the processing of LC_MESSAGES. FILES
System name information header file. Node specific configuration file. SEE ALSO
Functions: uname(2) Standards: standards(5) uname(1)
Man Page