Linux下常用命令

1.vim

1)GG 跳到文件第一行

2)shift+G 跳到文件最后一行

3)yy 复制

nyy 复制n行

dd 删除

ndd 删除n行

p 粘贴

d 剪切

4)查找某字符

/abc

按n 往下查找下一个

N 往上查找上一个

2.解压

tar xjf xxx.bz2 // bz2文件

tar zxvf xxx.tar.gz // gzip文件

3.

原文地址:https://www.cnblogs.com/sylar-liang/p/4579532.html