View System Logs
# View the latest entries in syslog
tail -f /var/log/syslog
# Or, for more specific logs, use:
journalctl -xe
Monitor Real-Time Network Traffic
sudo iftop # Needs to be installed; visualizes incoming/outgoing traffic by host
Network Troubleshooting: Check Open Ports
# List all listening ports and their associated services
sudo netstat -tuln
# Or, using `ss` (faster on modern Linux distributions)
sudo ss -tuln