Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question
add comment

3 Answers

up vote 7 down vote accepted

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
share|improve this answer
    
I don't see anything about my video card on there is it because I don't have one or what? I have an AMD processor and ATI graphics. I would put the output here but its too long. –  TerNovi May 29 '12 at 21:16
1  
Try this sudo lshw -C display That should just display your video card. Your video card should be displayed. –  reverendj1 May 29 '12 at 21:19
1  
Also, if something has a lot of output, you can use paste.ubuntu.com to post it. –  reverendj1 May 29 '12 at 21:23
    
Thanks very this was very helpful. –  TerNovi May 29 '12 at 21:40
    
I don't see where to mark it as solved. –  TerNovi May 29 '12 at 22:59
show 1 more comment

This command will tell you about your hardware (including the specific components you've listed):

sudo lshw

It's possible to run lshw without sudo (i.e., not as root) but it may not give as complete or accurate information.

You can run lshw with the -C flag and an argument, to get information about a specific class of hardware. See man lshw for details.

share|improve this answer
add comment

You can use also lspci, possibly filtering its output with grep (look for VGA or video keywords for GPU information), for example try:

$ lspci -v | grep VGA

See man lspci and also http://www.cyberciti.biz/faq/linux-tell-which-graphics-vga-card-installed/

share|improve this answer
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.