Ubuntu – How to determine hardware

command linediagnostichardware

Is there a command to detect the type of processor, type of graphics card, type of hard drive, just the basic hardware my computer is running?

I'm running 12.04.

Best Answer

You can easily find this most of this information out with the dmidecode command:

sudo dmidecode -q

It may be a little verbose though. To find out information about a specific device, you can use the -t type argument. More information on that is here, http://www.thegeekstuff.com/2008/11/how-to-get-hardware-information-on-linux-using-dmidecode-command/

Another option would be to use lshw

sudo lshw

To find out the disk usage of your hard drive, you can use the df command:

sudo df -h