LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Alternatives to lsdev on CentOS/Ubuntu (https://www.linuxquestions.org/questions/linux-newbie-8/alternatives-to-lsdev-on-centos-ubuntu-4175480706/)

DrTek 10-14-2013 05:24 AM

Alternatives to lsdev on CentOS/Ubuntu
 
Hi there:

I was following the book LPI Linux Certification on a Nutshell 3rd Ed. from the O'Reilly publisher, and on the first chapter it talks about lsdev. As I've understood it gathers info from DMA files on /proc to display information about my system hardware. The point is, I've tried to run lsdev both on CentOS 6 and Ubuntu Server, and it looks that it doesn't come default on both. Then I've searched linuxquestions.org since I was sure I'm not the first one to find this problem, and someone suggested to install the package procinfo in order to install lsdev on CentOS. I couldn't find that package neither on the standard repositories nor on elrepo elep ones. So, my question is, what alternative I've got to get the info lsdev shows with the same format it does?

Thanks people!

j;)

GNU/Linux 10-14-2013 05:53 AM

Try 'lspci' or 'lspci -v'.

druuna 10-14-2013 05:56 AM

Another hardware related command on RHEL/CentOS: lshal

EDIT:

You might want to instal lshw

DrTek 10-14-2013 10:07 AM

Thanks! I think I could survive with lspci-v, but I give a try to lshw. I've read the man for lshal, and it states that it reads the contents of /usr/share/doc/hal-0.5.14/spec/hal-spec.html but I've been looking for that file, and it doesn't appear on my system. Do you have any clue where it could be lshal reading from? Thanks, again!

druuna 10-14-2013 10:59 AM

Quote:

Originally Posted by DrTek (Post 5045463)
I've read the man for lshal, and it states that it reads the contents of /usr/share/doc/hal-0.5.14/spec/hal-spec.html but I've been looking for that file, and it doesn't appear on my system. Do you have any clue where it could be lshal reading from?

I'm not 100% sure on this one, but I do believe that hal (hald) hooks into the lower level udev.

DrTek 10-15-2013 02:01 AM

Thanks for the help. :) Now I've got a better understanding of what hal is, but I will not bother to go further on that since as I've read on the wikipedia page you linked, is going to be dropped for udev.


All times are GMT -5. The time now is 04:08 PM.