commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
rm --> 16-bit processor (real mode)
tm --> 32-bit processor (? mode)
lm --> 64-bit processor (long mode)
There are 2 alternatives - vote for the best!
Easy and direct way to find this out.
Needed a quick way to see if my server distro that I setup years ago was running 32bit or not, since with time I had forgotten.
Note: does not check _hardware_ e.g. /proc/cpuinfo but rather the kernel installed
This is likely only valid on Solaris based systems. Unfortunately a lot of the more universal techniques for determining if a system is 32bit or 64bit on x86 solaris fail to give much more information than "i86pc"
If you can do better, submit your command here.
You must be signed in to comment.