~/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.

ripgrepFind anything in any codebase, instantly.
fzfFuzzy-search files, history and branches.
zoxideJump to any directory in a few keystrokes.
ghPull requests, issues and CI without a browser.
an AI agentClaude Code or Codex CLI — pick one and learn it well.

// 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.

01

Claude Code claude

AI coding agentProprietarySubscription or API

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.

# macOS
npm install -g @anthropic-ai/claude-code
# Linux (Debian/Ubuntu)
npm install -g @anthropic-ai/claude-code
# try it
$ claude "add input validation to the signup handler and write tests"

Start it in the project root so it can see everything.

Replaces: Copy-pasting between a chat window and your editorThe most capable agent we’ve used in a terminal. Watch your usage if you’re on API billing.
02

Codex CLI codex

AI coding agentApache-2.0Subscription or API

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.

# macOS
npm install -g @openai/codex
# Linux (Debian/Ubuntu)
npm install -g @openai/codex
# try it
$ codex "explain how auth works in this repo"

Sign in with your ChatGPT account or set an API key.

Replaces: Copy-pasting between a chat window and your editorA strong, open-source alternative. The sandbox defaults are a real plus on shared servers.
03

Gemini CLI gemini

AI coding agentApache-2.0API key or Code Assist

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.

# macOS
npm install -g @google/gemini-cli
# Linux (Debian/Ubuntu)
npm install -g @google/gemini-cli
# try it
$ gemini

Google has changed its free and paid quotas several times; check the current terms before relying on it.

Replaces: Pasting huge files into a browser tabBest when context size is the bottleneck. Read the quota page first.
04

Ollama ollama

Local modelsMITFree

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.

# macOS
brew install ollama
# Linux (Debian/Ubuntu)
curl -fsSL https://ollama.com/install.sh | sh
# try it
$ ollama run llama3.2

Smaller models run fine on a laptop; big ones need a serious GPU.

Replaces: Paying per token for every experimentInstall it even if you mostly use hosted models. It’s the cheapest way to try things.

$ 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 CodeCodex CLIGemini CLI
Made byAnthropicOpenAIGoogle
CLI source codeClosedOpen (Apache-2.0)Open (Apache-2.0)
How you payClaude subscription or API usageChatGPT subscription or API usageGemini API key or Code Assist
Standout strengthLong, multi-step coding tasksSandboxed execution by defaultVery large context window
Watch out forAPI costs on heavy daysModel choice affects cost and speedQuota terms change often
Best fitTerminal-first developersTeams on OpenAI alreadyHuge 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 03

Files & disk

Reading files and finding out where your disk went.

09

bat bat

File viewerMIT / Apache-2.0Free

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.

# macOS
brew install bat
# Linux (Debian/Ubuntu)
sudo apt install bat
# try it
$ bat nginx.conf

On Debian/Ubuntu the binary is batcat; alias it.

Replaces: cat / lessAlias cat to it and never look back.
10

eza eza

File listingEUPL-1.2Free

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.

# macOS
brew install eza
# Linux (Debian/Ubuntu)
sudo apt install eza
# try it
$ eza -la –git –tree –level=2

Available in Ubuntu 24.04 and newer repos.

Replaces: ls / treePure quality of life. Nice, not essential.
11

ncdu ncdu

Disk usageMITFree

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.

# macOS
brew install ncdu
# Linux (Debian/Ubuntu)
sudo apt install ncdu
# try it
$ sudo ncdu /var

Press d to delete, carefully.

Replaces: du -sh * | sort -hEvery server should have it installed before it needs it.

// category 04

Git & GitHub

Version control without leaving the terminal.

12

gh gh

GitHub CLIMITFree

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.

# macOS
brew install gh
# Linux (Debian/Ubuntu)
sudo apt install gh
# try it
$ gh pr checkout 128 && gh run watch

For the newest version on Linux, add GitHub’s own apt repo.

Replaces: Clicking around github.comIf you use GitHub, this is mandatory.
13

lazygit lazygit

Git interfaceMITFree

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.

# macOS
brew install lazygit
# Linux (Debian/Ubuntu)
See the project’s releases page
# try it
$ lazygit

Press ? inside the app for every key binding.

Replaces: git rebase -i from memoryMakes git’s hardest operations feel easy.
14

delta delta

Diff viewerMITFree

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.

# macOS
brew install git-delta
# Linux (Debian/Ubuntu)
sudo apt install git-delta
# try it
$ git config –global core.pager delta

Set it once; it works everywhere after that.

Replaces: git diff’s default outputSet-and-forget improvement to every diff you read.

// category 05

Data & APIs

Talking to services and making sense of what they send back.

15

jq jq

JSON processorMITFree

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.

# macOS
brew install jq
# Linux (Debian/Ubuntu)
sudo apt install jq
# try it
$ curl -s https://api.github.com/repos/cli/cli | jq '.stargazers_count'

Start with .field, .[] and select().

Replaces: Squinting at raw JSONLearn ten minutes of it. It pays back for years.
16

HTTPie http

HTTP clientBSD-3-ClauseFree

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.

# macOS
brew install httpie
# Linux (Debian/Ubuntu)
sudo apt install httpie
# try it
$ http POST localhost:8000/users name=owen role=editor

Keep curl for scripts; use HTTPie for humans.

Replaces: Long curl commands with -H and -d flagsThe nicest way to talk to an API by hand.

// category 06

Runtimes & packages

Faster installs mean faster feedback loops.

17

uv uv

Python toolingMIT / Apache-2.0Free

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.

# macOS
curl -LsSf https://astral.sh/uv/install.sh | sh
# Linux (Debian/Ubuntu)
curl -LsSf https://astral.sh/uv/install.sh | sh
# try it
$ uv init api && cd api && uv add fastapi

uv run script.py creates the environment automatically.

Replaces: pip, pipx, virtualenv, pyenv, poetryIf you write Python, switch. The speed difference is not subtle.
18

Bun bun

JavaScript runtimeMITFree

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.

# macOS
curl -fsSL https://bun.sh/install | bash
# Linux (Debian/Ubuntu)
curl -fsSL https://bun.sh/install | bash
# try it
$ bun install && bun test

Test your app on it before switching production.

Replaces: npm install and separate build toolsWorth it for package installs alone.

// category 07

Sessions & servers

For the time you spend logged into machines that aren’t yours.

19

tmux tmux

Terminal multiplexerISCFree

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.

# macOS
brew install tmux
# Linux (Debian/Ubuntu)
sudo apt install tmux
# try it
$ tmux new -s deploy

Detach with Ctrl-b d; reattach with tmux attach -t deploy.

Replaces: Hoping your SSH connection holdsNon-negotiable for anyone who works on remote servers.
20

btop btop

System monitorApache-2.0Free

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.

# macOS
brew install btop
# Linux (Debian/Ubuntu)
sudo apt install btop
# try it
$ btop

Press f to filter processes by name.

Replaces: top / htopThe clearest view of a struggling machine.
21

tldr tldr

Cheat sheetsMIT / Apache-2.0Free

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.

# macOS
brew install tlrc
# Linux (Debian/Ubuntu)
sudo apt install tldr
# try it
$ tldr tar

Several clients exist; any of them reads the same pages.

Replaces: Searching the web for the same command every timeSaves a browser tab a dozen times a day.

$ 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.

#ToolCommandLicenceCostReplaces
01Claude CodeclaudeProprietarySubscription or APIThe most capable agent we’ve used in a terminal. Watch your usage if you’re on API billing.
02Codex CLIcodexApache-2.0Subscription or APIA strong, open-source alternative. The sandbox defaults are a real plus on shared servers.
03Gemini CLIgeminiApache-2.0API key or Code AssistBest when context size is the bottleneck. Read the quota page first.
04OllamaollamaMITFreeInstall it even if you mostly use hosted models. It’s the cheapest way to try things.
05ripgreprgMIT / UnlicenseFreeFaster than grep with better defaults. There’s no reason not to use it.
06fdfdMIT / Apache-2.0FreePairs perfectly with fzf and ripgrep.
07fzffzfMITFreeSmall tool, huge habit change. Install it first.
08zoxidezMITFreeYou’ll stop noticing it within a day — which is the point.
09batbatMIT / Apache-2.0FreeAlias cat to it and never look back.
10ezaezaEUPL-1.2FreePure quality of life. Nice, not essential.
11ncduncduMITFreeEvery server should have it installed before it needs it.
12ghghMITFreeIf you use GitHub, this is mandatory.
13lazygitlazygitMITFreeMakes git’s hardest operations feel easy.
14deltadeltaMITFreeSet-and-forget improvement to every diff you read.
15jqjqMITFreeLearn ten minutes of it. It pays back for years.
16HTTPiehttpBSD-3-ClauseFreeThe nicest way to talk to an API by hand.
17uvuvMIT / Apache-2.0FreeIf you write Python, switch. The speed difference is not subtle.
18BunbunMITFreeWorth it for package installs alone.
19tmuxtmuxISCFreeNon-negotiable for anyone who works on remote servers.
20btopbtopApache-2.0FreeThe clearest view of a struggling machine.
21tldrtldrMIT / Apache-2.0FreeSaves 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.

~/.bashrc — Puffin Notes defaults
# 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.

Daily useDo we reach for it most days, or only in emergencies? Emergency tools made the list only if they’re irreplaceable.
SpeedDoes it feel instant on a large repo or a slow server? Tools that make you wait didn’t make the cut.
Works on LinuxEverything here installs on a standard Debian or Ubuntu server, not just on a Mac.
Healthy projectActive maintainers, a clear licence and regular releases. We don’t recommend abandonware.

$ 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.

Contact Us

We'd love to hear from you