Results 1 to 10 of 14
hi all
i am new on linux
how i know my web server use which linux distributions?
i have access to command line
thanks in advance for your help
regards
...
- 01-13-2010 #1Just Joined!
- Join Date
- Jul 2007
- Location
- egypt
- Posts
- 14
how i know my web server use which linux distributions?
hi all
i am new on linux
how i know my web server use which linux distributions?

i have access to command line
thanks in advance for your help
regards
saad
- 01-13-2010 #2
Well, it varies from distro to distro but you can try
If you have a Gentoo box you can use:Code:uname -a
Several variations of cat /etc/release are posted here. See if one works for you.Code:cat /etc/gentoo-release
Linux Blog cat /etc/*-release — finding out Linux release versionI do not respond to private messages asking for Linux help, Please keep it on the forums only.
All new users please read this.** Forum FAQS. ** Adopt an unanswered post.
- 01-13-2010 #3
You can also try
Code:cat /proc/version
Linux User #453176
- 01-13-2010 #4
Other commands to try
andCode:cat /etc/*-release
Code:lsb_release -a
- 01-13-2010 #5Just Joined!
- Join Date
- Nov 2007
- Posts
- 44
saad wants to know which distro so 'cat /etc/*-release' does not help. if he has root access then kieren's suggestion works best. 'uname -a' too. Btw, on my debian there is no lsb_release command.
- 01-13-2010 #6
- 01-13-2010 #7Just Joined!
- Join Date
- Nov 2007
- Posts
- 44
@Kieren,
oops sorry.
- 01-13-2010 #8
And the output to cat /etc/*-release for me is:
Code:kieren@George-Michael:~$ cat /etc/*-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=9.10 DISTRIB_CODENAME=karmic DISTRIB_DESCRIPTION="Ubuntu 9.10"
Linux User #453176
- 01-13-2010 #9Just Joined!
- Join Date
- Nov 2007
- Posts
- 44
@Kieren,
both 'cat /etc/*-release' and 'cat /etc/lsb_release' do not work on my lenny machine. Am i missing any package? (btw, /proc/version and uname work on all distros i have used.)
- 01-13-2010 #10
I'm not sure why you don't have a /etc/lsb-release file, maybe it's new to Karmic
Linux User #453176


Reply With Quote
