Linux Administration
Status
Master Plan - Comprehensive init.md complete, ready for SKILL.md implementation
Linux administration remains critical in the cloud-native era. This skill covers systemd service management, process monitoring, filesystem operations, networking fundamentals, and production troubleshooting patterns.
Scope
This skill teaches:
- Systemd Service Management - Creating units, service lifecycle, timers (modern cron)
- Process Management - Monitoring (ps, top, htop), control (kill, nice), resource limits
- Filesystem Operations - Mount management, disk usage, permissions, quotas
- Networking Fundamentals - Interface config, routing, firewall basics, DNS resolution
- Log Management - journalctl, log rotation, log aggregation
- Performance Tuning - CPU, memory, disk I/O optimization
- Troubleshooting - Systematic debugging for production issues
Key Components
Systemd Service Management
Core Concepts:
- Units: Services, timers, targets, sockets, mounts
- Unit Files:
/etc/systemd/system/(custom),/lib/systemd/system/(package) - Service Lifecycle: start, stop, restart, reload, enable, disable
- Timers: Modern replacement for cron with better logging
Common Commands:
systemctl start service
systemctl status service
systemctl enable service # Start on boot
journalctl -u service -f # Follow service logs
systemctl list-timers # List scheduled tasks
Process Management
Monitoring:
ps aux- List all processestop/htop- Interactive process viewerpgrep/pidof- Find process IDs/proc/[pid]/- Process information filesystem
Control:
kill- Send signals (SIGTERM, SIGKILL)nice/renice- Process prioritynohup- Run process immune to hangupssystemd-run- Run transient services
Filesystem Operations
Disk Management:
df -h- Disk free spacedu -sh *- Directory sizeslsblk- List block devicesmount/umount- Mount filesystems
Permissions:
chmod- Change file permissions (755, 644)chown- Change file ownershipsetfacl/getfacl- Access control lists
Quotas:
- User/group disk quotas
- Soft/hard limits
- Grace periods
Networking Fundamentals
Configuration:
ip addr- Show/configure IP addressesip route- Show/configure routing tabless- Socket statistics (modernnetstat)nmcli- NetworkManager CLI
Diagnostics:
ping- Test connectivitytraceroute- Trace network pathdig/nslookup- DNS queriestcpdump- Packet capture
Firewall:
firewalld(RHEL/CentOS/Fedora)ufw(Ubuntu/Debian)iptables(legacy, still used)
Decision Framework
Which Init System?
2025 Reality:
Almost all distributions use systemd
Exceptions: Alpine (OpenRC), some containers
Use systemd unless:
- Alpine Linux (lightweight containers)
- Legacy system (pre-2015)
- Embedded systems (custom init)
Performance Tuning Priority:
Where's the bottleneck?
CPU bound? → nice/renice, CPU affinity
Memory bound? → Swap tuning, memory limits
Disk I/O? → I/O scheduler, filesystem tuning
Network? → TCP tuning, NIC ring buffers
Monitor first:
top/htop → CPU/memory
iostat → Disk I/O
sar → Historical trends
netstat/ss → Network connections
Tool Recommendations
System Monitoring
Process Monitoring:
top- Classic process viewerhtop- Interactive, color-codedatop- Advanced with history
Performance Analysis:
vmstat- Virtual memory statsiostat- I/O statisticssar- System activity reporterperf- Performance profiling
Log Management
journalctl - Systemd journal
journalctl -u service # Service logs
journalctl -f # Follow all logs
journalctl --since today # Filter by time
journalctl -p err # Error priority and above
Traditional Logs:
/var/log/syslogor/var/log/messages/var/log/auth.log- Authenticationlogrotate- Log rotation automation
Package Management
RHEL/CentOS/Fedora: dnf/yum, rpm
Debian/Ubuntu: apt, dpkg
Arch: pacman
Universal: snap, flatpak (sandboxed)
Integration Points
With Other Skills:
managing-configuration- Automate Linux configuration at scale (Ansible)security-hardening- Apply CIS benchmarks, SELinux, AppArmoroperating-kubernetes- Understand K8s node OS layershell-scripting- Automate administrative tasksimplementing-observability- Integrate with monitoring (Prometheus, Grafana)
Workflow Example:
Manual Admin → Script → Ansible → IaC
│ │ │ │
▼ ▼ ▼ ▼
Learn system Automate Scale to Provision
commands tasks 100s infrastructure
Learn More
- Full Master Plan (init.md)
- Related:
managing-configuration,security-hardening,shell-scripting