shell脚本判断Linux是32位还是64位引用请注明出处: https://seonoco.com/blog/shell-script-to-determine-whether-linux-is-32-or-64发布于 2015-12-18 分类 Linux 下面的shell脚本函数引用自 lnmp1.2-full/include/main.shGet_OS_Bit() { if [[ `getconf WORD_BIT` = '32' && `getconf LONG_BIT` = '64' ]] ; then Is_64bit='y' else Is_64bit='n' fi }-- The End --