When installing any type of GNU/Linux distribution we have to know if our processor is 32 Bit or 64 Bit.
We can see all the processor data in the /proc/cpuinfo file.
We execute the following command:
BASH
Bash
grep flags /proc/cpuinfoIf the result appears lm, then it supports 64 bit; if it appears Protected Mode, supports 32 bit; if it appears Real Mode, supports 16 bit.
We can also use the following scripts:
BASH
php
#!/bin/bash
#####################################################################################
#####################################################################################
####################################################################################
######################## Script Comprobación Procesador ###########
######################## rokitoh - www.red-orbita.com ###########
######################## ###########
####################################################################################
####################################################################################
####################################################################################
grep -q lm /proc/cpuinfo > /dev/null
if [ $? -eq 0 ]
then
echo "CPU de 64 bits (soporta x86_64)"
else
echo "CPU de 32 bits (no soporta x86_64)"
fiYou can also run the following script in one line:
|
BASH php |
Comments