Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] Getting OS/HW details?



On Fri, Nov 2, 2012 at 1:09 PM, Scott Ehrlich <srehrlich at gmail.com> wrote:
> If I wanted to write a script to obtain distro flavor (Ubuntu, CentOS,
> RH, Mint, BSD, Solaris, etc), major/minor version (5.3, 10.6, etc),
> hardware brand/make/model, at least for starters, what would be the
> best way to attack it?

For systems that support the Linux Standard Base (LSB), the
/etc/lsb-release file and lsb_release command are good ways to
get OS information.

For hardware, if you are running as root and it is installed; the
dmidecode command is a good start.

Good Luck,
Bill Bogstad



BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org