如何发现正在使用的 Linux 发行版 [英] How to discover what Linux distribution is in use

查看:17
本文介绍了如何发现正在使用的 Linux 发行版的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时我需要访问一些运行 Linux(或者可能是另一个类 Unix SO)的服务器,但我不知道如何验证哪个 distribution 正在服务器上使用(有时甚至服务器的负责"人也不知道).

Sometimes I need to access some servers running Linux (or maybe another Unix-like SO), but I don't know how to verify which distribution is in use on the server (there are times that even the "responsible" person for the server doesn't know).

是否有一种简单可靠的方法来发现这一点,并且在所有这些方法中都是一致且一致的?

Is there an easy and reliable way to discover that, one that is uniform and consistent across all of them?

推荐答案

lsb_release -i 可能对你有用.

lsb_release -a

的一些讨论http://etbe.coker.com.au/2007/08/30/identifying-the-distribution-of-a-linux-system/

这篇关于如何发现正在使用的 Linux 发行版的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆