In any Linux variants either one of this should work ( Redhat, Cent-Os, Ubuntu, Hp-ux, Solaris etc )
[mohan@chinna ~]$ arch
x86_64
[mohan@chinna ~]$ uname -m
x86_64
[mohan@chinna ~]$ getconf LONG_BIT
64
As you can guess, 64 / x86_64 is 64bit system, whereas 32 / i386 / i686 denotes its a 32 bit sytem.
For windows
Right-click MyComputer->Properties
It will bring a window like below image, from that you can check the system type
[mohan@chinna ~]$ arch
x86_64
[mohan@chinna ~]$ uname -m
x86_64
[mohan@chinna ~]$ getconf LONG_BIT
64
As you can guess, 64 / x86_64 is 64bit system, whereas 32 / i386 / i686 denotes its a 32 bit sytem.
For windows
Right-click MyComputer->Properties
It will bring a window like below image, from that you can check the system type