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

 

posted @ 2017-07-18 21:57  天意天雨  阅读(1737)  评论(0编辑  收藏  举报