Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


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

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


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

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

Rep: Reputation: 166Reputation: 166
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
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,

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

Rep: Reputation: 15
Hello all, a good on is...
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
cat /etc/lsb-release
I think on SUSE it is...
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.

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


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

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 > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration