linux查看系统架构查看系统架构命令
命令
以下命令几乎在所有 Linux 发行版都可用
我是在3A那边租的服务器远程连接的,做做实验挺方便
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(很多命令都没有。。。)
[root@RV1126_RV1109 ~]# uname -m
armv7l
[root@RV1126_RV1109 ~]# uname -a
Linux RV1126_RV1109 4.19.111 #11 SMP PREEMPT Sat Sep 18 14:15:22 CST 2021 armv7l GNU/Linux
(dpkg打印不出来)
[root@RV1126_RV1109 ~]# 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
[root@RV1126_RV1109 ~]#
(没有getconf这个命令)
[root@RV1126_RV1109 ~]# getconf LONG_BIT
-sh: getconf: not found
(没有arch命令)
[root@RV1126_RV1109 ~]# arch
-sh: arch: not found
(没有file命令)
[root@RV1126_RV1109 ~]# file /sbin/init
-sh: file: not found
[root@RV1126_RV1109 ~]# file /bin/bash
-sh: file: not found
这篇好文章是转载于:学新通技术网
- 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
- 本站站名: 学新通技术网
- 本文地址: /boutique/detail/tanhfcgbfh
-
photoshop保存的图片太大微信发不了怎么办
PHP中文网 06-15 -
word里面弄一个表格后上面的标题会跑到下面怎么办
PHP中文网 06-20 -
photoshop扩展功能面板显示灰色怎么办
PHP中文网 06-14 -
《学习通》视频自动暂停处理方法
HelloWorld317 07-05 -
Android 11 保存文件到外部存储,并分享文件
Luke 10-12 -
TikTok加速器哪个好免费的TK加速器推荐
TK小达人 10-01 -
微信公众号没有声音提示怎么办
PHP中文网 03-31 -
excel下划线不显示怎么办
PHP中文网 06-23 -
excel打印预览压线压字怎么办
PHP中文网 06-22 -
微信运动停用后别人还能看到步数吗
PHP中文网 07-22