Tag Archives: Linux

VIM的基本使用

1、光标移动

  • h —> 往前
  • j —> 往下
  • k —> 往上
  • l —> 往后
  • 0 —> 行首
  • $ —> 行尾
  • gg —> 文件首部
  • G —> 文件尾部
  • 20G —> 第20行

2、删除操作(实为剪切)

  • x —> 删除光标后字符
  • X —> 删除光标前字符
  • dw —> 删除光标后单词
  • d0 —> 删除到行首
  • d$、D —> 删除到行尾
  • dd —> 删除当前行
  • 4dd —> 删除当前开始的4行
  • u —> 撤销
  • Ctrl+r —> 反撤销
    [……]

    继续阅读

Unable to negotiate with x.x.x.x port 22: no matching host key type found. Their offer: ssh-dss

1、操作系统:macOS Sierra

2、打开终端进行ssh连接的时候报如题所示错误信息

1
2
SianMac:~ Sian$ ssh root@192.168.128.252
Unable to negotiate with 192.168.128.252 port 22: no matching[......]<p class="read-more"><a href="https://www.yusian.com/blog/extend/2016/11/18/205716828.html">继续阅读</a></p>