Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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

  2. #2
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Well, it varies from distro to distro but you can try
    Code:
    uname -a
    If you have a Gentoo box you can use:
    Code:
    cat /etc/gentoo-release
    Several variations of cat /etc/release are posted here. See if one works for you.
    Linux Blog cat /etc/*-release — finding out Linux release version
    I 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.

    I'd rather be lost at the lake than found at home.

  3. #3
    Linux Engineer Kieren's Avatar
    Join Date
    Aug 2007
    Location
    England
    Posts
    848
    You can also try

    Code:
    cat /proc/version
    Linux User #453176

  4. $spacer_open
    $spacer_close
  5. #4
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    Other commands to try
    Code:
    cat /etc/*-release
    and
    Code:
    lsb_release -a

  6. #5
    Just 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.

  7. #6
    Linux Engineer Kieren's Avatar
    Join Date
    Aug 2007
    Location
    England
    Posts
    848
    Quote Originally Posted by svinoba View Post
    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.
    I don't think you would need root access for my solution or to use uname
    Linux User #453176

  8. #7
    Just Joined!
    Join Date
    Nov 2007
    Posts
    44
    @Kieren,
    oops sorry.

  9. #8
    Linux Engineer Kieren's Avatar
    Join Date
    Aug 2007
    Location
    England
    Posts
    848
    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

  10. #9
    Just 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.)

  11. #10
    Linux Engineer Kieren's Avatar
    Join Date
    Aug 2007
    Location
    England
    Posts
    848
    I'm not sure why you don't have a /etc/lsb-release file, maybe it's new to Karmic
    Linux User #453176

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •