https://en.wikipedia.org/wiki/Long_modeA bit in the CPUID extended attributes field informs programs in real or protected modes if the processor can go to long mode, which allows a program to detect an x86-64 processor.
How can I tell if a particular computer supports long mode?
cat /proc/cpuinfo
to get that same info.