Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


Search this Thread
Old 12-08-2012, 10:03 AM   #1
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 522

Rep: Reputation: 31
How to get Hardware informations from the command line?


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

Thank you.
Old 12-08-2012, 10:30 AM   #2
Senior Member
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,974

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
free -m
uname -p
uname -a
/sbin/lspci -k
cat /proc/cpuinfo

Last edited by markush; 12-08-2012 at 10:33 AM.
1 members found this post helpful.
Old 12-08-2012, 10:48 AM   #3
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Whatever fits the task best
Posts: 15,821
Blog Entries: 2

Rep: Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206
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.
Old 12-08-2012, 01:43 PM   #4
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Tiny Core Linux 4.5.6, knoppix 6.7, antixM8.11, partedmagic, slitaz 3.0,PuppyLinux,Ubuntu 10.04
Posts: 578
Blog Entries: 2

Rep: Reputation: 39
or install "inxi" and run in a terminal the command "inxi -fo -c0 > inxi.txt"
you will have a beautiful summary of the PC.
Old 12-08-2012, 01:57 PM   #5
Senior Member
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,589

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
as root you can run

# 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.
Old 12-10-2012, 07:55 AM   #6
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 522

Original Poster
Rep: Reputation: 31
Thank you for all the answers. It was for an old Suse computer.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
command line hardware analysis Fred Caro Linux - Newbie 3 06-22-2009 06:40 AM
Is there a single command to list all hardware installed (command line)? davee Linux - Hardware 6 02-28-2009 08:19 PM
command line / hardware question Drissical Linux - Newbie 3 09-25-2004 11:13 PM
configuring video hardware from command line redbeansnrice Linux - Hardware 1 09-02-2004 06:51 PM
Hardware Manipulation From Command Line LouisTheDamned Linux - Newbie 2 03-27-2004 04:42 PM

All times are GMT -5. The time now is 12:32 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration