命令行神器
最后更新于:2022-04-02 05:45:01
[TOC]
# Command Line Apps
I use[brew](https://brew.sh/)package manager to install all the[tools I use on my system](https://github.com/nikitavoloboev/dotfiles/blob/master/magefile.go).
I curate a list of[interesting CLI tools](https://github.com/learn-anything/command-line-tools). Below are ones I love & use:
* [exa](https://github.com/ogham/exa)\- Replacement for ls written in rust.
* [ripgrep](https://github.com/BurntSushi/ripgrep)\- Search text for patterns fast.
* [fzf](https://github.com/junegunn/fzf)\- Command-line fuzzy finder.
* [fd](https://github.com/sharkdp/fd)\- Simple, fast and user-friendly alternative to 'find'.
* [watchexec](https://github.com/watchexec/watchexec)\- Executes commands in response to file modifications.
* [bat](https://github.com/sharkdp/bat)\- Cat clone with wings.
* [up](https://github.com/apex/up)\- Deploy infinitely scalable serverless apps, APIs, and sites in seconds to AWS.
* [jq](https://github.com/stedolan/jq)\- JSON processor.
* [git](https://github.com/git/git)\- Version control.
* [curl](https://curl.haxx.se/docs/manpage.html)\- Transfer data from or to a server.
* [youtube-dl](https://github.com/rg3/youtube-dl)\- Download videos from YouTube and other video sites.
* [tmux](https://github.com/tmux/tmux)\- Terminal multiplexer.
* [direnv](https://direnv.net/)\- Environment switcher for the shell.
* [htop](https://github.com/hishamhm/htop)\- Interactive text-mode process viewer for Unix systems.
* [httpie](https://github.com/jakubroztocil/httpie)\- HTTP client.
* [rq](https://github.com/dflemstr/rq)\- Tool for doing record analysis and transformation.
* [pandoc](https://github.com/jgm/pandoc)\- Universal markup converter.
* [trash](https://github.com/sindresorhus/trash)\- Move files and folders to the trash.
* [vtop](https://github.com/MrRio/vtop)\- Graphical activity monitor.
* [gotop](https://github.com/cjbassi/gotop)\- Terminal based graphical activity monitor inspired by gtop and vtop.
* [howdoi](https://github.com/gleitz/howdoi)\- Instant coding answers.
* [asciinema](https://github.com/asciinema/asciinema)\- Terminal session recorder.
* [tldr](https://github.com/tldr-pages/tldr)\- Simplified and community-driven man pages.
* [imgcat](https://github.com/eddieantonio/imgcat)\- Like[cat](http://www.linfo.org/cat.html)but for images.
* [screenfetch](https://github.com/KittyKatt/screenFetch)\- Fetches system/theme information in terminal.
* [hugo](https://github.com/gohugoio/hugo)\- Fast and flexible static site generator.
* [reflex](https://github.com/cespare/reflex)\- Run a command when files change.
* [modd](https://github.com/cortesi/modd)\- Flexible tool for responding to file system changes.
* [now](https://github.com/zeit/now-cli)\- Real time global deployments served over HTTP/2.
* [yarn](https://github.com/yarnpkg/yarn)\- Fast, reliable, and secure dependency management.
* [hub](https://github.com/github/hub)\- GitHub wrapper.
* [xsv](https://github.com/BurntSushi/xsv)\- Fast CSV command line toolkit written in Rust.
* [pv](https://ivarch.com/programs/pv.shtml)\- Pipe Viewer.
* [m-cli](https://github.com/rgcr/m-cli)\- Useful utils for macOS.
* [pgcli](https://github.com/dbcli/pgcli)\- Postgres CLI with autocompletion and syntax highlighting.
* [mas](https://github.com/mas-cli/mas)\- CLI for mac app store.
* [loc](https://github.com/cgag/loc)\- Count lines of code quickly.
* [alfred](https://godoc.org/github.com/jason0x43/go-alfred/alfred)\- Manage Go-based Alfred workflows.
* [neofetch](https://github.com/dylanaraps/neofetch)\- System information tool.
* [license-up](https://github.com/nikitavoloboev/license-up)\- Create a license quickly for your project.
* [piknik](https://github.com/jedisct1/piknik)\- Copy/paste anything over the network.
* [bench](https://github.com/Gabriel439/bench)\- Command-line benchmark tool.
* [ghq](https://github.com/motemen/ghq)\- Manage remote repository clones.
* [npx](https://github.com/zkat/npx)\- Execute npm package binaries.
* [devd](https://github.com/cortesi/devd)\- Local webserver for developers.
* [wifi-password](https://github.com/rauchg/wifi-password)\- Get the password of the WiFi you're on.
* [fkill](https://github.com/sindresorhus/fkill-cli)\- Fabulously kill processes.
* [ran](https://github.com/m3ng9i/ran)\- Simple static web server written in Go.
* [mcfly](https://github.com/cantino/mcfly)\- Fast visual command history search.
* [hyperfine](https://github.com/sharkdp/hyperfine)\- Excellent command-line benchmarking tool.
# mtr
```
brew install mtr
```
`mtr` 是 Linux 中有一个非常棒的网络连通性判断工具,它结合了 ping、traceroute、nslookup 的相关特性。当网络链路出现问题时很多人会用 `ping` 命令,可以简单的测试网络的连通性,看下丢包率,但是却无法确定是在哪里出现了问题;有些人就会用 `tracert` 命令来查看路由,或者用 `nslookup` 命令来查看 DNS 是否可用;如果你也觉得这三个命令太麻烦的话,那就用 `mtr` 吧。
# ripgrep
[ripgrep](https://github.com/BurntSushi/ripgrep)
# gifgen
[gifgen](https://hub.fastgit.org/lukechilds/gifgen)
# silicon
[silicon](https://github.com/Aloxaf/silicon) 生成你源代码的图片
# 参考
> [有哪些命令行的软件堪称神器?](https://www.zhihu.com/question/59227720/answer/641567130)
';