Is it possible to which flavor of UNIX a machine is running (AIX, HP-UX, etc.) without using uname command? If so, what other method/command is used to determine this?
closed as off-topic by Ward♦, Jenny D, Katherine Villyard, Scott Pack, mdpc Apr 23 '15 at 4:23
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions should demonstrate reasonable business information technology management practices. Questions that relate to unsupported hardware or software platforms or unmaintained environments may not be suitable for Server Fault - see the help center." – Ward, Jenny D, Scott Pack, mdpc
uname would be the almost universal command for unix/linux based systems. I wonder why you want to avoid to use it. So, if you discard "uname" we would need to concern with Unix specific comands, such as "lsb_release" from most of recent Linux distributions or cat /etc/*-release. prtconf would also help to identify in some Unix. Some Unix systems, such as AIX, come with this info in the "/etc/motd" too, if not changed. Again, trying to avoid to use uname would put you only in situation of uncertainty and limitations.
EDIT: You can also do "cat /proc/version" which will work in many nix.
Maybe you can just:
But I think this only would be of use on a Linux system.