Command to find 32/64 bit in Linux

Hi, Can somebody tell me which command will help me find whether the OS is 32 bit or 64 bit. OS is LInux

Thanks

One way would be to parse the output of

uname -m
1 Like
uname -a

#or

arch

x86_64 - 64 bit
i686 - 32 bit

A better one is getconf LONG_BIT

--ahamed

1 Like
uname -p
1 Like