Return system name (POSIX)
uname [-amnrsv]
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.
When no options are specified, uname writes the operating system name (QNX).
Write the operating system name:
uname
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`
The sin utility provides more detailed information than uname, but sin is a QNX utility and will not be present on other systems.