Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Installed OS architecture type

1 view
Skip to first unread message
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

RjY

unread,
Nov 18, 2009, 5:48:50 PM11/18/09
to
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/

Message has been deleted
Message has been deleted
Message has been deleted

Marc Haber

unread,
Nov 24, 2009, 10:43:56 AM11/24/09
to
"David W. Hodgins" <dwho...@nomail.afraid.org> wrote:
>if [[ $(uname -m) == "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

--
-------------------------------------- !! 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 new messages