In order to determine whether bitness of the operating system, we can query it for the value of the POSIX constant LONG_BIT which tells the number of bits in a long int:
$ getconf LONG_BIT
64
Bitness of the kernel can be fetched from the machine hardware name. x86_64 in the output means that machine has the 64-bit CPU:64
$ uname -m
x86_64
x86_64