GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
UNAME(1) FreeBSD General Commands Manual UNAME(1)

unamedisplay information about the system

uname [-abiKmnoprsUv]

The uname command writes the name of the operating system implementation to standard output. When options are specified, strings representing one or more system characteristics are written to standard output.

The options are as follows:

Behave as though the options -m, -n, -r, -s, and -v were specified.
Write the kernel's linker-generated build-id to standard output.
Write the kernel ident to standard output.
Write the FreeBSD version of the kernel.
Write the type of the current hardware platform to standard output. (make(1) uses it to set the MACHINE variable.)
Write the name of the system to standard output.
This is a synonym for the -s option, for compatibility with other systems.
Write the type of the machine processor architecture to standard output. (make(1) uses it to set the MACHINE_ARCH variable.)
Write the current release level of the kernel to standard output. freebsd-version(1) can be used to print the release level of the userland.
Write the name of the operating system implementation to standard output.
Write the FreeBSD version of the user environment.
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. Note that when both of these two options are specified, regardless of their order, the kernel version would be printed first, followed by the user environment version.

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. See uname(3) for more information.

The uname utility exits 0 on success, and >0 if an error occurs.

The hardware platform (-m) can be different from the machine's processor architecture (-p), e.g., on 64-bit PowerPC, -m would return powerpc and -p would return powerpc64.

freebsd-version(1), feature_present(3), getosreldate(3), sysctl(3), uname(3), sysctl(8)

The uname command is expected to conform to the IEEE Std 1003.2 (“POSIX.2”) specification.

The uname command appeared in PWB UNIX 1.0, however 4.4BSD was the first Berkeley release with the uname command.

The -K and -U extension flags appeared in FreeBSD 10.0. The -b extension flag appeared in FreeBSD 13.0.

September 14, 2022 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.