Websites and web tools
Terminal Tools: A Comparison Table by Task
The terminal is a text window where you type commands instead of clicking. For anyone who maintains a small business website, deploys a static site or reads server logs, a handful of terminal tools cover most jobs. The tables below compare the classic tools that ship with most systems against newer open-source options, by task.
How to read these tables
The classic tools are installed by default on most Linux and macOS systems, which makes scripts that use them portable. The newer tools are separate installs, often with friendlier output and defaults. Neither column is a winner overall; the right pick depends on whether you value portability or convenience for the task.
Shells
| Shell | Default on | Strengths | Watch out for |
|---|---|---|---|
| bash | Most Linux systems | Huge body of examples; scripts run almost everywhere | Older version on some macOS installs |
| zsh | Recent macOS | Strong completion and customisation; mostly bash-compatible for daily use | Some bash script features behave differently |
| fish | Separate install | Helpful suggestions out of the box, readable syntax | Not POSIX compatible; do not write shared scripts in it |
Searching and finding
| Task | Classic tool | Newer option | Trade-off |
|---|---|---|---|
| Search text in files | grep -r | ripgrep (rg) | rg skips ignored files by default and is often faster on large folders; grep is everywhere |
| Find files by name | find | fd | fd has simpler syntax; find has more options and is always present |
| Fuzzy pick from a list | None built in | fzf | Makes history and file selection interactive; an extra dependency |
Viewing and editing
| Task | Classic tool | Newer option | Trade-off |
|---|---|---|---|
| Read a long file | less | bat | bat adds colour and line numbers; less handles huge logs well |
| Edit a config file on a server | nano or vi | Your local editor over a remote connection | nano is easiest to learn; vi is present on almost every server |
| Inspect JSON | python3 -m json.tool | jq | jq can filter and reshape; the Python module only pretty-prints |
Network and web
| Task | Classic tool | Notes |
|---|---|---|
| Fetch a page or API | curl | curl -I shows only the response headers, useful for checking redirects |
| Download a file | wget | Handles retries and recursive downloads |
| Look up DNS records | dig | dig example.com MX shows mail records |
| Check a TLS certificate | openssl s_client | Add -servername for shared hosts |
Sessions and multitasking
On a remote server, a terminal multiplexer such as tmux or the older screen keeps your session running if the connection drops. That matters for long jobs like a large file upload or a database export. tmux is more common in current tutorials; screen is more likely to be already installed on older systems.
What to weigh before switching
- Will scripts using this tool run on servers where you cannot install software?
- Will other people on the project need to install it too?
- Does it handle the size of files you work with, such as large access logs?
- Is it maintained, with recent releases and a clear licence?
- Can you get the same result with a flag on the classic tool?
A sensible pattern is to use the newer tools interactively for comfort, and write shared scripts with the classic tools so they run anywhere.