Centos与Ubuntu命令

1、虽然Centos与Ubuntu都是linux的内核,但使用命令还是有所差别

2、如在Centos中跟新插件用的是:yum -y   (yum后面有一个空格)

  在Ubuntu中跟新插件用的是:apt-get    (注意是连一起的)

3、比如在Centos使用如下命令:sudo apt-get update

               sudo apt-get install flash

               sudo apt-get    *

               sudo apt-get install *

就会报如下错误:bash: apt-get: command not found

同理在Ubuntu使用如下命令:

               sudo yum -y  update

               sudo yum -y   install flash

               sudo  yum -y    *

               sudo yum -y    install *

就会报如下错误:bash:yum: command not found

原文地址:https://www.cnblogs.com/ywf520/p/7203109.html