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.
|
| |||
|
feedback
|
|
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: | |||||
feedback
|
|
| |||||||
feedback
|
|
lsb_release and more /etc/redhat-release for redhat and fedora i dont have idea about ubuntu and all other distro | |||||
feedback
|
|
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. | |||||
feedback
|
|
If you use the
| |||
|
feedback
|