Read the error
Copy the exact message; it is the best search term.
Check the logs
journalctl -b -p err shows errors since the last boot; dmesg shows kernel messages.
Check the service
systemctl status name shows whether a service is running and why it stopped.
Check resources
df -h for disk, free -h for memory, top for busy processes.
Change one thing at a time
And note what you changed.
Ask well
Include your distribution, version, what you tried and the exact errors.
Narrow the problem before you change anything
A vague problem is hard to fix. Start by deciding what is actually broken.
- Does it fail for one user or every user?
- Only in the desktop, or also from a text console?
- Only on this machine, or on others running the same version?
- Every time, or only after suspend, boot, or a network change?
These questions tell you where to look. If a program works for a new user account, the fault is usually in that user's home directory: shell startup files, desktop settings, caches, or permissions. If it fails only in the graphical session, switch to a virtual console and test there. A command that works in a clean login shell but not in your usual terminal often points to a bad alias, function, or environment variable.
When a command behaves oddly, check exactly what will run with type name or command -v name. For scripts and installers, echo $? immediately afterwards tells you whether the last command reported failure. If sudo changes the result, compare environment and access. A missing group membership, unreadable file, or wrong ownership can look like an application bug. The pages on command line and permissions cover the basics behind these checks.
It also helps to record the smallest reliable way to reproduce the fault. Write down the exact command, directory, input file, and expected result. Good bug reports begin with a recipe another person can follow.
Trace recent changes and keep a rollback path
Many Linux problems begin just after a change: a package upgrade, an edited config file, a new mount, a shell tweak, or a permissions cleanup. Rather than guessing, look for what changed closest to the time the fault appeared.
Start with your own history and timestamps:
historyfor recent shell commandsls -lt /etcto spot freshly edited system configurationstat /path/to/filewhen you need exact modification times
Before you edit anything, save a copy. cp file file.bak is simple and often enough. After each change, use diff -u file.bak file so you can see precisely what you altered. This is especially helpful with service files, network settings, and startup scripts. Avoid editing several files and rebooting; if the system comes back worse, you will not know which change mattered.
If you suspect an update, check your package manager's history and the versions currently installed. A recent package change does not prove blame, but it gives you a short list. The package management page explains the tools each distribution uses.
Kernel-related failures deserve separate suspicion. If sound, Wi-Fi, graphics, or suspend broke immediately after an update, try booting an older kernel from the boot menu if one is still available. If that restores the system, keep notes rather than removing random packages.
Troubleshoot network faults layer by layer
Network failures are easier when you separate them into layers: hardware, address, route, name resolution, and service. Do not treat every network problem as a DNS problem, and do not assume a bad cable means the whole stack is down.
Start with the interface itself. ip link shows whether it exists and whether it is up. ip addr shows the address actually assigned. If a wired interface stays down, check cable and link lights. If Wi-Fi disappears entirely, the driver, firmware, or radio switch may be the real issue.
Next, check the route. ip route should show a default route for ordinary internet access. If you can reach the default gateway but not anything beyond it, the problem is usually upstream. If you can reach an IP address but not a hostname, suspect DNS rather than the network path. getent hosts hostname is a quick way to test name resolution using the system's normal resolver.
Then check the service, not just the connection. A web or SSH service may be listening only on 127.0.0.1, which works locally but not from another machine. ss -ltnp shows listening TCP ports and, on some systems, may need root to show every process name. If the service is listening on the right address and port, a firewall or router rule may still block access. For more background on addresses, routes, and DNS, see networking.
