I need to find my OS (not hardware) is 32-bit / 64-bit. Which command is best?uname -puname -iuname -marchAll the above commands returns the same answer:On 32 bit systems: i686/i386    On 64 bit systems: x86_64
Which cmd is the best for determining the OS' word size (32/64)-bit?
linux;command line;shell script
I would recommend instead using getconf LONG_BIT.[root@mymachine ~]# getconf LONG_BIT64This will clearly output either 32 or 64, depending on your installed kernel, whereas uname -m (and etc.) indicate the underlying hardware name.See also the Stack Overflow question How to determine whether a given Linux is 32 bit or 64 bit?, but be sure to read the helpful commentary.