新式 Linux 命令行工具大全

admin 2022年4月23日01:50:28评论25 views字数 2791阅读9分18秒阅读模式
 
新式 Linux 命令行工具大全
导读:嗨!今天我 在 twitter 询问有没有一些像 ripgrep、fd、fzf、exa 及 bat 之类的新式命令行工具。
本文字数:2344,阅读时长大约:3分钟

https://linux.cn/article-14488-1.html
作者:Julia Evans
译者:geekpi

嗨!今天我 在 twitter🔗 twitter.com 询问有没有一些像 ripgrepfdfzfexa 及 bat 之类的新式命令行工具。

我收到了一大堆回复,都是我没有听说过的工具,所以我想我应该在这里列出一个清单。另外,很多人还指出有一个 modern-unix🔗 github.com 的列表。

新式 Linux 命令行工具大全

标准工具的替代物

◈ ripgrep🔗 github.comag🔗 github.comack🔗 github.com (grep
◈ exa🔗 github.comlsd🔗 github.com (ls
◈ mosh🔗 mosh.org (ssh
◈ bat🔗 github.com (cat
◈ delta🔗 github.com (git 分页器)
◈ fd🔗 github.com (find
◈ drill🔗 www.nlnetlabs.nldog🔗 github.com (dig
◈ duf🔗 github.com (df
◈ dust🔗 github.comncdu (du
◈ pgcli🔗 www.pgcli.com (psql)
◈ btm🔗 github.combtop🔗 github.comglances🔗 github.comgtop🔗 github.comzenith🔗 github.com (top
◈ tldr🔗 tldr.sh (类似 man
◈ sd🔗 github.com (sed
◈ difftastic🔗 github.com (diff
◈ mtr (traceroute
◈ plocate🔗 plocate.sesse.net (locate
◈ xxdhexyl🔗 github.com (hexdump

新式 Linux 命令行工具大全

新的发明

这里有一些不完全是替代标准工具的工具:

◈ z🔗 github.comfasd🔗 github.comautojump🔗 github.comzoxide🔗 github.com (使查找文件/改变目录更容易的工具)
◈ broot🔗 github.comnnn🔗 github.comranger🔗 github.com (文件管理器)
◈ direnv🔗 github.com (根据当前目录加载环境变量)
◈ fzf🔗 github.compeco🔗 github.com (“模糊查找器”)
◈ croc🔗 github.com 和 magic-wormhole🔗 github.com (将文件从一台计算机发送到另一台)
◈ hyperfine🔗 github.com 基准测试
◈ httpie🔗 httpie.iocurlie🔗 github.comxh🔗 github.com (用于发出 HTTP 请求)
◈ entr🔗 github.com (当文件改变时运行任意命令)
◈ asdf🔗 github.com (多语言的版本管理器)
◈ tig🔗 github.comlazygit🔗 github.com (git 的交互界面)
◈ lazydocker🔗 github.com (docker 的交互式界面)
◈ choose🔗 github.com (基本版的 awk/cut
◈ ctop🔗 github.com (容器的 top
◈ fuck🔗 github.com (自动纠正命令行错误)
◈ tmate🔗 tmate.io (与朋友分享你的终端)
◈ lnav🔗 github.comangle-grinder🔗 github.com (管理日志的工具)
◈ mdp🔗 github.comglow🔗 github.com (在终端显示 Markdown 的方法)
◈ pbcopy/pbpaste(用于剪贴板和标准输入/标准输出之间)可能不是“新的”,但被提到了很多次。你可以使用 xclip 在 Linux 上做同样的事情

新式 Linux 命令行工具大全

JSON/YAML/CSV 工具

◈ jq🔗 stedolan.github.io (一个很好的 JSON 处理工具)
◈ jc🔗 github.com (将各种工具的输出转换成 JSON)
◈ jo🔗 github.com (创建 JSON 对象)
◈ yq🔗 github.com (类似 jq,但用于 YAML),还有 另一个 yq🔗 github.com
◈ fq🔗 github.com (类似 jq,但用于二进制)
◈ htmlq🔗 github.com (类似 jq,但用于 HTML)
◈ fx🔗 github.com (交互式 JSON 工具)
◈ jless🔗 github.com (JSON 分页器)
◈ xsv🔗 github.com (一个用于 CSV 文件的命令行工具,来自 burntsushi)
◈ visidata🔗 www.visidata.org (“一个用于表格数据的交互式多功能工具”)
◈ miller🔗 github.com (“像用于 CSV/TSV/JSON/JSON 的 awk/sed/cut/join/sort”)

新式 Linux 命令行工具大全

grep 工具

◈ pdfgrep🔗 pdfgrep.org (用于 PDF 的 grep
◈ gron🔗 github.com (用于 JSON 的 grep
◈ ripgrep-all🔗 github.com (ripgrep,但也用于 PDF、zip、电子书等)

新式 Linux 命令行工具大全

不太新的工具

下面是人们提到的一些不那么新的工具,但不那么知名:

◈ pv (“管道查看程序”,给你一个管道的进度条)
◈ vidir (来自 moreutils🔗 joeyh.name,可以让你在 vim 中批量重命名/删除文件)
◈ spongetsparallel (也来自 moreutils)

新式 Linux 命令行工具大全

我的一些最爱

我最喜欢的是 entrripgrepgit-deltahttpieplocate 和 jq,这些都是我已经使用过的。

我也想尝试一下 direnvbtmzxsv 和 duf,但我认为我知道到的最令人兴奋的工具是 vidir


via: https://jvns.ca/blog/2022/04/12/a-list-of-new-ish--command-line-tools/

作者:Julia Evans 选题:lujun9972 译者:geekpi 校对:wxy

本文由 LCTT 原创编译,Linux中国 荣誉推出

新式 Linux 命令行工具大全
欢迎遵照 CC-BY-SA 协议规定转载,
如需转载,请在文章下留言 “转载:公众号名称”,
我们将为您添加白名单,授权“转载文章时可以修改”。


原文始发于微信公众号(Linux中国):新式 Linux 命令行工具大全 | Linux 中国

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2022年4月23日01:50:28
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   新式 Linux 命令行工具大全http://cn-sec.com/archives/930733.html

发表评论

匿名网友 填写信息