Results 1 to 2 of 2

Thread: Scripting

  1. #1
    Join Date
    Mar 2006
    Location
    Brisbane, Australia
    Beans
    64
    Distro
    Ubuntu

    Question Scripting

    Have a few questions, all involving how to find out various things, using Bash.... Can I find out:
    When the OS was initially installed ?
    The version of X being used ?
    The driver version numbers of ATi & Nvidia ?
    The services that run at boot ?
    List the Users and their Groups ?

    TIA.
    Mark.
    What's on your network ???
    http://www.open-audit.org

  2. #2
    Join Date
    Jun 2006
    Beans
    112

    Re: Scripting

    None of these are programming questions; they are basic Linux admin questions. Well I guess the last one is a programming question as it's something that would be covered in Stevens's Unix Programming book.

    I don't think there's any real way to know when the OS was installed, as opposed to the kernel, which you can check with uname. I see there's an /etc/debian_version. You could do a stat on that. But that could be somewhat fluid...I'll leave that question for the more experienced debian people.

    For X, you can use xdpyinfo.

    For driver versions, modprobe.

    Services are configured in the /etc/rc directories.

    Users and Groups: /etc/passwd and /etc/groups (come on now, that's a basic unix question).
    Last edited by Daverz; July 20th, 2006 at 09:21 AM.

Bookmarks

Posting Permissions

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