Recently I’ve been working a lot with server setups and stuff like that. I was going to install Ffmpeg and some other modules, and I needed to know the bits of the CPU processor. After looking into various commands I figured out a very simple command that will output exactly what you need.
First, connect to your server via SSH, or if your computer is your server, just open a terminal.
Type in the following:
$ uname -a
You don’t need to have root privileges to execute that command.
My Ubuntu lap returned this:
richi@richi-lap-ubuntu:~$ uname -a Linux richi-lap-ubuntu 2.6.31-22-generic #70-Ubuntu SMP Wed Dec 1 23:51:13 UTC 2010 i686 GNU/Linux
What we really need from all this output, is the i686, that means 32bit. To make it easier, if instead of i686, was x86_64, then it’d mean you have a 64bit system.
In conclusion anything that is not x86_64, equals to 32bit.
I hope this is helpful! Anything, please leave a comment.