Boost Your Productivity with 20 Essential Command-Line Tools
This guide presents a curated collection of twenty powerful command-line utilities—from fast file search and interactive Git browsing to JSON formatting, shell linting, code compilation caching, and smart command correction—each explained with usage examples to help developers and sysadmins streamline their daily workflows.
This article compiles a practical list of twenty command-line tools that can significantly improve the efficiency of developers, system administrators, and power users. Each tool is briefly described, and key usage examples are provided.
1. ag
A faster recursive search tool for file contents, outperforming grep and ack.
2. tig
An interactive text-mode interface for Git repositories, allowing you to explore commits and branches without using the standard Git commands.
3. mycli
A MySQL client with syntax highlighting and command auto‑completion, offering an experience similar to ipython and serving as a drop‑in replacement for the default mysql client.
4. jq
A lightweight and flexible command‑line JSON processor that formats and highlights JSON output, usable as an alternative to python -m json.tool.
5. shellcheck
A static analysis tool for shell scripts that detects syntax errors and non‑portable constructs, helping you write safer Bash code.
6. yapf
Google’s Python code formatter, supporting both PEP 8 and Google style guidelines.
7. mosh
A UDP‑based remote terminal that replaces ssh with more stable connections, automatically reconnecting even when the IP address changes.
8. fzf
A fuzzy finder for the command line that enables interactive, intelligent searching of files or command history, often combined with Ctrl‑R for rapid command recall.
9. PathPicker (fpp)
Detects file and directory paths in terminal output and provides an interactive selector; particularly handy when used alongside Git.
10. htop
An improved process monitor with a colorful, user‑friendly interface, serving as a modern replacement for top.
11. axel
A multi‑threaded download accelerator that can replace curl or wget for faster file retrieval.
axel -n 20 http://centos.ustc.edu.cn/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso12. sz/rz
Interactive file transfer utilities that simplify moving files through multiple jump hosts without manual nesting of scp commands.
13. cloc
A code‑line counter that reports the number of source lines, blank lines, and comment lines per programming language.
14. ccache
A compiler cache for C/C++ that dramatically speeds up repeated builds, especially useful when recompiling the Linux kernel. gcc foo.c After enabling ccache, the same compilation becomes:
ccache gcc foo.c15. tmux
A terminal multiplexer that allows multiple sessions, panes, and windows, effectively replacing screen and nohup.
16. neovim
An extensible, modern fork of Vim that serves as a drop‑in replacement with improved plugin architecture.
17. script / scriptreplay
Utilities for recording terminal sessions ( script) and replaying them ( scriptreplay).
script -t 2>time.txt session.typescript # start recording scriptreplay -t time.txt session.typescript18. you-get
A powerful media downloader supporting sites such as YouTube, Google+, Youku, Mango TV, Tencent Video, and others.
19. Clipboard shortcuts (pbcopy / pbpaste)
On macOS, pbcopy copies stdin to the system clipboard, while pbpaste outputs clipboard contents.
cat test.sh | pbcopy pbpaste20. thefuck
A command‑line tool that automatically corrects mistyped commands. For example, typing aptget followed by fuck rewrites it to apt-get, and it can also add missing sudo when needed.
21. tldr
A concise cheat‑sheet client that provides simplified examples for common commands, useful when you don’t want to read the full man page.
Example: tldr tar Overall, these tools cover searching, version control, database interaction, JSON handling, shell scripting, code formatting, remote access, fuzzy finding, path selection, process monitoring, downloading, file transfer, code statistics, compilation caching, terminal multiplexing, editing, session recording, media downloading, clipboard management, speech synthesis, command correction, and quick reference lookup.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Liangxu Linux
Liangxu, a self‑taught IT professional now working as a Linux development engineer at a Fortune 500 multinational, shares extensive Linux knowledge—fundamentals, applications, tools, plus Git, databases, Raspberry Pi, etc. (Reply “Linux” to receive essential resources.)
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
