The Linux Commands Every IT Professional Should Know

A practical reference of the Linux commands that matter for diagnosis and administration, grouped by the question each one answers.

Book a Consultation
Min read
2
Category
Tutorial
In short: Roughly twenty Linux commands cover most day-to-day administration and troubleshooting. Learn them grouped by the question they answer, what is running, what is using resources, what changed, what is in the logs, rather than as an alphabetical list.

Command lists are easy to find and hard to retain. What makes commands stick is attaching each one to a question you will actually ask while something is broken.

What is running, and what is it doing?

CommandAnswers
ps auxWhat processes exist right now
top / htopWhat is consuming CPU and memory, live
systemctl status <unit>Is this service running, and why did it stop
journalctl -u <unit> -n 100What did this service say before it failed

What is using resources?

CommandAnswers
df -hWhich filesystem is full
du -sh *What inside this directory is large
free -hHow much memory is actually available
iostat / vmstatIs the bottleneck disk or CPU

What is happening on the network?

CommandAnswers
ip a / ip rWhat addresses and routes does this host have
ss -tulpnWhat is listening, and which process owns it
dig <name>What does DNS actually return
curl -v <url>What happens on the wire for this request

What is in the files, and what changed?

CommandAnswers
grep -rn <pattern> <path>Where does this string appear
find <path> -mtime -1What changed in the last day
tail -f <file>What is being written right now
diff -u a bWhat is different between these two files

How to actually retain them

  1. Learn the four groups above as questions, not as a list
  2. When you use a command successfully during a real problem, write the line down
  3. Read the man page for one command a week rather than memorizing flags
  4. Replace any sequence you type more than three times with a small script

Fluency comes from diagnosis, not from flashcards. Break something in a virtual machine on purpose and fix it, that single habit does more than any reference list.

Where to go next

Turn the reading into something you can show

Courses end in graded projects and internships end in documented deliverables, both give you something concrete to talk about.