shell脚本判断Linux是32位还是64位

NOCO发布于 分类 Linux

1天前 有1个用户阅读过

下面的shell脚本函数引用自 lnmp1.2-full/include/main.sh
Get_OS_Bit()
{
    if [[ `getconf WORD_BIT` = '32' && `getconf LONG_BIT` = '64' ]] ; then
        Is_64bit='y'
    else
        Is_64bit='n'
    fi
}

-- The End --

本文标题: shell脚本判断Linux是32位还是64位

本文地址: https://seonoco.com/blog/shell-script-to-determine-whether-linux-is-32-or-64

本文是否有所帮助?
点赞 0
感谢支持
0
多谢反馈
评论 0
打赏

支持微信/支付宝

评论

网友