Hi guys,
I'm trying to adjust the ISPConfig installer so that it also supports 64-bit systems. Now my question is: what would be the best way to test if the operating system (not the processor!) is a 64-bit Linux - please keep in mind that it is possible to install a 32-bit Linux on a 64-bit processor!
I think it is a good idea to use the
command to find out about the operating system - but which switch do I use?
prints the machine hardware name. On a 64-bit SuSE 10.0 this gives back
prints the processor type. On a 64-bit SuSE this also bives back
.
The same commands issued on a 32-bit Debian Sarge show the following:
uname -m: i686
uame -p: unknown
So I guess
uname -m would be the right command to find out about the operating system.
Do you have better suggestions?
Also, if you happen to run a 64-bit Linux (Fedora, Debian, SuSE, Mandriva, CentOS, ...), please post the output of both
and
here.