Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

55-Year-Old Linux Tool Revived: ChatGPT Driving Me Back to Man Pages

· 6 min read · Home Tech

In this article
  1. Why Man Pages Still Win
  2. File and Text Manipulation
  3. System Information and Monitoring
  4. Network Tools
  5. Archives and Compression
  6. How to Use This List
  7. Frequently Asked Questions
  8. Final Thoughts

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

  1. man – The manual reader itself; type man ls to see every option, not just the popular ones.
  2. info – A more detailed hypertext alternative to man pages, especially for GNU coreutils.
  3. apropos – Searches man page descriptions by keyword, so you can find the right command when you only remember what it does.
  4. whatis – Gives a one-line summary of a command, perfect for a quick sanity check.
  5. --help – Not a man page, but the built-in quick reference that often answers before you need the full manual.

File and Text Manipulation

  1. ls – Lists files; ls -la reveals hidden files and permissions, which ChatGPT often forgets to mention.
  2. cp – Copies files; use -a to preserve attributes recursively, a flag that's easy to miss in AI summaries.
  3. mv – Moves or renames; it's safer than cp + rm because it's atomic on the same filesystem.
  4. rm – Deletes files; rm -rf is dangerous, and the man page warns you about it in a way AI often doesn't.
  5. mkdir – Creates directories; -p creates parent directories as needed, a lifesaver for nested paths.
  6. touch – Updates timestamps or creates empty files; useful for testing and scripting.
  7. cat – Concatenates files; for large files, less is better, but for quick viewing, cat is fine.
  8. less – A pager that lets you scroll both ways; it's what more wished it could be.
  9. head – Shows the first 10 lines by default; head -n 20 gives more, and it's great for logs.
  10. tail – Shows the last 10 lines; tail -f follows a growing file, essential for monitoring logs.
  11. grep – Searches text using regular expressions; grep -r searches recursively, and -i ignores case.
  12. sed – Stream editor for text transformation; sed 's/old/new/g' replaces all occurrences, a classic.
  13. awk – A programming language for text processing; awk '{print $1}' extracts the first column, perfect for CSV-like data.
  14. cut – Extracts columns or fields; cut -d: -f1 /etc/passwd lists usernames, a quick way to parse files.
  15. sort – Sorts lines; sort -n sorts numerically, which is different from alphabetical sorting.
  16. uniq – Removes duplicate adjacent lines; combine with sort to get unique values across a file.
  17. wc – Counts lines, words, and characters; wc -l gives line count, a common need in scripts.
  18. diff – Compares files line by line; diff -u gives a unified format that's easier to read.
  19. patch – Applies a diff to a file; it's how software updates were distributed before git.
  20. tr – Translates or deletes characters; tr -d '\n' removes newlines, useful for processing.

System Information and Monitoring

  1. ps – Lists running processes; ps aux shows all processes with CPU and memory usage.
  2. top – Displays real-time process activity; press q to quit, and h for help.
  3. htop – An interactive process viewer with a better interface than top; install it if you can.
  4. df – Shows disk space usage; df -h makes it human-readable, a must for checking storage.
  5. du – Shows directory sizes; du -sh * gives a summary of each item in the current directory.
  6. free – Displays memory usage; free -h shows it in human-readable form, and it's more accurate than top's memory line.
  7. uname – Prints system information; uname -a shows kernel version and architecture, handy for troubleshooting.
  8. uptime – Shows how long the system has been running and the load average.
  9. who – Lists who is logged in; who -a gives more detail, including idle times.
  10. last – Shows login history from /var/log/wtmp; useful for security audits.
  11. dmesg – Prints kernel ring buffer messages; dmesg | grep error helps diagnose hardware issues.

Network Tools

  1. ping – Sends ICMP echo requests; ping -c 4 limits to four packets, so you don't ping forever.
  2. traceroute – Shows the path packets take to a host; traceroute -n avoids DNS lookups for speed.
  3. curl – Transfers data with URLs; curl -I fetches headers only, and -L follows redirects.
  4. wget – Downloads files from the web; wget -c resumes an interrupted download, a feature curl lacks by default.
  5. ssh – Secure shell for remote login; ssh -p specifies a port, and -i uses a key file.
  6. scp – Copies files over SSH; scp -r copies directories recursively, and it's secure.
  7. rsync – Synchronizes files efficiently; rsync -avz archives, compresses, and shows progress.
  8. netstat – Shows network connections and listening ports; netstat -tulpn shows TCP/UDP listeners with process names.
  9. ss – A modern replacement for netstat; ss -tulpn is faster and more readable.
  10. nslookup – Queries DNS records; nslookup example.com gives the IP address, and you can specify a server.
  11. dig – A more powerful DNS tool; dig example.com ANY shows all records, and it's the standard for debugging.

Archives and Compression

  1. tar – Archives files; tar -czf archive.tar.gz dir/ creates a compressed archive, and -xzf extracts it.
  2. gzip – Compresses files; gzip -d decompresses, and gzip -k keeps the original file.
  3. zip – Creates and extracts zip archives; zip -r archive.zip dir/ recurses into directories.
  4. unzip – Extracts zip files; unzip -l lists contents without extracting, and -d specifies 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.