查看linux操作系统的版本等信息

1、查看操作系统是32位还是64位的命令:

(1)getconf LONG_BIT

(2)uname -a

(3)uname -m

(4)arch

(5)file /sbin/init

2、查看操作系统的版本信息:

(1)lsb_release -a  (适用于所有的linux,包括Redhat、SuSE、Debian等发行版,但是在debian下要安装lsb)

(2)cat /proc/version  查看操作系统的正在运行的内核版本。

(3)cat /etc/issue  显示的是发行版本信息
(4)uname -a  可显示电脑以及操作系统的相关信息

(5)cat /etc/redhat-release 

posted @ 2018-12-13 10:13  灿烂初秋  阅读(166)  评论(0编辑  收藏  举报