How to determine hardware?

82,418

Solution 1

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

Solution 2

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:
82,418
TerNovi
Author by

TerNovi

I have used linux distributions to program in c++ through the command line. I recently have started using 12.04 as my main operating system and I am learning a lot.

Updated on September 18, 2022

Comments

  • TerNovi
    TerNovi over 1 year

    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.

  • TerNovi
    TerNovi almost 12 years
    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.
  • reverendj1
    reverendj1 almost 12 years
    Try this sudo lshw -C display That should just display your video card. Your video card should be displayed.
  • reverendj1
    reverendj1 almost 12 years
    Also, if something has a lot of output, you can use paste.ubuntu.com to post it.
  • irrational John
    irrational John almost 12 years
    @TerNovi You use the "checkmark" icon as shown in this screenshot. (But then you appear to have already figured that out.) A suggestion: when a comment is no longer relevant, just delete it to help eliminate clutter from your question.