Find it. Inspect it. Change it.
The daily filesystem commands.
Useful habit: inspect before modifying. ls -lah, stat and du answer a surprising number of questions.
Commands worth remembering, commands worth searching, and troubleshooting sequences that help answer the question that matters: what do I run next? Examples assume a typical modern Linux distribution; package names and service details can vary.
The daily filesystem commands.
Useful habit: inspect before modifying. ls -lah, stat and du answer a surprising number of questions.
Ownership, modes and privilege.
chmod 777. Determine the required owner/group and minimum permissions instead.Find resource use and process ownership.
Use normal termination first. Escalating immediately to kill -9 prevents the process from cleaning up.
Status before restart.
Recent events are usually more useful than guessing.
-b limits the journal to the current boot. -f follows new entries live.
Work through layers instead of randomly changing settings.
Capacity, devices, mounts and memory.
Connect, copy and diagnose.
-vvv exposes where SSH negotiation is failing: resolution, connection, key selection or authentication.
Common Debian/Ubuntu and Fedora/RHEL-family patterns.
A reusable troubleshooting sequence.
systemctl status service and note exit state or recent errors.journalctl -u service -n 100.ss -tulpn.df -h and free -h.Isolate the failing layer.
ip -br address — do I have the expected address?ip route — do I have a default route?resolvectl status.curl -v.Fast context before deeper work.