-5

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
If this question can be reworded to fit the rules in the help center, please edit the question.

  • What do you mean by OS name? The version? The patch level? That it's just AIX in general? – TheFiddlerWins Mar 26 '15 at 13:14
  • Thats ok.I am asking like how to find it is AIX or not?is there any oither command like uname is used to find the System name? – user278374 Mar 27 '15 at 4:35
2

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.

1

Maybe you can just:

cat /etc/issue

But I think this only would be of use on a Linux system.

Not the answer you're looking for? Browse other questions tagged or ask your own question.