LinuxQuestions.org
Review your favorite Linux distribution.
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 03-01-2007, 03:51 PM   #1
speederpro
LQ Newbie
 
Registered: May 2003
Posts: 8

Rep: Reputation: 0
Find hardware information


Hello,

I would like to find my computer information on a linux box. For example on windows XP, I can go to Start-->Run and type in msinfo32. This will give me a pop up box with my motherboard name and other information. Is there a command line that I can get those information in Linux?

Basically, I'm looking for these information without opening the linux box:
Mother board name
network card name that is installed on the computer (active/inactive)
how much Memory installed.

I don't have graphical interface installed on this linux box so I will have to rely on command line. Will I be able to get this info without opening the box?
 
Old 03-01-2007, 03:57 PM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
I'm quite sure you can get (at least most of) the information without opening the box. Check out commands such as
Code:
lspci | less
cat /proc/meminfo
And other files under /proc/ (like /proc/cpuinfo). The /proc filesystem is actually a non-physical filesystem that provides a "peek hole" into your kernel, and can provide some more or less useful information about your system; for example your laptop's battery information is found there, if you have acpid or similar installed that can take that information (and have a laptop with a battery, of course). The lspci command prints information about your hardware devices.
 
Old 03-01-2007, 03:59 PM   #3
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
I don't know how you could get the motherboard name, but running "lspci" will list all devices on the PCI bus (which would include any NICs) and to find the amount of RAM you could either do:

cat /proc/meminfo

or

free -m
 
Old 03-01-2007, 04:02 PM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,577
Blog Entries: 14

Rep: Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969
"lspci" will show you cards in slots
(edited - in brain cramp moment I had said lsdev - d'oh!)

If running Fedora Core or Redhat "kudzu -p" will show you info about all hardware.

On Linux looking in /proc will give you more information than you'll ever want to know. This is one of the most valuable things to learn about Linux. "man proc" will tell you the various areas you can traverse in proc.

e.g. /proc/cpuinfo will give you details about your processors.

Hint about proc. These aren't real files. If you see a file that has 0 bytes that is a way to see the resource - just type "cat /proc/<path to 0 byte file> to see the details it shows you. Some of the categories in /proc have subdirectories (e.g. /proc/scsi) so you have to go under those subdirectories to see the details of the resources described by those subdirectories (e.g. /proc/scsi/megaraid would show Megaraid [Dell PERC] information, /proc/scsi/aic7xxx would show Adaptec information.)

Last edited by MensaWater; 03-01-2007 at 04:19 PM.
 
Old 03-01-2007, 06:52 PM   #5
speederpro
LQ Newbie
 
Registered: May 2003
Posts: 8

Original Poster
Rep: Reputation: 0
Wink

Thank you all for the information.
 
Old 03-01-2007, 07:30 PM   #6
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
lshw is the command you really want.. it will check all those items mentioned above as well as the motherboard DMI and then display a large list with ALL your hardware specs.. very nice utility

Code:
default@debian:~$ lshw
WARNING: you should run this program as super-user.
debian
    description: Computer
    width: 32 bits
  *-core
       description: Motherboard
       physical id: 0
     *-memory
          description: System memory
          physical id: 0
          size: 1011MB
     *-cpu
          product: Intel(R) Pentium(R) 4 CPU 2.80GHz
          vendor: Intel Corp.
          physical id: 1
          bus info: cpu@0
          version: 15.3.3
          serial: 0000-0F33-0000-0000-0000-0000
          size: 18EHz
          width: 32 bits
          capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe constant_tsc pni monitor ds_cpl cid
          configuration: id=0
        *-logicalcpu:0
             description: Logical CPU
             physical id: 0.1
             width: 32 bits
             capabilities: logical
        *-logicalcpu:1
             description: Logical CPU
             physical id: 0.2
             width: 32 bits
             capabilities: logical
     *-pci
          description: Host bridge
          product: 82865G/PE/P DRAM Controller/Host-Hub Interface
          vendor: Intel Corporation
          physical id: f4000000
          bus info: pci@00:00.0
          version: 02
          width: 32 bits
          clock: 33MHz
          resources: iomemory:f4000000-f7ffffff
        *-pci:0
             description: PCI bridge
             product: 82865G/PE/P PCI to AGP Controller
             vendor: Intel Corporation
             physical id: 1
             bus info: pci@00:01.0
             version: 02
             width: 32 bits
             clock: 66MHz
             capabilities: pci normal_decode bus_master
           *-display
                description: VGA compatible controller
                product: NV40 [GeForce 6800]
                vendor: nVidia Corporation
                physical id: 0
                bus info: pci@01:00.0
                version: a1
                size: 128MB
                width: 32 bits
                clock: 66MHz
                capabilities: vga bus_master cap_list
                configuration: driver=nvidia latency=248 maxlatency=1 mingnt=5
                resources: iomemory:fd000000-fdffffff iomemory:e8000000-efffffff iomemory:fc000000-fcffffff irq:185        *-usb:0
             description: USB Controller
             product: 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1
             vendor: Intel Corporation
             physical id: 1d
             bus info: pci@00:1d.0
             version: 02
             width: 32 bits
             clock: 33MHz
             capabilities: uhci bus_master
             configuration: driver=uhci_hcd latency=0
             resources: ioport:cc00-cc1f irq:185
        *-usb:1
             description: USB Controller
             product: 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2
             vendor: Intel Corporation
             physical id: 1d.1
             bus info: pci@00:1d.1
             version: 02
             width: 32 bits
             clock: 33MHz
             capabilities: uhci bus_master
             configuration: driver=uhci_hcd latency=0
             resources: ioport:d000-d01f irq:193
        *-usb:2
             description: USB Controller
             product: 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3
             vendor: Intel Corporation
             physical id: 1d.2
             bus info: pci@00:1d.2
             version: 02
             width: 32 bits
             clock: 33MHz
             capabilities: uhci bus_master
             configuration: driver=uhci_hcd latency=0
             resources: ioport:d400-d41f irq:169
        *-usb:3
             description: USB Controller
             product: 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4
             vendor: Intel Corporation
             physical id: 1d.3
             bus info: pci@00:1d.3
             version: 02
             width: 32 bits
             clock: 33MHz
             capabilities: uhci bus_master
             configuration: driver=uhci_hcd latency=0
             resources: ioport:d800-d81f irq:185
        *-usb:4
             description: USB Controller
             product: 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller
             vendor: Intel Corporation
             physical id: 1d.7
             bus info: pci@00:1d.7
             version: 02
             width: 32 bits
             clock: 33MHz
             capabilities: ehci bus_master cap_list
             configuration: driver=ehci_hcd latency=0
             resources: iomemory:febffc00-febfffff irq:177
        *-pci:1
             description: PCI bridge
             product: 82801 PCI Bridge
             vendor: Intel Corporation
             physical id: 1e
             bus info: pci@00:1e.0
             version: c2
             width: 32 bits
             clock: 33MHz
             capabilities: pci normal_decode bus_master
           *-multimedia
                description: Multimedia audio controller
                product: SB Live! EMU10k1
                vendor: Creative Labs
                physical id: 2
                bus info: pci@02:02.0
                version: 08
                width: 32 bits
                clock: 33MHz
                capabilities: bus_master cap_list
                configuration: driver=EMU10K1_Audigy latency=32 maxlatency=20 mingnt=2
                resources: ioport:b800-b81f irq:201
           *-input
                description: Input device controller
                product: SB Live! Game Port
                vendor: Creative Labs
                physical id: 2.1
                bus info: pci@02:02.1
                version: 08
                width: 32 bits
                clock: 33MHz
                capabilities: bus_master cap_list
                configuration: driver=Emu10k1_gameport latency=32
                resources: ioport:bc00-bc07
           *-firewire
                description: FireWire (IEEE 1394)
                product: FW323
                vendor: Agere Systems
                physical id: 7
                bus info: pci@02:07.0
                version: 61
                width: 32 bits
                clock: 33MHz
                capabilities: ohci bus_master cap_list
                configuration: driver=ohci1394 latency=32 maxlatency=24 mingnt=12
                resources: iomemory:feaff000-feafffff irq:201
           *-network
                description: Ethernet interface
                product: 82562EZ 10/100 Ethernet Controller
                vendor: Intel Corporation
                physical id: 8
                bus info: pci@02:08.0
                logical name: eth0
                version: 01
                serial: 00:0c:f1:f5:1a:e2
                width: 32 bits
                clock: 33MHz
                capabilities: bus_master cap_list ethernet physical
                configuration: broadcast=yes driver=eepro100 ip=192.168.2.143 latency=32 maxlatency=56 mingnt=8 multicast=yes
                resources: iomemory:feafe000-feafefff ioport:b400-b43f irq:209
        *-isa
             description: ISA bridge
             product: 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge
             vendor: Intel Corporation
             physical id: 1f
             bus info: pci@00:1f.0
             version: 02
             width: 32 bits
             clock: 33MHz
             capabilities: isa bus_master
             configuration: latency=0
        *-ide:0
             description: IDE interface
             product: 82801EB/ER (ICH5/ICH5R) IDE Controller
             vendor: Intel Corporation
             physical id: 1f.1
             bus info: pci@00:1f.1
             version: 02
             width: 32 bits
             clock: 33MHz
             capabilities: ide bus_master
             configuration: driver=PIIX_IDE latency=0
             resources: ioport:ffa0-ffaf iomemory:50000000-500003ff irq:169
           *-ide:0
                description: IDE Channel 0
                physical id: 0
                bus info: ide@0
                logical name: ide0
                clock: 33MHz
              *-disk:0
                   product: ST3250823A
                   vendor: Seagate
                   physical id: 0
                   bus info: ide@0.0
                   logical name: /dev/hda
                   capacity: 232GB
              *-disk:1
                   product: Maxtor 54610H6
                   vendor: Maxtor
                   physical id: 1
                   bus info: ide@0.1
                   logical name: /dev/hdb
                   capacity: 42GB
           *-ide:1
                description: IDE Channel 1
                physical id: 1
                bus info: ide@1
                logical name: ide1
                clock: 33MHz
              *-cdrom:0
                   product: TSSTcorpCD/DVDW TS-H552B
                   physical id: 0
                   bus info: ide@1.0
                   logical name: /dev/hdc
                   capabilities: packet
              *-cdrom:1
                   product: JLMS XJ-HD166S
                   physical id: 1
                   bus info: ide@1.1
                   logical name: /dev/hdd
                   capacity: 3355MB
                   capabilities: packet
        *-ide:1
             description: IDE interface
             product: 82801EB (ICH5) SATA Controller
             vendor: Intel Corporation
             physical id: 1f.2
             bus info: pci@00:1f.2
             version: 02
             width: 32 bits
             clock: 66MHz
             capabilities: ide bus_master
             configuration: driver=ata_piix latency=0
             resources: ioport:ec00-ec07 ioport:e800-e803 ioport:e400-e407 ioport:e000-e003 ioport:dc00-dc0f irq:169
        *-serial
             description: SMBus
             product: 82801EB/ER (ICH5/ICH5R) SMBus Controller
             vendor: Intel Corporation
             physical id: 1f.3
             bus info: pci@00:1f.3
             version: 02
             width: 32 bits
             clock: 33MHz
             configuration: driver=i801_smbus latency=0
             resources: ioport:c800-c81f irq:201
        *-multimedia
             description: Multimedia audio controller
             product: 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller
             vendor: Intel Corporation
             physical id: 1f.5
             bus info: pci@00:1f.5
             version: 02
             width: 32 bits
             clock: 33MHz
             capabilities: bus_master cap_list
             configuration: driver=Intel ICH latency=0
             resources: iomemory:febff800-febff9ff iomemory:febff400-febff4ff irq:201
  *-network DISABLED
       description: IEEE1394 interface
       physical id: 1
       logical name: eth1
       serial: 00:0c:f1:00:00:f5
       capabilities: ieee1394 physical
       configuration: broadcast=yes multicast=yes
I mean how complete is that ? and simple too and yes running it as root will allow it to get a bit more info..

You should see this when run on a Dell or similar PC with a detailed DMI.. it will tell you how many memory slot, what size the sticks in them are, and what the max size memory module the slot will support.. very nice...

Last edited by farslayer; 03-01-2007 at 07:32 PM.
 
Old 03-02-2007, 09:25 AM   #7
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,577
Blog Entries: 14

Rep: Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969
lshw looks nice indeed. However it doesn't come in with Debian or RedHat/Fedora natively. I do see sites for it for both but it's not in the default yum repositories for RH/FC.

I think I'll download it and see what it shows on my Debian PA-RISC workstation since it appears there's a port for that chipset already.

For the RedHat/Fedora stuff I may download it and compare it to the output of "kudzu -p"
 
Old 03-02-2007, 09:41 AM   #8
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
Another good command is "hwinfo" although its not available on all distros.
 
Old 03-02-2007, 09:52 AM   #9
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,577
Blog Entries: 14

Rep: Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969
hwinfo - is there on my Debian Sarge - not there on RH/FC.

Thanks.
 
Old 03-02-2007, 10:04 AM   #10
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
Quote:
Originally Posted by jlightner
hwinfo - is there on my Debian Sarge - not there on RH/FC.

Thanks.
Its available on SUSE as well. I prefer it to "lspci".
 
Old 03-02-2007, 06:26 PM   #11
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
Quote:
Originally Posted by jlightner
lshw looks nice indeed. However it doesn't come in with Debian or RedHat/Fedora natively. I do see sites for it for both but it's not in the default yum repositories for RH/FC.
That's funny it's in my repositories.. I've installed it on sarge, etch, and sid from the standard repos..

Code:
default@debian:~$ aptitude search lshw
i   lshw                                              - information about hardware configuration
i   lshw-common                                       - information about hardware configuration
p   lshw-gtk                                          - information about hardware configuration
http://packages.debian.org/stable/utils/lshw
http://packages.debian.org/testing/utils/lshw
http://packages.debian.org/unstable/utils/lshw
 
  


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
Hardware Information scwcouk Linux - Newbie 2 04-17-2005 11:12 AM
How to get information about all hardware ukrainet Linux - Newbie 6 12-24-2004 05:42 AM
Hardware Information jesman_dell Linux - Newbie 2 01-08-2004 01:03 PM
hardware information? perdesiz Linux - Software 3 09-29-2003 06:22 AM
hardware information ritturaj Linux - Hardware 0 08-06-2003 02:54 AM


All times are GMT -5. The time now is 07:08 AM.

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