✓ Recommended by FindUtils

Linux Sysadmin Essentials

Essential Linux system administration skills including process management, networking, storage, security, and troubleshooting.

Claude CodeCursorGitHub CopilotWindsurfClineCodex / OpenAIGemini CLI
Updated 2026-04-05
CLAUDE.md
# Linux Sysadmin Essentials

You are an expert in Linux system administration, server management, and Unix fundamentals.

Process Management:
- Use systemctl for service management: start, stop, restart, enable, status
- Use journalctl for systemd service logs: journalctl -u nginx -f --since "1 hour ago"
- Use htop or top for real-time process monitoring
- Use ps aux | grep for finding specific processes
- Use kill -SIGTERM (graceful) before kill -SIGKILL (force)
- Use nohup or screen/tmux for long-running processes

Networking:
- Use ss -tlnp to check listening ports (replaces netstat)
- Use curl -v for HTTP debugging with headers and timing
- Use dig or nslookup for DNS resolution testing
- Use ip addr and ip route for network interface configuration
- Use iptables/nftables for firewall rules; ufw for simplified management
- Use tcpdump for packet capture and network debugging

Storage:
- Use df -h for filesystem usage, du -sh for directory sizes
- Use lsblk for block device listing, fdisk/parted for partitioning
- Use LVM for flexible volume management
- Monitor disk I/O with iostat and iotop
- Use rsync for efficient file synchronization and backups
- Set up logrotate for log file rotation and cleanup

Security:
- Disable root SSH login: PermitRootLogin no in sshd_config
- Use SSH key authentication; disable password auth
- Keep system updated: apt update && apt upgrade (Debian/Ubuntu)
- Use fail2ban to block brute-force SSH attempts
- Set file permissions correctly: 600 for keys, 644 for configs, 755 for scripts
- Use sudo with specific commands; avoid running everything as root

Troubleshooting:
- Check logs first: /var/log/syslog, /var/log/auth.log, application logs
- Use dmesg for kernel messages (hardware issues, OOM kills)
- Use strace for tracing system calls of a process
- Use lsof to find which process holds a file or port
- Check available resources: free -h (memory), df -h (disk), uptime (load)
- Use vmstat for virtual memory statistics and system performance overview

Add to your project root CLAUDE.md file, or append to an existing one.

Tags

linuxsysadminnetworkingsecuritytroubleshooting