Check whether lm exists in cpuinfo. If lm exists, 64-bit is supported. lm means long mode. The specific command is as follows:
Cat/proc/cpuinfo | grep flags
Check whether the output contains lm characters.
Or
Cat/proc/cpuinfo | grep flags | grep lm | wc-l
If the output value is greater than 0, 64-bit is supported.
Cat syntax structure;
De> cat [option] [file] ...de>
Option
-A, -- show-all is equivalent to-vET.
-B, -- number-nonblank: number of non-empty output rows
-E is equivalent to-vE.
-E, -- show-ends is displayed at the end of each line $
-N, -- number indicates the number of all rows output.
-S, -- squeeze-blank does not output multiple empty rows
-T is equivalent to-vT.
-T, -- show-tabs: The jump character is displayed as ^ I
-U (ignored)
-V, -- show-nonprinting use ^ and M-reference, except LFD and TAB
-- Help: displays the help information and leaves