知行编程网知行编程网  2022-04-09 17:00 知行编程网 隐藏边栏 |   抢沙发  9 
文章评分 0 次,平均分 0.0

15 个超赞超牛逼的 Linux 工具,提高效率的同时增加乐趣!

来自:int32bit | 责编:乐乐

链接:t.cn/R1FKgdN


   正文   


1、ag比grep、ack更快的递归搜索文件内容。


15 个超赞超牛逼的 Linux 工具,提高效率的同时增加乐趣!


2、tig字符模式下交互查看git项目,可以替代git命令。


15 个超赞超牛逼的 Linux 工具,提高效率的同时增加乐趣!


3、myclimysql客户端,支持语法高亮和命令补全,效果类似ipython,可以替代mysql命令。


15 个超赞超牛逼的 Linux 工具,提高效率的同时增加乐趣!


4、jq: json文件处理以及格式化显示,支持高亮,可以替换python -m json.tool。


15 个超赞超牛逼的 Linux 工具,提高效率的同时增加乐趣!


5、shellcheckshell脚本静态检查工具,能够识别语法错误以及不规范的写法。


15 个超赞超牛逼的 Linux 工具,提高效率的同时增加乐趣!


6、fzf命令行下模糊搜索工具,能够交互式智能搜索并选取文件或者内容,配合终端ctrl-r历史命令搜索简直完美。


15 个超赞超牛逼的 Linux 工具,提高效率的同时增加乐趣!


7、PathPicker(fpp)在命令行输出中自动识别目录和文件,支持交互式,配合git非常有用。

运行以下命令:


<section style="margin-right: 16px;margin-left: 16px;padding: 6px;max-width: 100%;border-radius: 4px;font-size: 0.85em;background-color: rgb(40, 44, 52);color: rgb(171, 178, 191);overflow-x: auto;white-space: nowrap;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;overflow-wrap: break-word !important;">git diff HEAD~8<span class="Apple-converted-space"> </span><span class="" style="max-width: 100%;color: rgb(92, 99, 112);background-color: rgba(0, 0, 0, 0);display: inline;width: 84px;font-style: italic;box-sizing: border-box !important;overflow-wrap: break-word !important;">--stat | fpp</span></span></section>


15 个超赞超牛逼的 Linux 工具,提高效率的同时增加乐趣!


8、htop: 提供更美观、更方便的进程监控工具,替代top命令。


15 个超赞超牛逼的 Linux 工具,提高效率的同时增加乐趣!


9、glances更强大的 htop / top 代替者。

htop 代替 top,glances 代替 htop:


15 个超赞超牛逼的 Linux 工具,提高效率的同时增加乐趣!


信息比 htop 丰富了不少,更全了,对吧?除了命令行查看外,glances 还提供页面服务,让你从页面上随时查看某服务器的状态。


10、axel多线程下载工具,下载文件时可以替代curl、wget。


<section style="margin-right: 16px;margin-left: 16px;padding: 6px;max-width: 100%;border-radius: 4px;font-size: 0.85em;background-color: rgb(40, 44, 52);color: rgb(171, 178, 191);overflow-x: auto;white-space: nowrap;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;overflow-wrap: break-word !important;">axel -n<span class="Apple-converted-space"> </span><span class="" style="max-width: 100%;color: rgb(209, 154, 102);background-color: rgba(0, 0, 0, 0);display: inline;width: 14px;box-sizing: border-box !important;overflow-wrap: break-word !important;">20</span><span class="Apple-converted-space"> </span><span class="" style="max-width: 100%;color: rgb(97, 174, 238);background-color: rgba(0, 0, 0, 0);display: inline;width: 35px;box-sizing: border-box !important;overflow-wrap: break-word !important;">http:</span>/<span class="" style="max-width: 100%;color: rgb(152, 195, 121);background-color: rgba(0, 0, 0, 0);display: inline;width: 182px;box-sizing: border-box !important;overflow-wrap: break-word !important;">/centos.ustc.edu.cn/centos</span><span class="" style="max-width: 100%;color: rgb(152, 195, 121);background-color: rgba(0, 0, 0, 0);display: inline;width: 49px;box-sizing: border-box !important;overflow-wrap: break-word !important;">/7/isos</span><span class="" style="max-width: 100%;color: rgb(152, 195, 121);background-color: rgba(0, 0, 0, 0);display: inline;width: 56px;box-sizing: border-box !important;overflow-wrap: break-word !important;">/x86_64/</span>CentOS-<span class="" style="max-width: 100%;color: rgb(209, 154, 102);background-color: rgba(0, 0, 0, 0);display: inline;width: 7px;box-sizing: border-box !important;overflow-wrap: break-word !important;">7</span>-x86_64-Minimal-<span class="" style="max-width: 100%;color: rgb(209, 154, 102);background-color: rgba(0, 0, 0, 0);display: inline;width: 28px;box-sizing: border-box !important;overflow-wrap: break-word !important;">1511</span>.iso</span></section>


15 个超赞超牛逼的 Linux 工具,提高效率的同时增加乐趣!


11、sz/rz交互式文件传输,在多重跳板机下传输文件非常好用,不用一级一级传输。

12、cloc代码统计工具,能够统计代码的空行数、注释行、编程语言。


15 个超赞超牛逼的 Linux 工具,提高效率的同时增加乐趣!


13、tmux终端复用工具,替代screen、nohup。


15 个超赞超牛逼的 Linux 工具,提高效率的同时增加乐趣!


14、script/scriptreplay:  终端会话录制。


<section style="margin-right: 16px;margin-left: 16px;padding: 6px;max-width: 100%;border-radius: 4px;font-size: 0.85em;background-color: rgb(40, 44, 52);color: rgb(171, 178, 191);overflow-x: auto;white-space: nowrap;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span class="" style="max-width: 100%;color: rgb(97, 174, 238);background-color: rgba(0, 0, 0, 0);display: inline;width: 7px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#</span><span class="Apple-converted-space"> </span>录制</span><br mpa-from-tpl="t" style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"  /><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;overflow-wrap: break-word !important;">script -t 2>time.txt session.typescript</span><br mpa-from-tpl="t" style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"  /><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span class="" style="max-width: 100%;color: rgb(97, 174, 238);background-color: rgba(0, 0, 0, 0);display: inline;width: 7px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#</span><span class="Apple-converted-space"> </span>your commands</span><br mpa-from-tpl="t" style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"  /><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span class="" style="max-width: 100%;color: rgb(97, 174, 238);background-color: rgba(0, 0, 0, 0);display: inline;width: 7px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#</span><span class="Apple-converted-space"> </span>录制结束</span><br mpa-from-tpl="t" style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"  /><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;overflow-wrap: break-word !important;">exit</span><br mpa-from-tpl="t" style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"  /><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span class="" style="max-width: 100%;color: rgb(97, 174, 238);background-color: rgba(0, 0, 0, 0);display: inline;width: 7px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#</span><span class="Apple-converted-space"> </span>回放</span><br mpa-from-tpl="t" style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"  /><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;overflow-wrap: break-word !important;">scriptreplay -t time.txt session.typescript</span></section>


15、multitail多重  tail。

通常你不止一个日志文件要监控,怎么办?终端软件里开多个 tab 太占地方,可以试试这个工具:


15 个超赞超牛逼的 Linux 工具,提高效率的同时增加乐趣!


—完—

为您推荐

推荐几个抖音年薪100万大佬的硬核
meta-learning和few-shot learning的关系是什么?
GitHub 3W 星超实用技术面试手册,看这篇就够了
如何利用Python开发人工智能入门项目
【微软】AI-神经网络基本原理简明教程

本篇文章来源于: 深度学习这件小事

本文为原创文章,版权归所有,欢迎分享本文,转载请保留出处!

知行编程网
知行编程网 关注:1    粉丝:1
这个人很懒,什么都没写

发表评论

表情 格式 链接 私密 签到
扫一扫二维码分享