3

I am facing problem to find the UNIX flavor, any body please provide the command so I can check UNIX flavour I have tried below commands but that's not working as expected

$  lsb_release -irc
ksh: lsb_release:  not found

$  uname -a
SunOS servername 5.10 Generic_150400-27 sun4u sparc SUNW,Sun-Fire-V890

$ cat /proc/version
cat: cannot open /proc/version

flavor should be like Solaris, HPUX, teport, AIX

Girdhar Singh Rathore
  • 5,030
  • 7
  • 49
  • 67
  • 3
    LSB stands for [Linux Standard Base](https://en.wikipedia.org/wiki/Linux_Standard_Base) and as the name implies is Linux-specific. As for the `uname` output and Solaris, SunOS 5 is Solaris, so you get your answer there. Oh, and the [procfs`](https://en.wikipedia.org/wiki/Procfs) filesystem is very specific to each platform that have it, there's really no standard for it. Lastly a note about terminology, when one normally mentions "UNIX flavor" one usually means e.g. SYSV or BSD. – Some programmer dude Dec 03 '15 at 12:15
  • Thanks @JoachimPileborg i got you SunOS 5 mean its Solaris – Girdhar Singh Rathore Dec 03 '15 at 12:24
  • 2
    how about: uname -s https://en.wikipedia.org/wiki/Uname – Rolf Rander Dec 03 '15 at 13:10

2 Answers2

4

uname -a && cat /etc/*release

Iván
  • 129
  • 1
  • 7
1
cat /proc/version

should give you the flavour.

You can check what's in your proc by doing ls /proc

Jerome Anthony
  • 7,823
  • 2
  • 40
  • 31