Return the name of the operating system (POSIX)
uname [-amnprsv] [-S name]
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)
The pidin utility provides more detailed information than uname, but pidin is a QNX Neutrino utility and isn't present on other systems.
uname() in the Library Reference