Red Hat Bugzilla – Bug 84766
uname -o misrepresents operating system
Last modified: 2005-10-31 17:00:50 EST
Description of problem:
uname -o reports GNU/Linux as the operating system.
This is not the operating system. The operating system is Red Hat Linux.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. uname -o
uname should produce a result that is compatible with what is in /etc/release
When writing bug report software that reports a bug to the vendor, it is useful
to report the operating system automagically. This could be done with uname -o
from sh-utils if it properly reported the operating system. Instead, it reports
a class of operating system - ones that use the Linux kernel and have some GNU
software installed. Operating systems in this class can vary quite a bit, and
the class of the operating system is useless.
Since Red Hat (and many others) do not have an /etc/release file by default,
using uname -o is a second way for bug reporting software to get operating
system information, if uname -o would report the proper operating system,
opposed to just a class of OS's (which for all practical purposes can be
determined via uname -s)
-o is not specified by POSIX and so can't be relied upon anyway.