Results 1 to 4 of 4
Hello,
I'm a newbie and I recently inherited a unix server. I'm trying reverse engineer somethings, but it's pretty difficult. Is there a command that will tell me what distro ...
- 10-30-2006 #1Just Joined!
- Join Date
- Oct 2006
- Posts
- 1
View System Information
Hello,
I'm a newbie and I recently inherited a unix server. I'm trying reverse engineer somethings, but it's pretty difficult. Is there a command that will tell me what distro my server is running or what kernal it's running?
- 10-30-2006 #2Linux Newbie
- Join Date
- Aug 2006
- Posts
- 226
"uname -r" should give you the kernel version. I'm not sure on the distro. Check for the existence of a /etc/debian_version file to see if it is Debian based.
- 10-30-2006 #3
Indeed: determining the distro can be difficult.
Some distros use special kernels. 'uname -r' may give you some information (for example, mine is: "2.6.17-gentoo-r8"). Alternatively, you can search for the existence of distro-specific files or directories:
/etc/portage/ = Gentoo
/etc/urpmi.conf = Mandriva
/etc/yum.conf = Fedora Core
/etc/apt.sources = Debian-based
/sbin/yast2 = SuSE
These are not 100%, since you can, for instance, install Apt on Fedora Core. However, they will generally give you a good idea.DISTRO=Arch
Registered Linux User #388732
- 10-30-2006 #4Linux Engineer
- Join Date
- Apr 2006
- Location
- Saint Paul, MN, USA / CentOS, Debian, Solaris, SuSE
- Posts
- 1,117
Hi.
The kernel as noted with uname.
I usually look in /etc for anything that has version or release in the name. Some distributions might have lsb-release, which, on my system, has the content below ... cheers, drl
Code:/etc/lsb-release 1 LSB_VERSION=2.0 2 DISTRIB_ID=Xandros 3 DISTRIB_RELEASE=3.0.2 4 DISTRIB_CODENAME=Xandros 5 DISTRIB_DESCRIPTION="Xandros Desktop OS"Welcome - get the most out of the forum by reading forum basics and guidelines: click here.
90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
We look forward to helping you with the challenge of the other 10%.
( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )


Reply With Quote