LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 05-25-2008, 09:13 PM   #1
yupeng
LQ Newbie
 
Registered: May 2008
Posts: 1

Rep: Reputation: 0
How to find out the CPU and OS information on linux?


Hi,

I want to check the CPU info and the OS info on linux. Can somebody tell me how to do that?

Thanks,
Peng
 
Old 05-25-2008, 09:17 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
You can get back CPU info with cat /proc/cpuinfo. Can you give some more info about what OS details you want? Do you mean uname -a or are you looking for something more specific?
 
Old 05-25-2008, 09:53 PM   #3
eggixyz
Member
 
Registered: Apr 2008
Posts: 310

Rep: Reputation: 30
Hey There,

Yes, most of the information you want it in the /proc filesystem and you can read it all like you'd read normal text files. If you want to know what OS you're running, you can try uname, /etc/issue, /etc/release, etc...

Here's a link to a few other ways to get extended information. Also check out a program called "lshw", which is referenced here, as well, near the bottom.

Shell script to report Linux Hardware Information

Best wishes,

Mike
 
Old 05-25-2008, 11:39 PM   #4
pccdrussell
Member
 
Registered: Jan 2006
Distribution: Ubuntu
Posts: 62

Rep: Reputation: 15
Hello all, a good on is...
Code:
dmidecode | less
Gives you alot of good info about your hardware. As far as OS, I suppose it depends on what your looking for. Like version number, you could run
Code:
cat /etc/lsb-release
I think on SUSE it is...
Code:
cat /etc/SuSE-release
It might be different for other releases, but *buntu and SUSE are the only two Im really familiar with.

Hope that helps.
Thanks

Last edited by pccdrussell; 05-25-2008 at 11:41 PM.
 
  


Reply


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to get cpu information on Linux machine laxmi_cs Programming 41 03-05-2013 02:55 AM
How to find CPU Cache ? (apart from dmesg|grep CPU) Dark Carnival Linux - Hardware 3 12-22-2005 07:10 PM
Need Command to find linux operating system information raajesh_ak Linux - Newbie 9 12-21-2005 06:38 PM
How Can I Find My System Architecture Information On Windows And Also On Linux pak_abdul Linux - Hardware 2 05-21-2005 12:57 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration