查看Linux是ubuntu还是centos

[operadmin@testtools devtools]$ lsb_release -a 

LSB Version::core-4.1-amd64:core-4.1-noarch

Distributor ID:CentOS

Description:CentOS Linux release 7.4.1708 (Core) 

Release:7.4.1708

Codename:Core

猜你喜欢

转载自myeyeofjava.iteye.com/blog/2414527