0
点赞
收藏
分享

微信扫一扫

How to Determine Whether a System Is 64-bit or 32-bit

pipu 2022-09-12 阅读 142


A trick in Bash


#!/bin/bash
system_bits=`uname -m`
if [[ "$system_bits" == x86_64 ]]
then
echo "It's a 64-bit system"
else
echo "It's a 32-bit system"
fi

Others

  • ​​UNIX and Linux System Administration Handbook (4th Edition)​​
  • How to Determine Whether a System Is 64-bit or 32-bit_bash

举报

相关推荐

0 条评论