新式 Linux 命令行工具大全 | Linux 中国


 

导读:嗨!今天我 在 twitter 询问有没有一些像 ripgrep、fd、fzf、exa 及 bat 之类的新式命令行工具。
本文字数:2344,阅读时长大约:3分钟
https://linux.cn/article-14488-1.html作者:Julia Evans译者:geekpi
嗨!今天我 在 twitter🔗 twitter.com 询问有没有一些像 ripgrep、fd、fzf、exa 及 bat 之类的新式命令行工具。
我收到了一大堆回复,都是我没有听说过的工具,所以我想我应该在这里列出一个清单。另外,很多人还指出有一个 modern-unix🔗 github.com 的列表。

标准工具的替代物
◈ ripgrep🔗 github.com、ag🔗 github.com、ack🔗 github.com (grep)
◈ exa🔗 github.com、lsd🔗 github.com (ls)
◈ mosh🔗 mosh.org (ssh)
◈ bat🔗 github.com (cat)
◈ delta🔗 github.com (git 分页器)
◈ fd🔗 github.com (find)
◈ drill🔗 www.nlnetlabs.nl、dog🔗 github.com (dig)
◈ duf🔗 github.com (df)
◈ dust🔗 github.com、ncdu (du)
◈ pgcli🔗 www.pgcli.com (psql)
◈ btm🔗 github.com、btop🔗 github.com、glances🔗 github.com、gtop🔗 github.com、zenith🔗 github.com (top)
◈ tldr🔗 tldr.sh (类似 man)
◈ sd🔗 github.com (sed)
◈ difftastic🔗 github.com (diff)
◈ mtr (traceroute)
◈ plocate🔗 plocate.sesse.net (locate)
◈ xxd、hexyl🔗 github.com (hexdump)
新的发明
这里有一些不完全是替代标准工具的工具:
◈ z🔗 github.com、fasd🔗 github.com、autojump🔗 github.com、zoxide🔗 github.com (使查找文件/改变目录更容易的工具)
◈ broot🔗 github.com、nnn🔗 github.com、ranger🔗 github.com (文件管理器)
◈ direnv🔗 github.com (根据当前目录加载环境变量)
◈ fzf🔗 github.com、peco🔗 github.com (“模糊查找器”)
◈ croc🔗 github.com 和 magic-wormhole🔗 github.com (将文件从一台计算机发送到另一台)
◈ hyperfine🔗 github.com 基准测试
◈ httpie🔗 httpie.io、curlie🔗 github.com、xh🔗 github.com (用于发出 HTTP 请求)
◈ entr🔗 github.com (当文件改变时运行任意命令)
◈ asdf🔗 github.com (多语言的版本管理器)
◈ tig🔗 github.com、lazygit🔗 github.com (git 的交互界面)
◈ lazydocker🔗 github.com (docker 的交互式界面)
◈ choose🔗 github.com (基本版的 awk/cut)
◈ ctop🔗 github.com (容器的 top)
◈ fuck🔗 github.com (自动纠正命令行错误)
◈ tmate🔗 tmate.io (与朋友分享你的终端)
◈ lnav🔗 github.com、angle-grinder🔗 github.com (管理日志的工具)
◈ mdp🔗 github.com、glow🔗 github.com (在终端显示 Markdown 的方法)
◈ pbcopy/pbpaste(用于剪贴板和标准输入/标准输出之间)可能不是“新的”,但被提到了很多次。你可以使用 xclip 在 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”)
grep 工具
◈ pdfgrep🔗 pdfgrep.org (用于 PDF 的 grep)
◈ gron🔗 github.com (用于 JSON 的 grep)
◈ ripgrep-all🔗 github.com (ripgrep,但也用于 PDF、zip、电子书等)
不太新的工具
下面是人们提到的一些不那么新的工具,但不那么知名:
◈ pv (“管道查看程序”,给你一个管道的进度条)
◈ vidir (来自 moreutils🔗 joeyh.name,可以让你在 vim 中批量重命名/删除文件)
◈ sponge、ts、parallel (也来自 moreutils)
我的一些最爱
我最喜欢的是 entr、ripgrep、git-delta、httpie、plocate 和 jq,这些都是我已经使用过的。
我也想尝试一下 direnv、btm、z、xsv 和 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中国 荣誉推出

欢迎遵照 CC-BY-SA 协议规定转载,
如需转载,请在文章下留言 “转载:公众号名称”,
我们将为您添加白名单,授权“转载文章时可以修改”。
到顶部