ubuntu 系统关键指令

1. 查看系统版本号

cat /etc/issue
uname -a
cat /proc/version

2. linux 32/64 bit?

getconf LONG_BIT

 3. 

dpkg 的命令可用于查看 Debian/ Ubuntu 操作系统是 32 位还是 64 位,此命令只适用于基于 Debian 和 Ubuntu 的 Linux 发行版。

在终端中执行如下命令:

dpkg --print-architecture

如果当前 Linux 是 64 位则输出 amd64,是 32 位则会输出 i386。

原文地址:https://www.cnblogs.com/lvchaoshun/p/6034919.html