查看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  可显示电脑以及操作系统的相关信息

猜你喜欢

转载自www.cnblogs.com/Noul/p/10112433.html