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

发布于 分类 Linux

下面的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

本页面显示内容已针对移动端进行优化,点击查看完整版本