Download your favorite Linux distribution at LQ ISO.
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, 09: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, 09:30 AM   #2
Senior Member
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,971

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

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

Rep: Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047
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, 12: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: 533
Blog Entries: 1

Rep: Reputation: 37
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, 12:57 PM   #5
Senior Member
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,555

Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
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, 06: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 05:40 AM
Is there a single command to list all hardware installed (command line)? davee Linux - Hardware 6 02-28-2009 07:19 PM
command line / hardware question Drissical Linux - Newbie 3 09-25-2004 10:13 PM
configuring video hardware from command line redbeansnrice Linux - Hardware 1 09-02-2004 05:51 PM
Hardware Manipulation From Command Line LouisTheDamned Linux - Newbie 2 03-27-2004 03:42 PM

All times are GMT -5. The time now is 09:44 PM.

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