linux如何查看系统架构?(查看系统架构命令)(armv7l)

乙烯基三乙氧基硅烷
linux如何查看系统架构?(查看系统架构命令)(armv7l)⽂章⽬录
命令
以下命令⼏乎在所有 Linux 发⾏版都可⽤
1. uname 命令
uname -m 直接显⽰Linux 系统架构
uname -a 命令也可以显⽰Linux 系统架构,但是还有和其他信息
2. dpkg 命令
dpkg的命令可⽤于查看 Debian/ Ubuntu 操作系统是 32 位还是 64 位
dpkg --print-architecture
如果当前 Linux 是 64 位则输出 amd64,是 32 位则会输出 i386。
结晶度3. getconf 命令
河南移动代维管理系统
getconf命令主要⽤于显⽰系统变量配置
getconf LONG_BIT
4. arch 命令
arch命令主要⽤于显⽰操作系统架构类型。如果输出x86_64 则表⽰为 64 位系统,
如果输出 i686 或 i386 则表⽰为 32 位系统。
5. file 命令
file命令可以配合 /sbin/init或者/bin/bash来查看系统架构类型,与系统架构相同:
file /sbin/init
瑞芯微摄像头arm-linux(很多命令都没有。。。)
# uname -m
armv7l
# uname -a
Linux RV1126_RV1109 4.19.111 #11 SMP PREEMPT Sat Sep 18 14:15:22 CST 2021 armv7l GNU/Linux
(dpkg打印不出来)
# dpkg --print-architecture
dpkg: unrecognized option '--print-architecture'
BusyBox v1.27.2 (2021-01-04 04:03:15 PST) multi-call binary. Usage: dpkg [-ilCPru][-F OPT] PACKAGE
Install, remove and manage Debian packages
-i,--install Install the package
-l,--list List of installed packages
--configure Configure an unpackaged package
-P,--purge Purge all files of a package
-r,--remove Remove all but the configuration files for a package --unpack Unpack a package, but don't configure it
--force-depends Ignore dependency problems
--force-confnew Overwrite existing config files when installing --force-confold Keep old config files when installing
#
(没有getconf这个命令)
# getconf LONG_BIT
三部门联合发布9个新职业
-sh: getconf: not found
(没有arch命令)
起来不愿做
# arch
-sh: arch: not found
(没有file命令)
# file /sbin/init
-sh: file: not found
# file /bin/bash
河南农业大学孙倩倩-sh: file: not found

本文发布于:2024-09-25 04:28:29,感谢您对本站的认可!

本文链接:https://www.17tex.com/xueshu/264563.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:系统   架构   查看   发布   命令   类型   管理系统   打印
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议