linux shell判断当前环境是32位还是64位

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/yueludanfeng/article/details/81163623

通过uname判断

platform=`uname -m`
if [ $platform='x86_64' ]
then
        echo 64
else
        echo 32
fi

猜你喜欢

转载自blog.csdn.net/yueludanfeng/article/details/81163623
今日推荐