LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 09-09-2005, 09:19 AM   #1
davee
Member
 
Registered: Oct 2002
Location: Ayrshire, Scotland
Distribution: Suse(home) RHEL (Work)
Posts: 263

Rep: Reputation: 30
Is there a single command to list all hardware installed (command line)?


There's a command on Solaris (prtconf) which lists all hardware installed on a box. Is there an equivalent command on linux (RedHat ES)?

Dave
 
Old 09-09-2005, 10:18 AM   #2
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 374

Rep: Reputation: 55
Re: Is there a single command to list all hardware installed (command line)?

Quote:
Originally posted by davee
There's a command on Solaris (prtconf) which lists all hardware installed on a box. Is there an equivalent command on linux (RedHat ES)?

Dave
/sbin/lspci will show all the pci hardware (including usb bridges,agp cards etc)
/sbin/lsusb will show all the usb devices (mice,etc)

dmesg will show you the kernel messages which can show you all the devices the kernel has found (hard disks,cdroms,etc)

There are many programs that gather all the information and output it in a more beautiful way, so you can see all the devices
you have, without running all these commands i mentioned.
 
Old 09-12-2005, 09:10 AM   #3
davee
Member
 
Registered: Oct 2002
Location: Ayrshire, Scotland
Distribution: Suse(home) RHEL (Work)
Posts: 263

Original Poster
Rep: Reputation: 30
Thanks for that - I'll have a play with dmesg.

Any of the more 'fancy' ones command line output?

Dave
 
Old 07-05-2007, 05:27 PM   #4
hollowman777
LQ Newbie
 
Registered: Jul 2007
Posts: 2

Rep: Reputation: 0
Talking command to list all hardware installed

there is the lshw command. I know it is out there for Debian and RedHat distros (Ubuntu and Fedora). works great especially when you pipe it into a text file.
If not already installed you can do one of these two depending on distro:
Debian / Ubuntu: apt-get install lshw or
RedHat / Fedora: yum install lshw

Hopes this helps.

Hollowman777
 
Old 04-16-2008, 04:26 AM   #5
rupen301
LQ Newbie
 
Registered: Jun 2004
Location: india
Distribution: fedora core1
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by hollowman777 View Post
there is the lshw command. I know it is out there for Debian and RedHat distros (Ubuntu and Fedora). works great especially when you pipe it into a text file.
If not already installed you can do one of these two depending on distro:
Debian / Ubuntu: apt-get install lshw or
RedHat / Fedora: yum install lshw

Hopes this helps.

Hollowman777
Try "dmidecode" which works on most unix/linux systems.
Gives a very detailed output which looks quite useful.

-rupen301
 
Old 11-11-2008, 11:14 AM   #6
tenouk
LQ Newbie
 
Registered: Apr 2008
Posts: 6

Rep: Reputation: 0
Smile Example of dmidecode command in action

Quote:
Originally Posted by rupen301 View Post
Try "dmidecode" which works on most unix/linux systems.
Gives a very detailed output which looks quite useful.

-rupen301
great example of command that can list hardware properties: dmidecode example
 
Old 02-28-2009, 07:19 PM   #7
hhvv
Member
 
Registered: May 2006
Location: India
Distribution: RHEL,CentOS,BSD,Ubuntu
Posts: 59
Blog Entries: 1

Rep: Reputation: 15
dmidecode

dmidecode is the powerful one
 
  


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
Command line screenshot of a single window Hko Programming 2 11-09-2010 08:01 PM
Command Line Help: Remove a List of Files lukasbradley Linux - Newbie 2 08-17-2005 04:21 AM
command to list rpm already installed? ginda Linux - Newbie 2 03-09-2005 06:25 AM
How to get list of system users from command line? tictocdoc Linux - General 3 03-12-2004 03:06 PM
How may I list only the directories in command line? geraldomanaus Linux - Newbie 5 03-20-2003 12:40 PM


All times are GMT -5. The time now is 11:27 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration