码迷,mamicode.com
首页 > 系统相关 > 详细

Centos与Ubuntu命令

时间:2017-07-18 23:15:20      阅读:306      评论:0      收藏:0      [点我收藏+]

标签:命令   bsp   update   内核   lin   使用   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

 

Centos与Ubuntu命令

标签:命令   bsp   update   内核   lin   使用   ubuntu命令   注意   错误   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!