LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-11-2006, 02:06 PM   #1
apocolpse
Member
 
Registered: Oct 2004
Distribution: Fedora Core 4
Posts: 91

Rep: Reputation: 15
Hardware Listings


does anyone know how to get a listing of hardware components on the local machine via command line or gui. I'm using Fedora core 5
 
Old 08-11-2006, 03:28 PM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,397
Blog Entries: 1

Rep: Reputation: 64
There are 2 commands at least I know: lspci and hal-device. Both should list your hardware, but hal-device can give you additional information, specially for usb devices.
 
Old 08-11-2006, 04:39 PM   #3
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
try cat /proc/pci.
 
Old 08-12-2006, 02:31 PM   #4
soggycornflake
Member
 
Registered: May 2006
Location: England
Distribution: Slackware 10.2, Slamd64
Posts: 249

Rep: Reputation: 31
Don't forget lsusb, which is the usb equivalent to lspci. cat /proc/scsi/scsi will show scsi devices (e.g. flash drives). For older systems, if you have any PNP devices (ISA?) then lspnp will show those.
 
Old 08-13-2006, 08:29 AM   #5
tnandy
Member
 
Registered: Oct 2003
Location: Tennessee
Distribution: Fedora 22, CentOS
Posts: 169

Rep: Reputation: 15
I opened a terminal session under FC3 to try out these commands. In each case, I got an error message, "bash: hal-device: command not found", "bash: lspci: command not found". Becoming superuser ("su") did not help. How do you issue these commands?

The command "cat /proc/pci" worked, but did not give a specific hardware listing--at least not that I can read and make any sense of.
 
Old 08-13-2006, 09:14 AM   #6
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,397
Blog Entries: 1

Rep: Reputation: 64
Quote:
Originally Posted by tnandy
I opened a terminal session under FC3 to try out these commands.
I don't know about FC3. I believe hal was introduced in FC4. In FC5 the path for theses commands and their packages are listed below for your convenience. May be you figure out a similar package for FC3.


Code:
[root@iron ~]# which hal-device
/usr/bin/hal-device
[root@iron ~]# rpm -qf /usr/bin/hal-device
hal-0.5.7.1-2.fc5
[root@iron ~]# which lspci
/sbin/lspci
[root@iron ~]# rpm -qf /sbin/lspci
pciutils-2.2.1-1.2
[root@iron ~]# which lshal
/usr/bin/lshal
[root@iron ~]# rpm -qf /usr/bin/lshal
hal-0.5.7.1-2.fc5
[root@iron ~]#
 
Old 08-13-2006, 09:30 AM   #7
tnandy
Member
 
Registered: Oct 2003
Location: Tennessee
Distribution: Fedora 22, CentOS
Posts: 169

Rep: Reputation: 15
I'd remembered a hal-something being listed during the FC3 installation, but maybe this was an earlier version or something else entirely. Regardless, when I run "which" I get much different output than what you got, so I guess these commands aren't available in FC3.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
g++ compiler listings davmer Programming 8 04-30-2006 06:43 PM
directory listings aarulan Linux - Newbie 4 03-27-2006 08:49 PM
Directory/File Listings AndeAnderson Debian 7 02-24-2005 01:59 AM
Delete duplicate hardware listings, and another... Chakthi Linux - Hardware 4 12-04-2002 09:19 PM
driver listings? adam_boz Linux - General 3 10-22-2002 07:54 PM


All times are GMT -5. The time now is 01:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration