Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need to find out hardware information for the below items under Linux:

  • CPU (and cores)
  • CPU speed
  • Memory
  • Hard disks
  • OS version

Any advice?

share|improve this question

migrated from stackoverflow.com Jun 29 '11 at 15:44

7 Answers

From Linux Commands - A practical reference:

Show kernel version and system architecture

uname -a

Show name and version of distribution

head -n1 /etc/issue

Show all partitions registered on the system

cat /proc/partitions

Show RAM total seen by the system

grep MemTotal /proc/meminfo

Show CPU(s) info

grep "model name" /proc/cpuinfo

Show info about disk sda

hdparm -i /dev/sda
share|improve this answer
+1 for the link. Not only did you answer the Q but the link is really useful. Thanks – lordlupine May 1 at 17:27

Try lshw

It will suggest you run it as root, so try

sudo lshw
share|improve this answer
1  
you will need to install it in many cases - iirc it wasn't stock in ubuntu – Journeyman Geek Jun 29 '11 at 15:46

Here is a link to various Linux commands for what you want:

http://www.cyberciti.biz/tips/linux-command-to-gathers-up-information-about-a-linux-system.html

Specifically, you're looking for commands like:

cat /proc/cpuinfo

free -m

cat /proc/version
share|improve this answer

Here is a list of commands to check hardware on Linux. Note that not all commands are available on all distributions. It is better to launch then as root (or via sudo) to get all the information.

Command: lscpu

  • List available cpus and their caracteristics
  • Not available on older distribution

Command: lshal

  • Require HAL (Hardware Abstraction Layer) to be installed
  • List all hardware visible by HAL

Command: lshw

  • Available on Debian and Ubuntu based distributions by default
  • Available in the Fedora repositories
  • Uses many inputs to detect all hardware: Kernel, HAL, DMI, etc.
  • As a neat ‘-html’ switch that generates hardware reports

Command: lspci

  • Standard command
  • List all hardware connected to the PCI bus as detected by the kernel

Command: lsusb

  • Standard command
  • List all hardware connected to the USB buses as detected by the kernel

Command: dmidecode

  • Standard command
  • Get the source information from the DMI (a kind of BIOS interface)
  • List all hardware as reported by the DMI interface
share|improve this answer

If you want lots of information about all of the devices connected to your machine over the PCI (or PCI-Express) bus then type lspci -vvknnqq

If you want information about your disk partitioning then type sudo fdisk -l /dev/sda

share|improve this answer

You can also use dmidecode which will provide description of the systemâs hardware components.

share|improve this answer

This is a very basic Linux question which you can find by googling for answer. Type "lspci" in the terminal for hardware information.

share|improve this answer
Not very helpful answer. – bbaja42 Jun 29 '11 at 17:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.