有没有办法找出使用哪个Linux发行版? [英] Is there any way to find out which Linux Distribution is used?

查看:113
本文介绍了有没有办法找出使用哪个Linux发行版?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想向用户显示以下程序中有关特定操作的帮助:

I would like to show the user some help on specific operations in my program of the form:

请键入"apt-get install foobar"以安装foobar功能.

Please type "apt-get install foobar" to install the foobar feature.

有什么要做的吗?还是我必须把它留给用户使用,并提供从Red Hat,Suse,Debian/Ubuntu,Mandriva,Slackware,Gentoo ....中提供的十几种选择.

Is there anything to do this or do i have to leave it to the user and offer a dozend choices from Red Hat, Suse, Debian/Ubuntu, Mandriva, Slackware, Gentoo ....

推荐答案

cat/etc/lsb-release

root@pierr-desktop:~# cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.10
DISTRIB_CODENAME=intrepid
DISTRIB_DESCRIPTION="Ubuntu 8.10"

这篇关于有没有办法找出使用哪个Linux发行版?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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