LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Is there a single command to list all hardware installed (command line)? (https://www.linuxquestions.org/questions/linux-hardware-18/is-there-a-single-command-to-list-all-hardware-installed-command-line-361738/)

davee 09-09-2005 09:19 AM

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

imitheos 09-09-2005 10:18 AM

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.

davee 09-12-2005 09:10 AM

Thanks for that - I'll have a play with dmesg.

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

Dave

hollowman777 07-05-2007 05:27 PM

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

rupen301 04-16-2008 04:26 AM

Quote:

Originally Posted by hollowman777 (Post 2812214)
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

tenouk 11-11-2008 11:14 AM

Example of dmidecode command in action
 
Quote:

Originally Posted by rupen301 (Post 3122818)
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

hhvv 02-28-2009 07:19 PM

dmidecode
 
dmidecode is the powerful one


All times are GMT -5. The time now is 03:24 AM.