Centos-shell脚本判断系统位数

Centos-shell脚本判断系统位数
if [ $(getconf WORD_BIT) = '32' ] && [ $(getconf LONG_BIT) = '64' ] ; then
     echo "it's 64bit"
 else
     echo "it's 32bit"
 fi
good good study, day day up!

发表评论

textsms
account_circle
email

Centos-shell脚本判断系统位数
if [ $(getconf WORD_BIT) = '32' ] && [ $(getconf LONG_BIT) = '64' ] ; then echo "it's 64bit" else echo "it's 32bit" fi
扫描二维码继续阅读
2021-05-20