Installed OS architecture type

  • Follow


I have a 64-bit athelon processor running on my machine. How do I find
out if the installed OS is 64-bit or 32-bit Linux?

Thanks.
0
Reply Kalyan 11/18/2009 12:03:54 PM

Kalyan wrote:
> I have a 64-bit athelon processor running on my machine. How do I find
> out if the installed OS is 64-bit or 32-bit Linux?
> 
> Thanks.

uname -a.


AMD64 is the generic tag name for a 64 bit kernel.
0
Reply The 11/18/2009 12:06:50 PM


On Wed, 18 Nov 2009 04:03:54 -0800 (PST), Kalyan wrote:
> I have a 64-bit athelon processor running on my machine. How do I find
> out if the installed OS is 64-bit or 32-bit Linux?

uname -m
0
Reply Bit 11/18/2009 2:09:43 PM

On Wed, 18 Nov 2009 04:03:54 -0800, Kalyan wrote:

> I have a 64-bit athelon processor running on my machine. How do I find
> out if the installed OS is 64-bit or 32-bit Linux?
> 
> Thanks.

There is a utility "Sysinfo" you should be able to find. At least Ubuntu 
9.10 software installer can find it.

If you look at the "GCC version" reported it should show something like 
"4.4.1 (i486-linux-gnu)," the "86" = 32bit.


-- 
======== Tecknomage ========
Computer Systems Specialist
     IT Technician
     San Diego, CA
0
Reply Tecknode 11/18/2009 5:25:07 PM

Kalyan wrote:

> I have a 64-bit athelon processor running on my machine. How do I find
> out if the installed OS is 64-bit or 32-bit Linux?
> 
> Thanks.

Ask it
0
Reply GangGreene 11/18/2009 9:18:09 PM

Kalyan posted:
>I have a 64-bit athelon processor running on my machine. How do I find
>out if the installed OS is 64-bit or 32-bit Linux?

I think what you want is the output of the command "uname -m" which will
be i686 for 32-bit or x86_64 for 64-bit (or possibly amd64, not sure)

-- 
http://rjy.org.uk/
0
Reply RjY 11/18/2009 10:48:50 PM

Kalyan <san.kalyan@gmail.com> wrote:
>I have a 64-bit athelon processor running on my machine. How do I find
>out if the installed OS is 64-bit or 32-bit Linux?

Whether you have a 32 or 64 bit kernel can be obtained with the uname
-m command. Note that you can run a 32 bit user land with a 64 bit
kernel, in which case uname -m will only tell you what kind of kernel
you're running.

Gr=FC=DFe
Marc

--=20
-------------------------------------- !! No courtesy copies, please !! =
-----
Marc Haber         |   " Questions are the         | Mailadresse im =
Header
Mannheim, Germany  |     Beginning of Wisdom "     | =
http://www.zugschlus.de/
Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 621 =
72739834
0
Reply Marc 11/19/2009 3:41:15 PM

On 2009-11-19, Marc Haber <mh+usenetspam0827@zugschl.us> wrote:
> Kalyan <san.kalyan@gmail.com> wrote:
>>I have a 64-bit athelon processor running on my machine. How do I find
>>out if the installed OS is 64-bit or 32-bit Linux?
>
> Whether you have a 32 or 64 bit kernel can be obtained with the uname
> -m command. Note that you can run a 32 bit user land with a 64 bit
> kernel, in which case uname -m will only tell you what kind of kernel
> you're running.
>
> Gr��e
> Marc

There's a very similar discussion going on in
alt.os.linux.mandriva with some useful-looking script snippets.

Did somebody multi-post?

-- 
Robert Riches
spamtrap42@verizon.net
(Yes, that is one of my email addresses.)
0
Reply Robert 11/20/2009 1:18:59 AM

On Thu, 19 Nov 2009 20:18:59 -0500, Robert Riches <spamtrap42@verizon.net> wrote:

> Did somebody multi-post?

Doesn't look like it.  The thread in alt.os.linix.mandriva was
started by Dave Farrance, while this thread was started by
Kalyan.

Anyways, from that thread, I was surprised to find that uname -m
in a 32 bit install with a 64 bit cpu still returns i686, not
x86_64 as I expected.

To determine whether or not a 64 bit distro has been installed

if  [[ $(uname -m) == "x86_64" ]]; then
     echo "coreutils is 64 bit"
else
     echo "coreutils is 32 bit"
fi

if  [[ "$HOSTTYPE" == "x86_64" ]]; then
     echo "bash is 64 bit"
else
     echo "bash is 32 bit"
fi

if  [[ $(grep flags /proc/cpuinfo|grep -w lm) ]]; then
     echo "processor is 64 bit"
else
     echo "processor is 32 bit"
fi

While I suspect a 32 bit version of bash could be installed
on a 64 bit distro, I don't think a 32 bit version of coreutils
can be.

Which test should be used depends on what will be done based
on the type detected.

Regards, Dave Hodgins

-- 
Change nomail.afraid.org to ody.ca to reply by email.
(nomail.afraid.org has been set up specifically for
use in usenet. Feel free to use it yourself.)
0
Reply David 11/20/2009 1:59:40 AM

"David W. Hodgins" <dwhodgins@nomail.afraid.org> wrote:
>if  [[ $(uname -m) =3D=3D "x86_64" ]]; then
>     echo "coreutils is 64 bit"
>else
>     echo "coreutils is 32 bit"
>fi

|$ file /bin/uname
|/bin/uname: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), =
dynamically linked (uses shared libs), for GNU/Linux 2.6.8, stripped
|$ uname -m
|x86_64
|$

This is a 64 bit kernel with a very 32 bit userland.

Greetings
Marc

--=20
-------------------------------------- !! No courtesy copies, please !! =
-----
Marc Haber         |   " Questions are the         | Mailadresse im =
Header
Mannheim, Germany  |     Beginning of Wisdom "     | =
http://www.zugschlus.de/
Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 621 =
72739834
0
Reply Marc 11/24/2009 3:43:56 PM

9 Replies
597 Views

(page loaded in 0.142 seconds)

Similiar Articles:













7/20/2012 3:57:34 PM


Reply: