LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to get Hardware informations from the command line? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-get-hardware-informations-from-the-command-line-4175440582/)

xpucto 12-08-2012 09:03 AM

How to get Hardware informations from the command line?
 
Hi!

I'd like to know how to get the hardware informations of a computer (RAM, Processor etc) using the command line.

Thank you.

markush 12-08-2012 09:30 AM

Code:

free -m
Code:

uname -p
uname -a

Code:

/sbin/lspci -k
Code:

cat /proc/cpuinfo
Markus

TobiSGD 12-08-2012 09:48 AM

You seem to run Ubuntu, just install lshw and run it with sudo, all information in one place and it has some nice options, like generating a HTML page with the results.

floppy_stuttgart 12-08-2012 12:43 PM

or install "inxi" and run in a terminal the command "inxi -fo -c0 > inxi.txt"
you will have a beautiful summary of the PC.

lleb 12-08-2012 12:57 PM

as root you can run

Code:

# dmidecode > DMI
then just vi the DMI file you created to see a lot of detail on the system. I use that in combination with lshw and lspci, you can also use lsusb to isolate just your USB devices.

xpucto 12-10-2012 06:55 AM

Thank you for all the answers. It was for an old Suse computer.


All times are GMT -5. The time now is 05:49 AM.