版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/yueludanfeng/article/details/81163623
通过uname判断
platform=`uname -m`
if [ $platform='x86_64' ]
then
echo 64
else
echo 32
fi
platform=`uname -m`
if [ $platform='x86_64' ]
then
echo 64
else
echo 32
fi