首页 推荐 热点 专题 PHPJavaPythonAndriodIOSC#前端数据库人工智能程序开发架构安全运维资讯微课资源
0
点赞
收藏
分享

微信扫一扫

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

pipu 2022-09-12 阅读 148
bashlinux4thLinux系统/运维


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 条评论
pipu
关注
  • 使用 Spring Cloud 构建微服务架构全景详解
  • 国家铁路局:2025年铁路货运占比提升至20%,‘公转铁’补贴加码
  • mock笔记
  • 帆软LDAP管理员认证 java代码
  • AI五派系调研笔记
  • ​要使用 Python 和百度 API 自定义指定图片的多个识别区域,自定义指定图片多个识别区域,识别文字并保存到Excel中
  • Coroutine 基础六 —— Flow
  • mysql 从另一个表中获取数据 设置到本表
  • Spring项目中RabbitMq的使用(工作队列模式)
  • 国标GB28181软件LiteGBS国标GB28181公网平台海康设备是否支持GB28181-2016版本(海康IPC、球机、NVR、解码器)