Skip to main content
Linux mastery is built on muscle memory. After 25+ years working with RHEL, CentOS, Fedora, Ubuntu, Debian, and FreeBSD systems, the commands below are the ones I reach for every single day. This page is deliberately dense — it is a reference, not a tutorial. If a flag or idiom looks unfamiliar, run man <command> to dig deeper.

Filesystem Navigation

Use find when you need real-time results or complex filters. Use locate when you want speed and the file hasn’t changed recently. Run sudo updatedb in a cron job nightly to keep the index fresh.

File Operations

rm -rf with a misplaced space or variable is catastrophic. Always double-check the path. Consider trash-cli on workstations, or at minimum alias rm='rm -i' in your .bashrc.

Text Processing

This is where Linux really shines. Master these tools and you rarely need a dedicated log-analysis GUI.

Process Management

Prefer kill -15 (SIGTERM) first — it gives the process a chance to flush buffers and clean up. Only escalate to kill -9 (SIGKILL) if the process doesn’t respond after a few seconds.

System Information


Package Management Quick Reference


User and Group Management

Never edit /etc/sudoers directly. Always use visudo, which validates syntax before saving. A broken sudoers file can lock you out of root access.

Bash Scripting

Turn these one-liners into reusable, robust shell scripts.

Networking

Network diagnostics, SSH, firewalls, and DNS troubleshooting.

Troubleshooting

Systematic workflows for CPU, memory, disk, and service issues.

DevOps Overview

CI/CD, containers, and orchestration context for these commands.
Last modified on June 9, 2026