linux进阶

最近在跟大佬交流中,发现他们的linux跟我们玩的不是一个东西,列举下他们用到的工具以便后续学习使用。

ranger(文件管理器)

sudo apt install ranger

常用命令如下:

1.H、L            //左、右
2.J、K            //下、上
3.gg            //跳到顶端
4.G                //跳到底端
5.Ctrl+f        //向下翻页
6.Ctrl+b        //向下翻页
7.空格            //选择文件
8.yy            //复制
9.dd            //剪切
10.pp            //粘贴
11.delete        //删除
12.cw            //重命名
13.?            //查看帮助文档
14.f            //查找文件

pandoc(文件格式转换器)

sudo apt install pandoc

格式

pandoc file2 file1        //将文件1转换成文件2格式
1.-f/t                    //指定输入文件格式(如果文件后缀名无法推测文件类型,则输入文件格式默认markdown)
2.-t/w                    //指定输出文件格式(如果文件后缀名无法推测文件类型,html)
例:pandoc -f html -t markdown hello.html    //把hello.html从html转换成markdown格式 
3.-o                    //输出到文件
例:pandoc -o 1.html 2.txt
4.-s                    //产生输出文件附带头注和脚注(如html)
例:pandoc -o -s hello.html world.txt


你可能感兴趣的:(linux学习)