知行编程网知行编程网  2022-04-07 19:00 知行编程网 隐藏边栏 |   抢沙发  8 
文章评分 0 次,平均分 0.0
15 个『牛逼』的Linux工具,提高效率的同时增加乐趣
作者 / int32bit   编辑 / 昱良
原文 | http://t.cn/R1FKgdN
来源 | 机器学习算法与Python学习

本文作为知识分享,如有侵权,请后台留言删文


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


15 个『牛逼』的Linux工具,提高效率的同时增加乐趣


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


15 个『牛逼』的Linux工具,提高效率的同时增加乐趣


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


15 个『牛逼』的Linux工具,提高效率的同时增加乐趣


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


15 个『牛逼』的Linux工具,提高效率的同时增加乐趣


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


15 个『牛逼』的Linux工具,提高效率的同时增加乐趣


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


15 个『牛逼』的Linux工具,提高效率的同时增加乐趣


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


<section style="border-radius: 4px;font-size: 0.85em;margin: 0px 16px;background: rgb(40, 44, 52);color: rgb(171, 178, 191);display: block;padding: 6px;overflow-x: auto;white-space: nowrap;"><span style="font-size: 15px;">git diff HEAD~8 <span class="hljs-default-comment" style="font-size: 15px;color: rgb(92, 99, 112);background: rgba(0, 0, 0, 0);display: inline;width: 84px;text-decoration: none solid rgb(92, 99, 112);font-weight: 400;font-style: italic;">--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="border-radius: 4px;font-size: 0.85em;margin: 0px 16px;background: rgb(40, 44, 52);color: rgb(171, 178, 191);display: block;padding: 6px;overflow-x: auto;white-space: nowrap;"><span style="font-size: 15px;">axel -n <span class="hljs-default-number" style="font-size: 15px;color: rgb(209, 154, 102);background: rgba(0, 0, 0, 0);display: inline;width: 14px;text-decoration: none solid rgb(209, 154, 102);font-weight: 400;font-style: normal;">20</span> <span class="hljs-default-symbol" style="font-size: 15px;color: rgb(97, 174, 238);background: rgba(0, 0, 0, 0);display: inline;width: 35px;text-decoration: none solid rgb(97, 174, 238);font-weight: 400;font-style: normal;">http:</span>/<span class="hljs-default-regexp" style="font-size: 15px;color: rgb(152, 195, 121);background: rgba(0, 0, 0, 0);display: inline;width: 182px;text-decoration: none solid rgb(152, 195, 121);font-weight: 400;font-style: normal;">/centos.ustc.edu.cn/centos</span><span class="hljs-default-regexp" style="font-size: 15px;color: rgb(152, 195, 121);background: rgba(0, 0, 0, 0);display: inline;width: 49px;text-decoration: none solid rgb(152, 195, 121);font-weight: 400;font-style: normal;">/7/isos</span><span class="hljs-default-regexp" style="font-size: 15px;color: rgb(152, 195, 121);background: rgba(0, 0, 0, 0);display: inline;width: 56px;text-decoration: none solid rgb(152, 195, 121);font-weight: 400;font-style: normal;">/x86_64/</span>CentOS-<span class="hljs-default-number" style="font-size: 15px;color: rgb(209, 154, 102);background: rgba(0, 0, 0, 0);display: inline;width: 7px;text-decoration: none solid rgb(209, 154, 102);font-weight: 400;font-style: normal;">7</span>-x86_64-Minimal-<span class="hljs-default-number" style="font-size: 15px;color: rgb(209, 154, 102);background: rgba(0, 0, 0, 0);display: inline;width: 28px;text-decoration: none solid rgb(209, 154, 102);font-weight: 400;font-style: normal;">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="border-radius: 4px;font-size: 0.85em;margin: 0px 16px;background: rgb(40, 44, 52);color: rgb(171, 178, 191);display: block;padding: 6px;overflow-x: auto;white-space: nowrap;"><span style="font-size: 15px;"><span class="hljs-default-meta" style="font-size: 15px;color: rgb(97, 174, 238);background: rgba(0, 0, 0, 0);display: inline;width: 7px;text-decoration: none solid rgb(97, 174, 238);font-weight: 400;font-style: normal;">#</span> 录制</span><br mpa-from-tpl="t"  /><span style="font-size: 15px;">script -t 2>time.txt session.typescript</span><br mpa-from-tpl="t"  /><span style="font-size: 15px;"><span class="hljs-default-meta" style="font-size: 15px;color: rgb(97, 174, 238);background: rgba(0, 0, 0, 0);display: inline;width: 7px;text-decoration: none solid rgb(97, 174, 238);font-weight: 400;font-style: normal;">#</span> your commands</span><br mpa-from-tpl="t"  /><span style="font-size: 15px;"><span class="hljs-default-meta" style="font-size: 15px;color: rgb(97, 174, 238);background: rgba(0, 0, 0, 0);display: inline;width: 7px;text-decoration: none solid rgb(97, 174, 238);font-weight: 400;font-style: normal;">#</span> 录制结束</span><br mpa-from-tpl="t"  /><span style="font-size: 15px;">exit</span><br mpa-from-tpl="t"  /><span style="font-size: 15px;"><span class="hljs-default-meta" style="font-size: 15px;color: rgb(97, 174, 238);background: rgba(0, 0, 0, 0);display: inline;width: 7px;text-decoration: none solid rgb(97, 174, 238);font-weight: 400;font-style: normal;">#</span> 回放</span><br mpa-from-tpl="t"  /><span style="font-size: 15px;">scriptreplay -t time.txt session.typescript</span></section>


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


15 个『牛逼』的Linux工具,提高效率的同时增加乐趣


—完—

为您推荐

如何学习SVM(支持向量机)以及改进实现SVM算法程序?
纯国产大佬周志华,如何扛起了智能学界大旗
Nature发文:避开机器学习三大「坑」
如何利用Python开发人工智能入门项目
【微软】AI-神经网络基本原理简明教程

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

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

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

发表评论

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