~/puffin-notes $ ls /usr/local/bin | wc -l
The 21 best command-line tools
we actually use in 2026.
AI coding agents, faster replacements for classic Unix tools, and the small utilities that save you from yourself on a remote server at 3 a.m. Every entry has what it does, when to reach for it, its licence, install commands for macOS and Linux, and a command to try first.
Jump to a category
Last reviewed: November 2026 · Linux commands assume Debian/Ubuntu · Nobody paid to be on this list
$ cat starter-kit.txt
Short on time? Install these five.
Between them they cover searching code, finding files, moving around, working with GitHub and getting help from an AI agent. Everything else on this page is a bonus.
// category 01
AI coding agents & local models
The new category. Agents that read your repo, edit files and run commands — plus a way to run models on your own hardware.
Claude Code claude
A coding agent from Anthropic that runs in your terminal. It reads the whole project, plans a change, edits several files, runs your tests and iterates until they pass. You stay in control: it asks before running commands unless you tell it otherwise.
Use it for: Multi-file refactors, writing tests for legacy code, and the “why does this fail only in CI?” investigations nobody wants to do by hand.
npm install -g @anthropic-ai/claude-code
# Linux (Debian/Ubuntu)
npm install -g @anthropic-ai/claude-code
$ claude "add input validation to the signup handler and write tests"
Start it in the project root so it can see everything.
Codex CLI codex
The terminal coding agent from OpenAI. It works through your codebase, proposes and applies changes, and runs commands inside a sandbox by default, which makes it a sensible choice on machines where you want tight guardrails. The CLI itself is open source.
Use it for: Teams already standardised on OpenAI models, and anyone who wants an agent whose source they can read.
npm install -g @openai/codex
# Linux (Debian/Ubuntu)
npm install -g @openai/codex
$ codex "explain how auth works in this repo"
Sign in with your ChatGPT account or set an API key.
Gemini CLI gemini
Google’s open-source agent for the terminal. Its selling point is a very large context window, which helps when you need the model to hold a big codebase or long logs in its head at once.
Use it for: Large monorepos, long log files, and teams already paying for Google Cloud or Gemini.
npm install -g @google/gemini-cli
# Linux (Debian/Ubuntu)
npm install -g @google/gemini-cli
$ gemini
Google has changed its free and paid quotas several times; check the current terms before relying on it.
Ollama ollama
Downloads and runs open-weight models on your own machine with one command. It handles quantisation and GPU acceleration, and exposes an OpenAI-compatible API on localhost, so tools built for hosted APIs can talk to a local model instead.
Use it for: Private data you can’t send to a third party, offline work, and cheap experiments before you pay for tokens.
brew install ollama
# Linux (Debian/Ubuntu)
curl -fsSL https://ollama.com/install.sh | sh
$ ollama run llama3.2
Smaller models run fine on a laptop; big ones need a serious GPU.
$ diff claude codex gemini
The three AI agents, side by side
They overlap a lot. The differences that matter in practice are licensing, how you pay, and how much they’re allowed to do on their own.
| Claude Code | Codex CLI | Gemini CLI | |
|---|---|---|---|
| Made by | Anthropic | OpenAI | |
| CLI source code | Closed | Open (Apache-2.0) | Open (Apache-2.0) |
| How you pay | Claude subscription or API usage | ChatGPT subscription or API usage | Gemini API key or Code Assist |
| Standout strength | Long, multi-step coding tasks | Sandboxed execution by default | Very large context window |
| Watch out for | API costs on heavy days | Model choice affects cost and speed | Quota terms change often |
| Best fit | Terminal-first developers | Teams on OpenAI already | Huge repos and long logs |
A note on cost: on subscription plans these agents feel free until you hit a usage limit. On API billing you pay per token, and a long agent session can read your whole repository several times. Check your usage dashboard after the first week.
// category 02
Search & navigation
Finding things fast is most of the job. These four make it nearly instant.
ripgrep rg
Searches a directory tree for a pattern, extremely quickly, and skips files listed in .gitignore by default. It’s the engine behind search in several popular editors.
Use it for: Finding every caller of a function, every TODO, every place a config key is read.
brew install ripgrep
# Linux (Debian/Ubuntu)
sudo apt install ripgrep
$ rg "DATABASE_URL" –type py
Add -l to list matching files only.
fd fd
A simpler, faster find. Sensible defaults, colour output, and it respects .gitignore. You type what you mean instead of remembering find’s flags.
Use it for: Locating files by name or extension across a large project or a messy server.
brew install fd
# Linux (Debian/Ubuntu)
sudo apt install fd-find
$ fd -e log –changed-within 1d
On Debian/Ubuntu the binary is called fdfind.
fzf fzf
Turns any list into an interactive, fuzzy-searchable menu. Pipe in files, git branches, processes or shell history, type a few letters, press enter.
Use it for: Ctrl-R history search on steroids, opening files without typing paths, switching branches.
brew install fzf
# Linux (Debian/Ubuntu)
sudo apt install fzf
$ vim $(fzf)
Add eval “$(fzf –bash)” to your shell config for key bindings.
zoxide z
A cd that learns. It remembers which directories you visit and how often, so z api jumps straight to the project you meant.
Use it for: Hopping between projects and deep config directories without typing full paths.
brew install zoxide
# Linux (Debian/Ubuntu)
sudo apt install zoxide
$ z puffin
Add eval “$(zoxide init bash)” to ~/.bashrc.
// category 03
Files & disk
Reading files and finding out where your disk went.
bat bat
cat with syntax highlighting, line numbers, git change markers and automatic paging. It still behaves like plain cat when you pipe its output elsewhere.
Use it for: Reading config files, scripts and logs in the terminal without opening an editor.
brew install bat
# Linux (Debian/Ubuntu)
sudo apt install bat
$ bat nginx.conf
On Debian/Ubuntu the binary is batcat; alias it.
eza eza
A modern ls with colours, icons, git status per file and a built-in tree view. The maintained successor to the older exa project.
Use it for: Getting an overview of a project folder, including which files are modified.
brew install eza
# Linux (Debian/Ubuntu)
sudo apt install eza
$ eza -la –git –tree –level=2
Available in Ubuntu 24.04 and newer repos.
ncdu ncdu
An interactive disk-usage browser. It scans a directory and lets you drill down to see exactly what is eating your disk, then delete it from the same screen.
Use it for: The 3 a.m. “disk full” alert on a server. Old logs, forgotten Docker images, runaway caches.
brew install ncdu
# Linux (Debian/Ubuntu)
sudo apt install ncdu
$ sudo ncdu /var
Press d to delete, carefully.
// category 04
Git & GitHub
Version control without leaving the terminal.
gh gh
GitHub’s official command-line tool. Create repos, check out and review pull requests, manage issues, watch CI runs and call the API — all from the shell.
Use it for: Reviewing PRs locally, re-running failed workflows, scripting repo admin.
brew install gh
# Linux (Debian/Ubuntu)
sudo apt install gh
$ gh pr checkout 128 && gh run watch
For the newest version on Linux, add GitHub’s own apt repo.
lazygit lazygit
A keyboard-driven terminal UI for git. Stage individual lines, rebase interactively, cherry-pick and resolve conflicts with a clear visual overview.
Use it for: Untangling messy branches and building clean commits without memorising rebase syntax.
brew install lazygit
# Linux (Debian/Ubuntu)
See the project’s releases page
$ lazygit
Press ? inside the app for every key binding.
delta delta
A pager for git diffs with syntax highlighting, side-by-side view and word-level change markers. Once configured, every git diff and git log -p looks better.
Use it for: Code review in the terminal, and spotting the one changed character in a long line.
brew install git-delta
# Linux (Debian/Ubuntu)
sudo apt install git-delta
$ git config –global core.pager delta
Set it once; it works everywhere after that.
// category 05
Data & APIs
Talking to services and making sense of what they send back.
jq jq
A small language for slicing, filtering and reshaping JSON on the command line. Once you know the basics, API responses and JSON logs stop being walls of text.
Use it for: Pulling one field out of an API response, turning logs into CSV, checking config files.
brew install jq
# Linux (Debian/Ubuntu)
sudo apt install jq
$ curl -s https://api.github.com/repos/cli/cli | jq '.stargazers_count'
Start with .field, .[] and select().
HTTPie http
A friendly HTTP client. Readable syntax, coloured and formatted responses, JSON by default. Ideal for poking at APIs by hand.
Use it for: Testing endpoints, debugging webhooks, exploring a new API.
brew install httpie
# Linux (Debian/Ubuntu)
sudo apt install httpie
$ http POST localhost:8000/users name=owen role=editor
Keep curl for scripts; use HTTPie for humans.
// category 06
Runtimes & packages
Faster installs mean faster feedback loops.
uv uv
A single, very fast tool that handles Python versions, virtual environments, dependencies and project management. It replaces a whole drawer of older tools.
Use it for: Starting Python projects, installing dependencies in CI, running one-off scripts with their own dependencies.
curl -LsSf https://astral.sh/uv/install.sh | sh
# Linux (Debian/Ubuntu)
curl -LsSf https://astral.sh/uv/install.sh | sh
$ uv init api && cd api && uv add fastapi
uv run script.py creates the environment automatically.
Bun bun
A JavaScript and TypeScript runtime with a built-in package manager, bundler and test runner. Most Node.js projects run on it unchanged.
Use it for: Fast installs, running TypeScript directly, and quick scripts without a build step.
curl -fsSL https://bun.sh/install | bash
# Linux (Debian/Ubuntu)
curl -fsSL https://bun.sh/install | bash
$ bun install && bun test
Test your app on it before switching production.
// category 07
Sessions & servers
For the time you spend logged into machines that aren’t yours.
tmux tmux
Keeps terminal sessions alive on a server after you disconnect, and splits one window into many panes. Lose your Wi-Fi mid-deploy and your session is still there.
Use it for: Long-running jobs over SSH, keeping logs and a shell side by side.
brew install tmux
# Linux (Debian/Ubuntu)
sudo apt install tmux
$ tmux new -s deploy
Detach with Ctrl-b d; reattach with tmux attach -t deploy.
btop btop
A full-screen resource monitor: CPU per core, memory, disks, network and processes, with graphs and a mouse-friendly interface.
Use it for: Working out why a box is slow, and which process is responsible.
brew install btop
# Linux (Debian/Ubuntu)
sudo apt install btop
$ btop
Press f to filter processes by name.
tldr tldr
Community-written, example-first help pages. Instead of a 40-page man page, you get the five commands people actually run.
Use it for: Remembering tar flags, ffmpeg options and other syntax nobody keeps in their head.
brew install tlrc
# Linux (Debian/Ubuntu)
sudo apt install tldr
$ tldr tar
Several clients exist; any of them reads the same pages.
$ column -t tools.csv
All 21 tools in one table
Licences matter if you ship software or work somewhere with a legal team. Everything here is free to use except the AI agents’ underlying models.
| # | Tool | Command | Licence | Cost | Replaces |
|---|---|---|---|---|---|
| 01 | Claude Code | claude | Proprietary | Subscription or API | The most capable agent we’ve used in a terminal. Watch your usage if you’re on API billing. |
| 02 | Codex CLI | codex | Apache-2.0 | Subscription or API | A strong, open-source alternative. The sandbox defaults are a real plus on shared servers. |
| 03 | Gemini CLI | gemini | Apache-2.0 | API key or Code Assist | Best when context size is the bottleneck. Read the quota page first. |
| 04 | Ollama | ollama | MIT | Free | Install it even if you mostly use hosted models. It’s the cheapest way to try things. |
| 05 | ripgrep | rg | MIT / Unlicense | Free | Faster than grep with better defaults. There’s no reason not to use it. |
| 06 | fd | fd | MIT / Apache-2.0 | Free | Pairs perfectly with fzf and ripgrep. |
| 07 | fzf | fzf | MIT | Free | Small tool, huge habit change. Install it first. |
| 08 | zoxide | z | MIT | Free | You’ll stop noticing it within a day — which is the point. |
| 09 | bat | bat | MIT / Apache-2.0 | Free | Alias cat to it and never look back. |
| 10 | eza | eza | EUPL-1.2 | Free | Pure quality of life. Nice, not essential. |
| 11 | ncdu | ncdu | MIT | Free | Every server should have it installed before it needs it. |
| 12 | gh | gh | MIT | Free | If you use GitHub, this is mandatory. |
| 13 | lazygit | lazygit | MIT | Free | Makes git’s hardest operations feel easy. |
| 14 | delta | delta | MIT | Free | Set-and-forget improvement to every diff you read. |
| 15 | jq | jq | MIT | Free | Learn ten minutes of it. It pays back for years. |
| 16 | HTTPie | http | BSD-3-Clause | Free | The nicest way to talk to an API by hand. |
| 17 | uv | uv | MIT / Apache-2.0 | Free | If you write Python, switch. The speed difference is not subtle. |
| 18 | Bun | bun | MIT | Free | Worth it for package installs alone. |
| 19 | tmux | tmux | ISC | Free | Non-negotiable for anyone who works on remote servers. |
| 20 | btop | btop | Apache-2.0 | Free | The clearest view of a struggling machine. |
| 21 | tldr | tldr | MIT / Apache-2.0 | Free | Saves a browser tab a dozen times a day. |
$ cat ~/.bashrc
Our shell config, ready to paste
Install the tools first, then add these lines to ~/.bashrc (or ~/.zshrc, swapping bash for zsh). Open a new terminal and everything is wired up.
# Better defaults for classic commands alias cat='bat --paging=never' # use 'batcat' on Debian/Ubuntu alias ls='eza' alias ll='eza -la --git' alias tree='eza --tree --level=2' alias find='fd' # 'fdfind' on Debian/Ubuntu # Smarter navigation and history search eval "$(zoxide init bash)" eval "$(fzf --bash)" # Nicer git diffs everywhere git config --global core.pager delta git config --global interactive.diffFilter 'delta --color-only'
$ cat methodology.md
How we picked
Every tool here is something we use regularly, on laptops and on servers. We left out tools that are clever but rarely opened, and anything that stopped being maintained.
$ man best-cli-tools
Questions people ask
Do these work on Windows?
Most of them do, either natively or through WSL. If you use Windows for development, installing WSL and running the Linux commands on this page is the smoothest route.
Why does apt install an older version?
Distribution repositories favour stability over freshness. For tools you use every day, the project’s own install script, release binaries or Homebrew on Linux will usually get you a newer version.
Are AI coding agents safe to run on my machine?
They can run commands and edit files, so treat them like a capable but new colleague. Keep work in git so every change can be reviewed and undone, start with approvals turned on, and don’t point them at production credentials.
Which AI agent should I start with?
Whichever matches a subscription or API account you already pay for. The habits — giving clear instructions, reviewing diffs, keeping tasks small — transfer between them.
Is there a catch with the free tools?
Not really. Almost everything here is open source under a permissive licence. The only real cost is the hour it takes to learn the handful of commands you’ll use every day.
