55-Year-Old Linux Tool Revived: ChatGPT Driving Me Back to Man Pages
In this article
If you've ever felt that ChatGPT's confident answers about Linux commands are just a little too confident—sometimes inventing flags that don't exist or omitting the one option you actually need—you're not alone. This list covers 55 classic command-line utilities, many over 55 years old, that remain the most reliable way to get things done. It's for sysadmins, developers, and curious users who want to verify AI suggestions, learn the real syntax, and appreciate the timeless power of the terminal.
Why Man Pages Still Win
- man – The manual reader itself; type
man lsto see every option, not just the popular ones. - info – A more detailed hypertext alternative to man pages, especially for GNU coreutils.
- apropos – Searches man page descriptions by keyword, so you can find the right command when you only remember what it does.
- whatis – Gives a one-line summary of a command, perfect for a quick sanity check.
- --help – Not a man page, but the built-in quick reference that often answers before you need the full manual.
File and Text Manipulation
- ls – Lists files;
ls -lareveals hidden files and permissions, which ChatGPT often forgets to mention. - cp – Copies files; use
-ato preserve attributes recursively, a flag that's easy to miss in AI summaries. - mv – Moves or renames; it's safer than
cp+rmbecause it's atomic on the same filesystem. - rm – Deletes files;
rm -rfis dangerous, and the man page warns you about it in a way AI often doesn't. - mkdir – Creates directories;
-pcreates parent directories as needed, a lifesaver for nested paths. - touch – Updates timestamps or creates empty files; useful for testing and scripting.
- cat – Concatenates files; for large files,
lessis better, but for quick viewing, cat is fine. - less – A pager that lets you scroll both ways; it's what
morewished it could be. - head – Shows the first 10 lines by default;
head -n 20gives more, and it's great for logs. - tail – Shows the last 10 lines;
tail -ffollows a growing file, essential for monitoring logs. - grep – Searches text using regular expressions;
grep -rsearches recursively, and-iignores case. - sed – Stream editor for text transformation;
sed 's/old/new/g'replaces all occurrences, a classic. - awk – A programming language for text processing;
awk '{print $1}'extracts the first column, perfect for CSV-like data. - cut – Extracts columns or fields;
cut -d: -f1 /etc/passwdlists usernames, a quick way to parse files. - sort – Sorts lines;
sort -nsorts numerically, which is different from alphabetical sorting. - uniq – Removes duplicate adjacent lines; combine with
sortto get unique values across a file. - wc – Counts lines, words, and characters;
wc -lgives line count, a common need in scripts. - diff – Compares files line by line;
diff -ugives a unified format that's easier to read. - patch – Applies a diff to a file; it's how software updates were distributed before git.
- tr – Translates or deletes characters;
tr -d '\n'removes newlines, useful for processing.
System Information and Monitoring
- ps – Lists running processes;
ps auxshows all processes with CPU and memory usage. - top – Displays real-time process activity; press
qto quit, andhfor help. - htop – An interactive process viewer with a better interface than top; install it if you can.
- df – Shows disk space usage;
df -hmakes it human-readable, a must for checking storage. - du – Shows directory sizes;
du -sh *gives a summary of each item in the current directory. - free – Displays memory usage;
free -hshows it in human-readable form, and it's more accurate than top's memory line. - uname – Prints system information;
uname -ashows kernel version and architecture, handy for troubleshooting. - uptime – Shows how long the system has been running and the load average.
- who – Lists who is logged in;
who -agives more detail, including idle times. - last – Shows login history from /var/log/wtmp; useful for security audits.
- dmesg – Prints kernel ring buffer messages;
dmesg | grep errorhelps diagnose hardware issues.
Network Tools
- ping – Sends ICMP echo requests;
ping -c 4limits to four packets, so you don't ping forever. - traceroute – Shows the path packets take to a host;
traceroute -navoids DNS lookups for speed. - curl – Transfers data with URLs;
curl -Ifetches headers only, and-Lfollows redirects. - wget – Downloads files from the web;
wget -cresumes an interrupted download, a feature curl lacks by default. - ssh – Secure shell for remote login;
ssh -pspecifies a port, and-iuses a key file. - scp – Copies files over SSH;
scp -rcopies directories recursively, and it's secure. - rsync – Synchronizes files efficiently;
rsync -avzarchives, compresses, and shows progress. - netstat – Shows network connections and listening ports;
netstat -tulpnshows TCP/UDP listeners with process names. - ss – A modern replacement for netstat;
ss -tulpnis faster and more readable. - nslookup – Queries DNS records;
nslookup example.comgives the IP address, and you can specify a server. - dig – A more powerful DNS tool;
dig example.com ANYshows all records, and it's the standard for debugging.
Archives and Compression
- tar – Archives files;
tar -czf archive.tar.gz dir/creates a compressed archive, and-xzfextracts it. - gzip – Compresses files;
gzip -ddecompresses, andgzip -kkeeps the original file. - zip – Creates and extracts zip archives;
zip -r archive.zip dir/recurses into directories. - unzip – Extracts zip files;
unzip -llists contents without extracting, and-dspecifies a directory.
How to Use This List
Start by picking a task you do often—like checking disk space or copying files—and read the corresponding man page (man df, man cp). Note the options you didn't know, and try one in a safe environment. When you ask an AI for a command, always cross-check the flags with man or --help. Keep this list as a cheat sheet; bookmark it or print it. Over time, you'll internalize the most useful flags and rely less on external help.
Frequently Asked Questions
Why are man pages better than ChatGPT for Linux commands?
Man pages are authoritative and complete, written by the developers who maintain the tools. They include every option, edge case, and warning, while AI models can hallucinate or omit details.
How do I search within a man page?
Press / followed by your search term and Enter. Use n to jump to the next match and N for the previous one.
What's the difference between man and info?
man is the traditional manual, concise and structured. info is a hypertext system with more detailed explanations, often for GNU tools. Start with man; if it's too terse, try info.
How can I remember all these commands?
Don't try. Use apropos to find commands by function, and rely on --help for quick reminders. Practice regularly, and the common ones will stick.
Are there any modern alternatives to these tools?
Yes, tools like bat (a cat clone), fd (a find replacement), and ripgrep (a faster grep) are popular. But the classics are still installed everywhere, so knowing them is essential.
Can I use these commands on macOS?
Most of these are available on macOS by default, though some (like htop) need to be installed via Homebrew. The syntax is largely identical.
Final Thoughts
The terminal has been around for decades because it works. While AI can generate plausible commands, it can't replace the precision and depth of the manual pages. The next time you're about to trust a generated command, take a second to check the man page—it's fast, reliable, and might just teach you something new. Happy hacking.