A guide to common debugging techniques and tools for troubleshooting systems.
tail -f /var/log/<logfile>
(Linux) or Event Viewer (Windows).ping
to test network connectivity.traceroute
(Linux) or tracert
(Windows) to trace network paths.top
or htop
- Monitor system processes and resource usage.df -h
- Check disk space usage.free -m
- Check memory usage.netstat -tuln
- List open ports and listening services.curl -v <url>
- Test HTTP connections.nslookup <domain>
or dig <domain>
- DNS resolution.strace
(Linux) to trace system calls.gdb
for debugging compiled applications.docker ps
- List running containers.docker logs <container_id>
- View logs for a specific container.docker exec -it <container_id> /bin/bash
- Access a running container’s shell.docker inspect <container_id>
- Get detailed information about a container.sfc /scannow
to check and repair system files.chkdsk /f
to check and fix disk errors.ipconfig /all
(Windows) or iwconfig
(Linux) to check Wi-Fi settings.ping
to test connectivity to the router and external sites.bleachbit
(Linux).mpcmdrun.exe
to run a full scan.choco upgrade all
to update all installed packages.choco outdated
to check for outdated packages.choco list --local-only
to list all installed packages.winget upgrade Microsoft.Powershell
.