Debian下如何查看版本信息, 包括位数、版本信息以及CPU内核信息、CPU具体型号等等,整个CPU信息一目了然。
1、odoo@debian64:~$ uname -a(Debian查看版本当前操作系统内核信息) Linux debian64 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u3 (2016-01-17) x86_64 GNU/Linux 2、odoo@debian64:~$ sudo cat /proc/version(Debian查看当前操作系统版本信息) Linux version 3.16.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.7-ckt20-1+deb8u3 (2016-01-17) 3、odoo@debian64:~$ cat /etc/issue Debian GNU/Linux 8 \n \l 4、odoo@debian64:~$ cat /etc/os-release(Debian查看版本当前操作系统发行版信息(prints certain LSB (Linux Standard Base) and Distribution information.)。有了这个命令就可以清楚的知道到底是RedHat的、还是别的发行版,还有具体的版本号,比如3.4还是5.4等等。有些系 统上不一定安装了这个命令,可以通过查看/etc/issue文件得到发行版信息。) PRETTY_NAME="Debian GNU/Linux 8 (jessie)" NAME="Debian GNU/Linux" VERSION_ID="8" VERSION="8 (jessie)" ID=debian HOME_URL="http://www.debian.org/" SUPPORT_URL="http://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" 5、odoo@debian64:~$ cat /proc/cpuinfo(Linux查看cpu相关信息,包括型号、主频、内核信息等) cpu family : 6 model : 60 model name : Intel(R) Core(TM) i5-4460 CPU @ 3.20GHz …… 6、odoo@debian64:~$ getconf LONG_BIT(Debian查看版本说明当前CPU运行在32bit模式下, 但不代表CPU不支持64bit) 64 7、odoo@debian64:~$ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 8.3 (jessie) Release: 8.3 Codename: jessie
转载于:https://www.cnblogs.com/SunOne/p/5256657.html
