[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M781YFAGVR9N7S1S8GZHC0B2":3,"skill-same:01M781YFAGVR9N7S1S8GZHC0B2":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M781YFAGVR9N7S1S8GZHC0B2","administering-linux",null,"Manage Linux systems covering systemd services, process management, filesystems, networking, performance tuning, and troubleshooting. Use when deploying applications, optimizing server performance, diagnosing production issues, or managing users and security on Linux servers.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fskills_sh\u002Fs\u002Fskills-sh_ancoleman_ai-design-components_administering-linux\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: administering-linux\ndescription: Manage Linux systems covering systemd services, process management, filesystems, networking, performance tuning, and troubleshooting. Use when deploying applications, optimizing server performance, diagnosing production issues, or managing users and security on Linux servers.\n---\n\n# Linux Administration\n\nComprehensive Linux system administration for managing servers, deploying applications, and troubleshooting production issues in modern cloud-native environments.\n\n## Purpose\n\nThis skill teaches fundamental and intermediate Linux administration for DevOps engineers, SREs, backend developers, and platform engineers. Focus on systemd-based distributions (Ubuntu, RHEL, Debian, Fedora) covering service management, process monitoring, filesystem operations, user administration, performance tuning, log analysis, and network configuration.\n\nModern infrastructure requires solid Linux fundamentals even with containerization. Container hosts run Linux, Kubernetes nodes need optimization, and troubleshooting production issues requires understanding systemd, processes, and logs.\n\n**Not Covered:**\n- Advanced networking (BGP, OSPF) - see `network-architecture` skill\n- Deep security hardening (compliance, pentesting) - see `security-hardening` skill\n- Configuration management at scale (Ansible, Puppet) - see `configuration-management` skill\n- Container orchestration - see `kubernetes-operations` skill\n\n## When to Use This Skill\n\nUse when deploying custom applications, troubleshooting slow systems, investigating service failures, optimizing workloads, managing users, configuring SSH, monitoring disk space, scheduling tasks, diagnosing network issues, or applying performance tuning.\n\n## Quick Start\n\n### Essential Commands\n\n**Service Management:**\n```bash\nsystemctl start nginx              # Start service\nsystemctl stop nginx               # Stop service\nsystemctl restart nginx            # Restart service\nsystemctl status nginx             # Check status\nsystemctl enable nginx             # Enable at boot\njournalctl -u nginx -f             # Follow service logs\n```\n\n**Process Monitoring:**\n```bash\ntop                                # Interactive process monitor\nhtop                               # Enhanced process monitor\nps aux | grep process_name         # Find specific process\nkill -15 PID                       # Graceful shutdown (SIGTERM)\nkill -9 PID                        # Force kill (SIGKILL)\n```\n\n**Disk Usage:**\n```bash\ndf -h                              # Filesystem usage\ndu -sh \u002Fpath\u002Fto\u002Fdir                # Directory size\nncdu \u002Fpath                         # Interactive disk analyzer\n```\n\n**Log Analysis:**\n```bash\njournalctl -f                      # Follow all logs\njournalctl -u service -f           # Follow service logs\njournalctl --since \"1 hour ago\"    # Filter by time\njournalctl -p err                  # Show errors only\n```\n\n**User Management:**\n```bash\nuseradd -m -s \u002Fbin\u002Fbash username   # Create user with home dir\npasswd username                    # Set password\nusermod -aG sudo username          # Add to sudo group\nuserdel -r username                # Delete user and home dir\n```\n\n## Core Concepts\n\n### Systemd Architecture\n\nSystemd is the standard init system and service manager. Systemd units define services, timers, targets, and other system resources.\n\n**Unit File Locations (priority order):**\n- `\u002Fetc\u002Fsystemd\u002Fsystem\u002F` - Custom units (highest priority)\n- `\u002Frun\u002Fsystemd\u002Fsystem\u002F` - Runtime units (transient)\n- `\u002Flib\u002Fsystemd\u002Fsystem\u002F` - System-provided units (don't modify)\n\n**Key Unit Types:** `.service` (services), `.timer` (scheduled tasks), `.target` (unit groups), `.socket` (socket-activated)\n\n**Essential systemctl Commands:**\n```bash\nsystemctl daemon-reload            # Reload unit files after changes\nsystemctl list-units --type=service\nsystemctl list-timers              # Show all timers\nsystemctl cat nginx.service        # Show unit file content\nsystemctl edit nginx.service       # Create override file\n```\n\nFor detailed systemd reference, see `references\u002Fsystemd-guide.md`.\n\n### Process Management\n\nProcesses are running programs with unique PIDs. Understanding process states, signals, and resource usage is essential for troubleshooting.\n\n**Process States:** R (running), S (sleeping), D (uninterruptible sleep\u002FI\u002FO), Z (zombie), T (stopped)\n\n**Common Signals:** SIGTERM (15) graceful, SIGKILL (9) force, SIGHUP (1) reload config\n\n**Process Priority:**\n```bash\nnice -n 10 command                 # Start with lower priority\nrenice -n 5 -p PID                 # Change priority of running process\n```\n\n### Filesystem Hierarchy\n\nEssential directories: `\u002F` (root), `\u002Fetc\u002F` (config), `\u002Fvar\u002F` (variable data), `\u002Fopt\u002F` (optional software), `\u002Fusr\u002F` (user programs), `\u002Fhome\u002F` (user directories), `\u002Ftmp\u002F` (temporary), `\u002Fboot\u002F` (boot loader)\n\n**Filesystem Types Quick Reference:**\n- **ext4** - General purpose (default)\n- **XFS** - Large files, databases (RHEL default)\n- **Btrfs** - Snapshots, copy-on-write\n- **ZFS** - Enterprise, data integrity, NAS\n\nFor filesystem management details including LVM and RAID, see `references\u002Ffilesystem-management.md`.\n\n### Package Management\n\n**Ubuntu\u002FDebian (apt):**\n```bash\napt update && apt upgrade          # Update system\napt install package                # Install package\napt remove package                 # Remove package\napt search keyword                 # Search packages\n```\n\n**RHEL\u002FCentOS\u002FFedora (dnf):**\n```bash\ndnf update                         # Update all packages\ndnf install package                # Install package\ndnf remove package                 # Remove package\ndnf search keyword                 # Search packages\n```\n\nUse native package managers for system services; snap\u002Fflatpak for desktop apps and cross-distro compatibility.\n\n## Decision Frameworks\n\n### Troubleshooting Performance Issues\n\n**Investigation Workflow:**\n\n1. **Identify bottleneck:**\n   ```bash\n   top                             # Quick overview\n   uptime                          # Load averages\n   ```\n\n2. **CPU Issues (usage >80%):**\n   ```bash\n   top                             # Press Shift+P to sort by CPU\n   ps aux --sort=-%cpu | head\n   ```\n\n3. **Memory Issues (swap used):**\n   ```bash\n   free -h                         # Memory usage\n   top                             # Press Shift+M to sort by memory\n   ```\n\n4. **Disk I\u002FO Issues (high wa%):**\n   ```bash\n   iostat -x 1                     # Disk statistics\n   iotop                           # I\u002FO by process\n   ```\n\n5. **Network Issues:**\n   ```bash\n   ss -tunap                       # Active connections\n   iftop                           # Bandwidth monitor\n   ```\n\nFor comprehensive troubleshooting, see `references\u002Ftroubleshooting-guide.md`.\n\n### Filesystem Selection\n\n**Quick Decision:**\n- **Default\u002FGeneral** → ext4\n- **Database servers** → XFS\n- **Large file storage** → XFS or ZFS\n- **NAS\u002FFile server** → ZFS\n- **Need snapshots** → Btrfs or ZFS\n\n## Common Workflows\n\n### Creating a Systemd Service\n\n**Step 1: Create unit file**\n```bash\nsudo nano \u002Fetc\u002Fsystemd\u002Fsystem\u002Fmyapp.service\n```\n\n**Step 2: Unit file content**\n```ini\n[Unit]\nDescription=My Web Application\nAfter=network.target postgresql.service\nRequires=postgresql.service\n\n[Service]\nType=simple\nUser=myapp\nGroup=myapp\nWorkingDirectory=\u002Fopt\u002Fmyapp\nEnvironment=\"PORT=8080\"\nExecStart=\u002Fopt\u002Fmyapp\u002Fbin\u002Fserver\nExecReload=\u002Fbin\u002Fkill -HUP $MAINPID\nRestart=on-failure\nRestartSec=5s\nStandardOutput=journal\n\n# Security hardening\nPrivateTmp=true\nNoNewPrivileges=true\nProtectSystem=strict\nReadWritePaths=\u002Fvar\u002Flib\u002Fmyapp\n\n[Install]\nWantedBy=multi-user.target\n```\n\n**Step 3: Deploy and start**\n```bash\nsudo useradd -r -s \u002Fbin\u002Ffalse myapp\nsudo mkdir -p \u002Fvar\u002Flib\u002Fmyapp\nsudo chown myapp:myapp \u002Fvar\u002Flib\u002Fmyapp\nsudo systemctl daemon-reload\nsudo systemctl enable myapp.service\nsudo systemctl start myapp.service\nsudo systemctl status myapp.service\n```\n\nFor complete examples, see `examples\u002Fsystemd-units\u002F`.\n\n### Systemd Timer (Cron Replacement)\n\nCreate service and timer units for scheduled tasks. Timer unit specifies `OnCalendar=` schedule and `Persistent=true` for missed jobs. Service unit has `Type=oneshot`. See `examples\u002Fsystemd-units\u002Fbackup.timer` and `backup.service` for complete examples.\n\n### SSH Hardening\n\n**Generate SSH key:**\n```bash\nssh-keygen -t ed25519 -C \"admin@example.com\"\nssh-copy-id admin@server\n```\n\n**Harden sshd_config:**\n```bash\nsudo nano \u002Fetc\u002Fssh\u002Fsshd_config\n```\n\nKey settings:\n```bash\nPermitRootLogin no\nPasswordAuthentication no\nPubkeyAuthentication yes\nMaxAuthTries 3\nAllowUsers admin deploy\nX11Forwarding no\nPort 2222                          # Optional\n```\n\n**Apply changes:**\n```bash\nsudo sshd -t                       # Test\nsudo systemctl restart sshd        # Apply (keep backup session!)\n```\n\nFor complete SSH configuration, see `examples\u002Fconfigs\u002Fsshd_config.hardened` and `references\u002Fsecurity-hardening.md`.\n\n### Performance Tuning\n\nConfigure sysctl parameters in `\u002Fetc\u002Fsysctl.d\u002F99-custom.conf` for network tuning (tcp buffers, BBR congestion control), memory management (swappiness, cache pressure), and file descriptors. Set ulimits in `\u002Fetc\u002Fsecurity\u002Flimits.conf` for nofile and nproc. Configure I\u002FO schedulers and CPU governors. For comprehensive tuning, see `references\u002Fperformance-tuning.md` and `examples\u002Fconfigs\u002F` for templates.\n\n### Log Investigation\n\nUse `systemctl status myapp` and `journalctl -u myapp` to investigate issues. Filter logs by time `--since`, severity `-p err`, or search patterns with `grep`. Correlate with system metrics using `top`, `df -h`, `free -h`. Check for OOM kills with `journalctl -k | grep -i oom`. For detailed workflows, see `references\u002Ftroubleshooting-guide.md`.\n\n### Essential Commands\n\n**Interface Management:**\n```bash\nip addr show                       # Show all interfaces\nip link set eth0 up                # Bring interface up\nip addr add 192.168.1.100\u002F24 dev eth0\n```\n\n**Routing:**\n```bash\nip route show                      # Show routing table\nip route get 8.8.8.8               # Show route to IP\nip route add 10.0.0.0\u002F24 via 192.168.1.1\n```\n\n**Socket Statistics:**\n```bash\nss -tunap                          # All TCP\u002FUDP connections\nss -tlnp                           # Listening TCP ports\nss -ulnp                           # Listening UDP ports\nss -tnp state established          # Established connections\n```\n\n### Firewall Configuration\n\n**Ubuntu (ufw):**\n```bash\nsudo ufw status\nsudo ufw enable\nsudo ufw allow 22\u002Ftcp              # Allow SSH\nsudo ufw allow 80\u002Ftcp              # Allow HTTP\nsudo ufw allow from 192.168.1.0\u002F24 # Allow from subnet\nsudo ufw default deny incoming\n```\n\n**RHEL\u002FCentOS (firewalld):**\n```bash\nfirewall-cmd --state\nfirewall-cmd --list-all\nfirewall-cmd --add-service=http --permanent\nfirewall-cmd --add-port=8080\u002Ftcp --permanent\nfirewall-cmd --reload\n```\n\nFor complete network configuration including netplan, NetworkManager, and DNS, see `references\u002Fnetwork-configuration.md`.\n\n## Scheduled Tasks\n\n### Cron Syntax\n\n```bash\ncrontab -e                         # Edit user crontab\n\n# Format: minute hour day month weekday command\n0 2 * * * \u002Fusr\u002Flocal\u002Fbin\u002Fbackup.sh              # Daily at 2:00 AM\n*\u002F5 * * * * \u002Fusr\u002Flocal\u002Fbin\u002Fcheck-health.sh      # Every 5 minutes\n0 3 * * 0 \u002Fusr\u002Flocal\u002Fbin\u002Fweekly-cleanup.sh      # Weekly Sunday 3 AM\n@reboot \u002Fusr\u002Flocal\u002Fbin\u002Fstartup-script.sh        # Run at boot\n```\n\n### Systemd Timer Calendar Syntax\n\n```bash\nOnCalendar=daily                   # Every day at midnight\nOnCalendar=*-*-* 02:00:00          # Daily at 2:00 AM\nOnCalendar=Mon *-*-* 09:00:00      # Every Monday at 9 AM\nOnCalendar=*-*-01 00:00:00         # 1st of every month\nOnBootSec=5min                     # 5 minutes after boot\n```\n\n## Essential Tools\n\n### Process Monitoring\n- `top`, `htop` - Real-time process monitor\n- `ps` - Report process status\n- `pgrep\u002Fpkill` - Find\u002Fkill by name\n\n### Log Analysis\n- `journalctl` - Query systemd journal\n- `grep` - Search text patterns\n- `tail -f` - Follow log files\n\n### Disk Management\n- `df` - Disk space usage\n- `du` - Directory space usage\n- `lsblk` - List block devices\n- `ncdu` - Interactive disk analyzer\n\n### Network Tools\n- `ip` - Network configuration\n- `ss` - Socket statistics\n- `ping` - Test connectivity\n- `dig\u002Fnslookup` - DNS queries\n- `tcpdump` - Packet capture\n\n### System Monitoring\n- **Netdata** - Real-time web dashboard\n- **Prometheus + Grafana** - Metrics collection\n- **ELK Stack** - Centralized logging\n\n## Integration with Other Skills\n\n### Kubernetes Operations\nLinux administration is the foundation for Kubernetes node management. Node optimization (sysctl tuning), kubelet as systemd service, container logs via journald, cgroups for resource limits.\n\nExample:\n```bash\n# \u002Fetc\u002Fsysctl.d\u002F99-kubernetes.conf\nnet.bridge.bridge-nf-call-iptables = 1\nnet.ipv4.ip_forward = 1\n```\n\nFor Kubernetes-specific operations, see `kubernetes-operations` skill.\n\n### Configuration Management\nLinux administration provides knowledge; configuration management automates it. Ansible playbooks automate systemd service creation and system tuning.\n\nFor automation at scale, see `configuration-management` skill.\n\n### Security Hardening\nThis skill covers SSH and firewall basics. For advanced security (MFA, certificates, CIS benchmarks, compliance), see `security-hardening` skill.\n\n### CI\u002FCD Pipelines\nCI\u002FCD pipelines deploy to Linux servers using these skills. Uses systemctl for deployment and journalctl for monitoring.\n\nFor deployment automation, see `building-ci-pipelines` skill.\n\n## Reference Materials\n\n### Detailed Guides\n- **`references\u002Fsystemd-guide.md`** - Comprehensive systemd reference (unit files, dependencies, targets)\n- **`references\u002Fperformance-tuning.md`** - Complete sysctl, ulimits, cgroups, I\u002FO scheduler guide\n- **`references\u002Ffilesystem-management.md`** - LVM, RAID, filesystem types, permissions\n- **`references\u002Fnetwork-configuration.md`** - ip\u002Fss commands, netplan, NetworkManager, DNS, firewall\n- **`references\u002Fsecurity-hardening.md`** - SSH hardening, firewall, SELinux\u002FAppArmor basics\n- **`references\u002Ftroubleshooting-guide.md`** - Common issues, diagnostic workflows, solutions\n\n### Examples\n- **`examples\u002Fsystemd-units\u002F`** - Service, timer, and target unit files\n- **`examples\u002Fscripts\u002F`** - Backup, health check, and maintenance scripts\n- **`examples\u002Fconfigs\u002F`** - sshd_config, sysctl.conf, logrotate examples\n\n## Distribution-Specific Notes\n\n### Ubuntu\u002FDebian\nPackage Manager: `apt`, Network: `netplan`, Firewall: `ufw`, Repositories: `\u002Fetc\u002Fapt\u002Fsources.list`\n\n### RHEL\u002FCentOS\u002FFedora\nPackage Manager: `dnf`, Network: `NetworkManager`, Firewall: `firewalld`, Repositories: `\u002Fetc\u002Fyum.repos.d\u002F`, SELinux enabled by default\n\n### Arch Linux\nPackage Manager: `pacman`, Network: `NetworkManager`, Rolling release, AUR for community packages\n\n## Additional Resources\n\n**Official Documentation:**\n- systemd: https:\u002F\u002Fsystemd.io\u002F\n- Linux kernel: https:\u002F\u002Fkernel.org\u002Fdoc\u002F\n\n**Related Skills:**\n- `kubernetes-operations` - Container orchestration on Linux\n- `configuration-management` - Automate Linux admin at scale\n- `security-hardening` - Advanced security and compliance\n- `building-ci-pipelines` - Deploy via CI\u002FCD\n- `performance-engineering` - Deep performance analysis\n","# Linux Administration\n\nComprehensive Linux system administration for managing servers, deploying applications, and troubleshooting production issues in modern cloud-native environments.\n\n## Purpose\n\nThis skill teaches fundamental and intermediate Linux administration for DevOps engineers, SREs, backend developers, and platform engineers. Focus on systemd-based distributions (Ubuntu, RHEL, Debian, Fedora) covering service management, process monitoring, filesystem operations, user administration, performance tuning, log analysis, and network configuration.\n\nModern infrastructure requires solid Linux fundamentals even with containerization. Container hosts run Linux, Kubernetes nodes need optimization, and troubleshooting production issues requires understanding systemd, processes, and logs.\n\n**Not Covered:**\n- Advanced networking (BGP, OSPF) - see `network-architecture` skill\n- Deep security hardening (compliance, pentesting) - see `security-hardening` skill\n- Configuration management at scale (Ansible, Puppet) - see `configuration-management` skill\n- Container orchestration - see `kubernetes-operations` skill\n\n## When to Use This Skill\n\nUse when deploying custom applications, troubleshooting slow systems, investigating service failures, optimizing workloads, managing users, configuring SSH, monitoring disk space, scheduling tasks, diagnosing network issues, or applying performance tuning.\n\n## Quick Start\n\n### Essential Commands\n\n**Service Management:**\n```bash\nsystemctl start nginx              # Start service\nsystemctl stop nginx               # Stop service\nsystemctl restart nginx            # Restart service\nsystemctl status nginx             # Check status\nsystemctl enable nginx             # Enable at boot\njournalctl -u nginx -f             # Follow service logs\n```\n\n**Process Monitoring:**\n```bash\ntop                                # Interactive process monitor\nhtop                               # Enhanced process monitor\nps aux | grep process_name         # Find specific process\nkill -15 PID                       # Graceful shutdown (SIGTERM)\nkill -9 PID                        # Force kill (SIGKILL)\n```\n\n**Disk Usage:**\n```bash\ndf -h                              # Filesystem usage\ndu -sh \u002Fpath\u002Fto\u002Fdir                # Directory size\nncdu \u002Fpath                         # Interactive disk analyzer\n```\n\n**Log Analysis:**\n```bash\njournalctl -f                      # Follow all logs\njournalctl -u service -f           # Follow service logs\njournalctl --since \"1 hour ago\"    # Filter by time\njournalctl -p err                  # Show errors only\n```\n\n**User Management:**\n```bash\nuseradd -m -s \u002Fbin\u002Fbash username   # Create user with home dir\npasswd username                    # Set password\nusermod -aG sudo username          # Add to sudo group\nuserdel -r username                # Delete user and home dir\n```\n\n## Core Concepts\n\n### Systemd Architecture\n\nSystemd is the standard init system and service manager. Systemd units define services, timers, targets, and other system resources.\n\n**Unit File Locations (priority order):**\n- `\u002Fetc\u002Fsystemd\u002Fsystem\u002F` - Custom units (highest priority)\n- `\u002Frun\u002Fsystemd\u002Fsystem\u002F` - Runtime units (transient)\n- `\u002Flib\u002Fsystemd\u002Fsystem\u002F` - System-provided units (don't modify)\n\n**Key Unit Types:** `.service` (services), `.timer` (scheduled tasks), `.target` (unit groups), `.socket` (socket-activated)\n\n**Essential systemctl Commands:**\n```bash\nsystemctl daemon-reload            # Reload unit files after changes\nsystemctl list-units --type=service\nsystemctl list-timers              # Show all timers\nsystemctl cat nginx.service        # Show unit file content\nsystemctl edit nginx.service       # Create override file\n```\n\nFor detailed systemd reference, see `references\u002Fsystemd-guide.md`.\n\n### Process Management\n\nProcesses are running programs with unique PIDs. Understanding process states, signals, and resource usage is essential for troubleshooting.\n\n**Process States:** R (running), S (sleeping), D (uninterruptible sleep\u002FI\u002FO), Z (zombie), T (stopped)\n\n**Common Signals:** SIGTERM (15) graceful, SIGKILL (9) force, SIGHUP (1) reload config\n\n**Process Priority:**\n```bash\nnice -n 10 command                 # Start with lower priority\nrenice -n 5 -p PID                 # Change priority of running process\n```\n\n### Filesystem Hierarchy\n\nEssential directories: `\u002F` (root), `\u002Fetc\u002F` (config), `\u002Fvar\u002F` (variable data), `\u002Fopt\u002F` (optional software), `\u002Fusr\u002F` (user programs), `\u002Fhome\u002F` (user directories), `\u002Ftmp\u002F` (temporary), `\u002Fboot\u002F` (boot loader)\n\n**Filesystem Types Quick Reference:**\n- **ext4** - General purpose (default)\n- **XFS** - Large files, databases (RHEL default)\n- **Btrfs** - Snapshots, copy-on-write\n- **ZFS** - Enterprise, data integrity, NAS\n\nFor filesystem management details including LVM and RAID, see `references\u002Ffilesystem-management.md`.\n\n### Package Management\n\n**Ubuntu\u002FDebian (apt):**\n```bash\napt update && apt upgrade          # Update system\napt install package                # Install package\napt remove package                 # Remove package\napt search keyword                 # Search packages\n```\n\n**RHEL\u002FCentOS\u002FFedora (dnf):**\n```bash\ndnf update                         # Update all packages\ndnf install package                # Install package\ndnf remove package                 # Remove package\ndnf search keyword                 # Search packages\n```\n\nUse native package managers for system services; snap\u002Fflatpak for desktop apps and cross-distro compatibility.\n\n## Decision Frameworks\n\n### Troubleshooting Performance Issues\n\n**Investigation Workflow:**\n\n1. **Identify bottleneck:**\n   ```bash\n   top                             # Quick overview\n   uptime                          # Load averages\n   ```\n\n2. **CPU Issues (usage >80%):**\n   ```bash\n   top                             # Press Shift+P to sort by CPU\n   ps aux --sort=-%cpu | head\n   ```\n\n3. **Memory Issues (swap used):**\n   ```bash\n   free -h                         # Memory usage\n   top                             # Press Shift+M to sort by memory\n   ```\n\n4. **Disk I\u002FO Issues (high wa%):**\n   ```bash\n   iostat -x 1                     # Disk statistics\n   iotop                           # I\u002FO by process\n   ```\n\n5. **Network Issues:**\n   ```bash\n   ss -tunap                       # Active connections\n   iftop                           # Bandwidth monitor\n   ```\n\nFor comprehensive troubleshooting, see `references\u002Ftroubleshooting-guide.md`.\n\n### Filesystem Selection\n\n**Quick Decision:**\n- **Default\u002FGeneral** → ext4\n- **Database servers** → XFS\n- **Large file storage** → XFS or ZFS\n- **NAS\u002FFile server** → ZFS\n- **Need snapshots** → Btrfs or ZFS\n\n## Common Workflows\n\n### Creating a Systemd Service\n\n**Step 1: Create unit file**\n```bash\nsudo nano \u002Fetc\u002Fsystemd\u002Fsystem\u002Fmyapp.service\n```\n\n**Step 2: Unit file content**\n```ini\n[Unit]\nDescription=My Web Application\nAfter=network.target postgresql.service\nRequires=postgresql.service\n\n[Service]\nType=simple\nUser=myapp\nGroup=myapp\nWorkingDirectory=\u002Fopt\u002Fmyapp\nEnvironment=\"PORT=8080\"\nExecStart=\u002Fopt\u002Fmyapp\u002Fbin\u002Fserver\nExecReload=\u002Fbin\u002Fkill -HUP $MAINPID\nRestart=on-failure\nRestartSec=5s\nStandardOutput=journal\n\n# Security hardening\nPrivateTmp=true\nNoNewPrivileges=true\nProtectSystem=strict\nReadWritePaths=\u002Fvar\u002Flib\u002Fmyapp\n\n[Install]\nWantedBy=multi-user.target\n```\n\n**Step 3: Deploy and start**\n```bash\nsudo useradd -r -s \u002Fbin\u002Ffalse myapp\nsudo mkdir -p \u002Fvar\u002Flib\u002Fmyapp\nsudo chown myapp:myapp \u002Fvar\u002Flib\u002Fmyapp\nsudo systemctl daemon-reload\nsudo systemctl enable myapp.service\nsudo systemctl start myapp.service\nsudo systemctl status myapp.service\n```\n\nFor complete examples, see `examples\u002Fsystemd-units\u002F`.\n\n### Systemd Timer (Cron Replacement)\n\nCreate service and timer units for scheduled tasks. Timer unit specifies `OnCalendar=` schedule and `Persistent=true` for missed jobs. Service unit has `Type=oneshot`. See `examples\u002Fsystemd-units\u002Fbackup.timer` and `backup.service` for complete examples.\n\n### SSH Hardening\n\n**Generate SSH key:**\n```bash\nssh-keygen -t ed25519 -C \"admin@example.com\"\nssh-copy-id admin@server\n```\n\n**Harden sshd_config:**\n```bash\nsudo nano \u002Fetc\u002Fssh\u002Fsshd_config\n```\n\nKey settings:\n```bash\nPermitRootLogin no\nPasswordAuthentication no\nPubkeyAuthentication yes\nMaxAuthTries 3\nAllowUsers admin deploy\nX11Forwarding no\nPort 2222                          # Optional\n```\n\n**Apply changes:**\n```bash\nsudo sshd -t                       # Test\nsudo systemctl restart sshd        # Apply (keep backup session!)\n```\n\nFor complete SSH configuration, see `examples\u002Fconfigs\u002Fsshd_config.hardened` and `references\u002Fsecurity-hardening.md`.\n\n### Performance Tuning\n\nConfigure sysctl parameters in `\u002Fetc\u002Fsysctl.d\u002F99-custom.conf` for network tuning (tcp buffers, BBR congestion control), memory management (swappiness, cache pressure), and file descriptors. Set ulimits in `\u002Fetc\u002Fsecurity\u002Flimits.conf` for nofile and nproc. Configure I\u002FO schedulers and CPU governors. For comprehensive tuning, see `references\u002Fperformance-tuning.md` and `examples\u002Fconfigs\u002F` for templates.\n\n### Log Investigation\n\nUse `systemctl status myapp` and `journalctl -u myapp` to investigate issues. Filter logs by time `--since`, severity `-p err`, or search patterns with `grep`. Correlate with system metrics using `top`, `df -h`, `free -h`. Check for OOM kills with `journalctl -k | grep -i oom`. For detailed workflows, see `references\u002Ftroubleshooting-guide.md`.\n\n### Essential Commands\n\n**Interface Management:**\n```bash\nip addr show                       # Show all interfaces\nip link set eth0 up                # Bring interface up\nip addr add 192.168.1.100\u002F24 dev eth0\n```\n\n**Routing:**\n```bash\nip route show                      # Show routing table\nip route get 8.8.8.8               # Show route to IP\nip route add 10.0.0.0\u002F24 via 192.168.1.1\n```\n\n**Socket Statistics:**\n```bash\nss -tunap                          # All TCP\u002FUDP connections\nss -tlnp                           # Listening TCP ports\nss -ulnp                           # Listening UDP ports\nss -tnp state established          # Established connections\n```\n\n### Firewall Configuration\n\n**Ubuntu (ufw):**\n```bash\nsudo ufw status\nsudo ufw enable\nsudo ufw allow 22\u002Ftcp              # Allow SSH\nsudo ufw allow 80\u002Ftcp              # Allow HTTP\nsudo ufw allow from 192.168.1.0\u002F24 # Allow from subnet\nsudo ufw default deny incoming\n```\n\n**RHEL\u002FCentOS (firewalld):**\n```bash\nfirewall-cmd --state\nfirewall-cmd --list-all\nfirewall-cmd --add-service=http --permanent\nfirewall-cmd --add-port=8080\u002Ftcp --permanent\nfirewall-cmd --reload\n```\n\nFor complete network configuration including netplan, NetworkManager, and DNS, see `references\u002Fnetwork-configuration.md`.\n\n## Scheduled Tasks\n\n### Cron Syntax\n\n```bash\ncrontab -e                         # Edit user crontab\n\n# Format: minute hour day month weekday command\n0 2 * * * \u002Fusr\u002Flocal\u002Fbin\u002Fbackup.sh              # Daily at 2:00 AM\n*\u002F5 * * * * \u002Fusr\u002Flocal\u002Fbin\u002Fcheck-health.sh      # Every 5 minutes\n0 3 * * 0 \u002Fusr\u002Flocal\u002Fbin\u002Fweekly-cleanup.sh      # Weekly Sunday 3 AM\n@reboot \u002Fusr\u002Flocal\u002Fbin\u002Fstartup-script.sh        # Run at boot\n```\n\n### Systemd Timer Calendar Syntax\n\n```bash\nOnCalendar=daily                   # Every day at midnight\nOnCalendar=*-*-* 02:00:00          # Daily at 2:00 AM\nOnCalendar=Mon *-*-* 09:00:00      # Every Monday at 9 AM\nOnCalendar=*-*-01 00:00:00         # 1st of every month\nOnBootSec=5min                     # 5 minutes after boot\n```\n\n## Essential Tools\n\n### Process Monitoring\n- `top`, `htop` - Real-time process monitor\n- `ps` - Report process status\n- `pgrep\u002Fpkill` - Find\u002Fkill by name\n\n### Log Analysis\n- `journalctl` - Query systemd journal\n- `grep` - Search text patterns\n- `tail -f` - Follow log files\n\n### Disk Management\n- `df` - Disk space usage\n- `du` - Directory space usage\n- `lsblk` - List block devices\n- `ncdu` - Interactive disk analyzer\n\n### Network Tools\n- `ip` - Network configuration\n- `ss` - Socket statistics\n- `ping` - Test connectivity\n- `dig\u002Fnslookup` - DNS queries\n- `tcpdump` - Packet capture\n\n### System Monitoring\n- **Netdata** - Real-time web dashboard\n- **Prometheus + Grafana** - Metrics collection\n- **ELK Stack** - Centralized logging\n\n## Integration with Other Skills\n\n### Kubernetes Operations\nLinux administration is the foundation for Kubernetes node management. Node optimization (sysctl tuning), kubelet as systemd service, container logs via journald, cgroups for resource limits.\n\nExample:\n```bash\n# \u002Fetc\u002Fsysctl.d\u002F99-kubernetes.conf\nnet.bridge.bridge-nf-call-iptables = 1\nnet.ipv4.ip_forward = 1\n```\n\nFor Kubernetes-specific operations, see `kubernetes-operations` skill.\n\n### Configuration Management\nLinux administration provides knowledge; configuration management automates it. Ansible playbooks automate systemd service creation and system tuning.\n\nFor automation at scale, see `configuration-management` skill.\n\n### Security Hardening\nThis skill covers SSH and firewall basics. For advanced security (MFA, certificates, CIS benchmarks, compliance), see `security-hardening` skill.\n\n### CI\u002FCD Pipelines\nCI\u002FCD pipelines deploy to Linux servers using these skills. Uses systemctl for deployment and journalctl for monitoring.\n\nFor deployment automation, see `building-ci-pipelines` skill.\n\n## Reference Materials\n\n### Detailed Guides\n- **`references\u002Fsystemd-guide.md`** - Comprehensive systemd reference (unit files, dependencies, targets)\n- **`references\u002Fperformance-tuning.md`** - Complete sysctl, ulimits, cgroups, I\u002FO scheduler guide\n- **`references\u002Ffilesystem-management.md`** - LVM, RAID, filesystem types, permissions\n- **`references\u002Fnetwork-configuration.md`** - ip\u002Fss commands, netplan, NetworkManager, DNS, firewall\n- **`references\u002Fsecurity-hardening.md`** - SSH hardening, firewall, SELinux\u002FAppArmor basics\n- **`references\u002Ftroubleshooting-guide.md`** - Common issues, diagnostic workflows, solutions\n\n### Examples\n- **`examples\u002Fsystemd-units\u002F`** - Service, timer, and target unit files\n- **`examples\u002Fscripts\u002F`** - Backup, health check, and maintenance scripts\n- **`examples\u002Fconfigs\u002F`** - sshd_config, sysctl.conf, logrotate examples\n\n## Distribution-Specific Notes\n\n### Ubuntu\u002FDebian\nPackage Manager: `apt`, Network: `netplan`, Firewall: `ufw`, Repositories: `\u002Fetc\u002Fapt\u002Fsources.list`\n\n### RHEL\u002FCentOS\u002FFedora\nPackage Manager: `dnf`, Network: `NetworkManager`, Firewall: `firewalld`, Repositories: `\u002Fetc\u002Fyum.repos.d\u002F`, SELinux enabled by default\n\n### Arch Linux\nPackage Manager: `pacman`, Network: `NetworkManager`, Rolling release, AUR for community packages\n\n## Additional Resources\n\n**Official Documentation:**\n- systemd: https:\u002F\u002Fsystemd.io\u002F\n- Linux kernel: https:\u002F\u002Fkernel.org\u002Fdoc\u002F\n\n**Related Skills:**\n- `kubernetes-operations` - Container orchestration on Linux\n- `configuration-management` - Automate Linux admin at scale\n- `security-hardening` - Advanced security and compliance\n- `building-ci-pipelines` - Deploy via CI\u002FCD\n- `performance-engineering` - Deep performance analysis\n",{"name":5,"description":7},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fskills_sh\u002Fs\u002Fskills-sh_ancoleman_ai-design-components_administering-linux",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill administering-linux",{"tool":39,"command":40},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill administering-linux",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill administering-linux","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fskills_sh\u002Fs\u002Fskills-sh_ancoleman_ai-design-components_administering-linux\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]