Troubleshooting · Starter
The basics: what a thing is and what it's for.
Which command gives a live, continuously updating view of running processes and their CPU/memory usage?
What does the `ps aux` command do?
Where do most traditional Linux system and application logs live by default?
What does a non-zero exit code from a shell command typically indicate?
When a web service seems to be 'not responding', what's typically the very first thing to check?
Which command shows how much free disk space is available on each mounted filesystem?
What is the purpose of the `ping` command?
What does the `tail -f` command do, and why is it commonly used when troubleshooting?
What is the purpose of the `grep` command when searching log files?
What does `ls -l` show about a file that a plain `ls` does not?
What does the `kill` command do by default (with no signal flag specified)?
What is the purpose of the `whoami` and `id` commands when troubleshooting a permissions-related issue?
What does an HTTP 500 status code generally indicate, as opposed to a 404?
Why is it useful to check a service's recent restart count/history when troubleshooting intermittent failures?
What is the first, most basic thing to check when a scheduled cron job appears to not be running at all?
What does the `free -h` command show, and why is it checked when troubleshooting slowness?
What is the purpose of `chmod` and `chown`, and when would you reach for them while troubleshooting?
Why might checking the system clock/timezone be relevant when logs from two different servers seem to disagree about event ordering?
What does restarting a computer/service accomplish, in the simplest and most common case, when troubleshooting?
What is the purpose of checking a service's configuration file for typos or incorrect values as an early troubleshooting step?