How to find out which Linux distribution I’m logged on to

Posted on

How to find out which Linux distribution I’m logged on to – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about linux, , , , .

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.

Solution :

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: cat /etc/*release, it may work on a few systems. Also, /etc/issue may contain distribution information.

lsb_release -a should work on most distributions.

lsb_release and more /etc/redhat-release for redhat and fedora i dont have idea about ubuntu and all other distro

Generally /etc/motd gives the distribution name too…

Leave a Reply

Your email address will not be published. Required fields are marked *