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)
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/"
model : 60
model name : Intel(R) Core(TM) i5-4460 CPU @ 3.20GHz
……
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
Distributor ID: Debian
Description: Debian GNU/Linux 8.3 (jessie)
Release: 8.3
Codename: jessie