Re: [技巧]在Linux下查看系统位数

  • From: "tan dake" <tandake@xxxxxxxxx>
  • To: ghostunix@xxxxxxxxxxxxx
  • Date: Fri, 9 May 2008 13:55:32 +0800

2008/5/9 李磊 <lilei1008@xxxxxxxxx>:
>
>
> 在08-5-9,Thomas X. Iverson <txi@xxxxxxxxxxxxx> 写道:
>>
>> 2008/5/9 李磊 <lilei1008@xxxxxxxxx>:
>> >
>> >
>> > 2008/5/8 Thomas X. Iverson <txi@xxxxxxxxxxxxx>:
>> >>
>> >> txi@ghosTunix:~$ getconf LONG_BIT
>> >> 32
>> >
>> > 是查看系统位数,还是查看当前所装Linux版本的位数?
>> >>
>> >>
>> >> --
>> >> Keep It Simple Stupid
>> >>
>> >> http://blog.ghostunix.org
>> >>
>> >> ghosTM55
>> >>
>> >
>> >
>>
>> 好问题,你有条件的话实验一下
>
>
> 正因为我实验了,才有这个困惑。
> 还有什么其他办法可以看机器是32位还是64位啊?

cat /proc/cpuinfo

The lm flag is indeed x86-64.

The definitions of the flags can be found in the kernel source tree,
in the include/asm/cpufeature.h header.
>>
>> --
>> Keep It Simple Stupid
>>
>> http://blog.ghostunix.org
>>
>> ghosTM55
>
>



-- 
        DerekTan
        Mobile:15900690080
        tandake@xxxxxxxxx

Other related posts: