LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-08-2012, 09:03 AM   #1
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Rep: Reputation: 31
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.
 
Old 12-08-2012, 09:30 AM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

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

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
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
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
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
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.
 
Old 12-10-2012, 06:55 AM   #6
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:51 PM.

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