Re: the "proper" way to identify the bitness of your kernel and CPU

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2009/4/3 Robert P. J. Day <rpjday@xxxxxxxxxxxxxx>:
> On Fri, 3 Apr 2009, Sharpe, Sam J wrote:
>
>> [sam@machine ~]$ [[ $(grep lm /proc/cpuinfo) ]] && echo x86_64 || echo i686
>> x86_64 (this represents the processor architecture)
>
>  and your opinion of
>
>  $ getconf LONG_BIT
>
> i'm guessing that is equally informative, yes?

Apparently not, but I didn't know this until I did a bit of
reading/experimenting.

Take my example machine before which has a 64bit capable CPU but a 32bit OS:
[sam@machine ~]$ getconf LONG_BIT
32

As you can see, it printing the kernel architecture, not a property of
the CPU. I think /proc/cpuinfo is always the right place to look,
because getconf reports only on kernel properties.

--
Sam

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux