以macOS下的终端程序为主,一般情况下也支持Linux,不过根据发行版的不同,版本可能略有差异。
首先需要对终端进行基本设置,参见新帖:macOS终端设置指南
基础环境
homebrew: macOS上用的最多的包管理器
ohmyzsh: 在功能上做了增强并且内置了很多插件的zsh,生态很不错
本地文件
exa: rust重写的ls
procs: rust重写的ps
fzf: 模糊搜索
fd: rust重写的find
ripgrep/ripgrep-all: 文本搜索工具
awk/sed: 文本处理工具
tree: 输出文件树,在各种文档中经常看到
nnn/ranger: 终端文件管理器
pigz: 多线程zlib压缩工具
系统状态
htop/btop/gotop: 加强版top
ncdu: 更强大的du
duf: 显示各磁盘容量
neofetch: 输出硬件信息
网络相关
nethogs/nload: 查看实时网络流量
vnstat: 查看历史网络流量
wrk/siege: 网络压测工具
iperf3: 网络测速工具,需自建服务端
corkscrew: 把http proxy转换到socks5
jq: 解析json的工具
httpie/xh: http客户端
prettyping: 另一种ping的输出方式
rustscan: nmap加强版
其他工具
mycli/pgcli/litecli/iredis: 各大db连接工具
pipx: 安装一些standalone的python工具
fnm: 比nvm要快,不会拖慢shell启动速度
asciinema: 录制命令行操作
tig/lazygit/gitui: git tui
git-delta: git diff tool
ctop/lazydocker: docker tui
bat/ccat/lolcat/catimg: 以各种风格输出代码
tokei/scc/cloc: 统计代码数据
tldr: 查找文档