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

shell技巧(不断整理)

时间:2015-10-20 06:53:25      阅读:153      评论:0      收藏:0      [点我收藏+]

标签:shell   不断整理   

  1. 其中的换行符被替换成了空格,若输出时保留换行,应该使用如下命令:

    echo "${foo}"


2.为不同的主机,指定不同的ssh密钥

Host gitolite-as-alice
  HostName git.company.com
  User git
  IdentityFile /home/whoever/.ssh/id_rsa.alice
  IdentitiesOnly yes

Host gitolite-as-bob
  HostName git.company.com
  User git
  IdentityFile /home/whoever/.ssh/id_dsa.bob
  IdentitiesOnly yes


shell技巧(不断整理)

标签:shell   不断整理   

原文地址:http://xiaosu.blog.51cto.com/2914416/1704273

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