Is there a command for finding out the distribution of the OS I'm logged on to through SSH? uname can be used to print a whole lot of info, but apparently not the distribution (e.g. RedHat, Ubuntu etc.) nor the version of that distribution.
|
|
|||
|
|
|
I am afraid, there is no standarized way to check it. Every distribution seems to have its own way of announcing its version. You may try: |
|||||||
|
|
|
|||||||||||
|
|
lsb_release and more /etc/redhat-release for redhat and fedora i dont have idea about ubuntu and all other distro |
|||||
|
|
uname -o The uname binary is found on almost every linux system and the -o flag does it's best to give you the operating system back. lsb_release works too but isn't quite as ubiquitous. |
|||||||||
|
|
If you use the
|
|||
|
|