Return the name of the operating system (POSIX)
uname [-amnprsv] [-S name]
- Behave as if the options -snrvmp were specified.
- Write the name of the hardware type on which the system is running.
- Write the name of this node.
- Write the processor name.
- Write the current release level of the operating system (indicated by a number).
- -S name
- Set the host name.
- Write the name of the operating system.
- Write the current version level of this release of the operating system (indicated by a timestamp).
The uname utility writes to standard output information on the name and release of the operating system being run. A portable application may use uname on any POSIX system to determine what operating system it's running under.
If you don't specify any options, uname writes the operating system name (QNX).
Write the operating system name:
Write a formatted string showing the name, release level, and version level of the operating system:
printf "OS: %s release %s version %s\n" $(uname -srv)
- > 0
- An error occurred.
The pidin utility provides more detailed information than uname, but pidin is a BlackBerry 10 OS utility and isn't present on other systems.
Last modified: 2014-06-24