How to determine hardware?
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.
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, 2022Comments
-
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.
-
Wings about 4 yearsFor my Acer Travelmate-P243-M, the following works well (others don't show my wireless hardware info in full):
$ lspci -vv
However, there are many other options beautifully presented here: https://www.binarytides.com/linux-commands-hardware-info/
-
-
TerNovi almost 12 yearsI 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 almost 12 yearsTry this
sudo lshw -C display
That should just display your video card. Your video card should be displayed. -
reverendj1 almost 12 yearsAlso, if something has a lot of output, you can use paste.ubuntu.com to post it.
-
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.