🐧 Linux System Administration & Ops Guide
Essential Linux commands for monitoring system logs, network sockets, active processes, and disk utilization.
1. Systemd Logs & Service Operations
# Stream Real-Time Logs for Service
journalctl -u nginx -f --since "1 hour ago"
# Restart & Enable Service at Boot
sudo systemctl restart nginx && sudo systemctl enable nginx
2. Network & Listening Sockets
# List Open Listening TCP/UDP Ports & Process IDs
sudo netstat -tulpn | grep LISTEN
# Or modern ss replacement:
sudo ss -tulpn