LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-06-2012, 08:41 AM   #1
pradiptart
Member
 
Registered: Sep 2007
Posts: 102

Rep: Reputation: 12
How to get the architecture of a os.


Hello,
I want to know the architecture of the os that i have installed.
how to get that.It may be 32-bit or 64-bit but how i will know it by a command.

uname -a gives the informations but that is not giving any information about the installed os architecture it gives only processor architecture .

kindly tell any solution to my problem.

Thanks
 
Old 06-06-2012, 08:54 AM   #2
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 635

Rep: Reputation: 186Reputation: 186
Are you sure that
Code:
uname -m
is not what you want?
 
Old 06-06-2012, 08:57 AM   #3
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
What distro are you running? and what desktop manager are you using?
 
Old 06-06-2012, 08:59 AM   #4
pradiptart
Member
 
Registered: Sep 2007
Posts: 102

Original Poster
Rep: Reputation: 12
hi ,(414N)
Thanks for reply ,yes it is not the thing that i want .In my machine this command giving the answer x86_64,but I know my redhat os is a 32-bit os,
so this command is for the machine not for the OS.

Thanks
 
Old 06-06-2012, 09:01 AM   #5
pradiptart
Member
 
Registered: Sep 2007
Posts: 102

Original Poster
Rep: Reputation: 12
Hi,
TroN-0074

I am using Redhat 5.4 distro.
and about desktop manage i am not sure what is that Gnome may be.

Thanks
 
Old 06-06-2012, 09:04 AM   #6
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 635

Rep: Reputation: 186Reputation: 186
Just found this post in another thread which should give you that kind of information.
 
1 members found this post helpful.
Old 06-06-2012, 09:57 AM   #7
pradiptart
Member
 
Registered: Sep 2007
Posts: 102

Original Poster
Rep: Reputation: 12
hi 414N,
Thanks for the suggestion...
 
Old 06-06-2012, 10:54 AM   #8
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
The reason I asked about the desktop manager is because in Gnome you have the system monitor tool that tells you the information on the OS, as well as the RAM and other resources.
You could check on that.

Good luck to you.
 
Old 06-06-2012, 08:14 PM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
http://www.cyberciti.biz/faq/linux-h...64-bit-or-not/

As stated there, 'uname -a' does(!) tell you the OS/kernel bit size; not the HW.
For HW, check lm flag exists as described.
 
Old 06-06-2012, 08:39 PM   #10
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181
Quote:
Originally Posted by pradiptart View Post
this command giving the answer x86_64,but I know my redhat os is a 32-bit os
The things we "know" that aren't so tend to cause more harm than the things we don't know.

You may "know" your redhat os is 32-bit, but it apparently knows it is 64 bit.

Uname -a does give you the info you asked about in this thread.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i port a driver with a specific architecture into another architecture? the hope Linux - Hardware 4 03-23-2011 06:39 PM
what is 'architecture' in 'binary for an architecture'?multiple architecture support? wagaboy Linux - Newbie 2 07-10-2010 12:18 PM
How to tell what architecture I have? whistlenut Linux - Newbie 6 07-21-2008 11:33 PM
Architecture skguha Linux - Newbie 2 05-03-2004 01:37 AM
Architecture TX_metalhead Linux - General 5 02-04-2002 05:13 PM


All times are GMT -5. The time now is 08:33 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration