Within the bash shell, the variable OSTYPE contains a value similar (but not identical) to the value of uname -o. The following table contains examples from various versions of uname on various platforms. On a system running Darwin, the output from running uname with the -a command line argument might look like the text below:ĭarwin Roadrunner.local 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58: root:xnu-1504.3.12~1/RELEASE_I386 i386
#CYGWIN FOR MAC WINDOWS#
The ver command found in operating systems such as DOS, OS/2 and Microsoft Windows is similar to the uname command. Some Unix variants, such as AT&T UNIX System V Release 3.0, include the related setname program, used to change the values that uname reports. 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. The version of uname bundled in GNU coreutils was written by David MacKenzie. uname itself is not available as a standalone program. The GNU version of uname is included in the "sh-utils" or "coreutils" packages. The uname system call and command appeared for the first time in PWB/UNIX.