linux-admin

Diagnose Linux CPU, memory, disk, network, SSH, and service failures using decision trees and command references.

3|1|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/LiboMa/agenticops-chat --skill linux-admin-liboma
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: linux-admin
Source: https://github.com/LiboMa/agenticops-chat/tree/main/skills/linux-admin
Command: npx skills add https://github.com/LiboMa/agenticops-chat --skill linux-admin-liboma

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Troubleshooting Linux servers under incident pressure requires knowing dozens of diagnostic commands and the right order to run them. This Skill provides structured decision trees and escalation paths so you can systematically isolate CPU spikes, memory pressure, disk saturation, network failures, SSH connectivity issues, and crashing services without guessing. ## Core Features & Use Cases - Guided Decision Trees: Step-by-step escalation paths for CPU high, memory pressure, disk issues, network problems, SSH connectivity, and service failures, each with concrete commands and branching logic. - Deep Reference Guides: Detailed references for disk I/O analysis (iostat, blktrace, EBS tuning, LVM), memory troubleshooting (OOM killer, swappiness, cgroups, NUMA), process management (strace, cgroups, file descriptors), and SSH operations (tunneling, key management, hardening). - Use Case: An EC2 instance shows high load and slow application responses. Follow the CPU High tree to identify I/O wait, pivot to the Disk Issues tree, use iostat to confirm device saturation, then consult the EBS guidance to check BurstBalance and provision gp3 IOPS. ## Quick Start Use the linux-admin skill to diagnose why my server has high CPU usage and walk me through the escalation path.

Frequently Asked Questions about linux-admin

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I troubleshoot high CPU usage on a Linux server?▼

Start with top -bn1 and ps aux --sort=-%cpu to identify consuming processes, then check vmstat for I/O wait. If user CPU is high, use strace -p PID -c for syscall breakdown; if system CPU is high, check for I/O wait, softirq, or steal time indicating a noisy neighbor.

How to diagnose disk I/O bottlenecks with iostat?▼

Run iostat -xz 1 5 and examine %util, await, and avgqu-sz. Utilization near 100% with high queue depth indicates saturation; small avgrq-sz with high IOPS means random I/O limits, while large request sizes indicate throughput limits.

Why does SSH fail with Permission denied publickey on EC2?▼

This usually means the wrong user, wrong key, or incorrect key permissions. Verify the AMI default user (ec2-user for Amazon Linux, ubuntu for Ubuntu), run chmod 600 on the private key, and use ssh -v to see which keys are offered and rejected.

How does the Linux OOM killer choose which process to kill?▼

The OOM killer scores processes by RSS relative to total RAM plus an oom_score_adj value ranging from -1000 to 1000. Higher scores are killed first; setting oom_score_adj to -1000 makes a process immune, which is useful for protecting critical databases.

Can I access private EC2 instances without a bastion host?▼

Yes, use AWS Systems Manager Session Manager with aws ssm start-session, or configure SSH over SSM using a ProxyCommand with the AWS-StartSSHSession document. This requires the SSM agent and an IAM instance role but no inbound port 22.

What should I check when a systemd service keeps crash-looping?▼

Run journalctl -u service_name --since "10 min ago" to see recent logs, check dmesg for OOM kills, and use coredumpctl list for segfaults. Also inspect the exit code with systemctl show -p ExecMainStatus and verify dependency ordering.