On Wed, Dec 29, 2010 at 1:50 PM, Sagar Belure <[email protected]> wrote: > On Wed, Dec 29, 2010 at 1:34 PM, Nilesh Govindarajan <[email protected]> wrote: >> getconf LONG_BIT will probably return the OS type installed, 64 bit or >> 32 bit OS. >> But grep lm /proc/cpuinfo, will show the CPU type. > > I couldn't make out any information out of that. > This can be because, I don't really have any idea about the flags it is > showing. > >> If grep lm /proc/cpuinfo returns output, it means you have a 64bit >> CPU. > > Yes, that's true, as it is not at all showing any output on other 32-bit OS. > But, it isn't helping me to know *why*? > >> This is independent of the OS installed. > > Gr8. Let's me try that out on my Win 7 box. :-) > >> It can be further highlighted by grep --color=auto lm /proc/cpuinfo >> It will show you lm in red color (default). > > This anyway is showing red color, and I can see why? > As you yourself have written that *default*. >
Oh my gawd! I mean- If you see output from grep lm /proc/cpuinfo [Independent of *NIX installed, ubuntu, etc and 64bit or 32bit], then you have a 64 bit CPU. -- Regards, Nilesh Govindarajan Facebook: http://www.facebook.com/nilesh.gr Twitter: http://twitter.com/nileshgr Website: http://www.itech7.com VPS Hosting: http://www.itech7.com/a/vps -- l...@iitd - http://tinyurl.com/ycueutm
