System Admin

chaterm/terminal-skills/linux/system-admin

by chaterm464c2954287ad0c0b9addb1ebfbb2150ddc0de24No license58 starsListed Oct 9, 2026Updated Oct 9, 2026Repository updated 7 months ago

Linux system administration and monitoring

Instructions onlyDevOps & Cloud
AI-generated overview

Reference guide of Linux system administration commands for viewing system information, monitoring resources and managing services.

What it does
This skill provides a reference collection of Linux system administration commands and practices. It covers system and hardware information gathering, real-time and historical resource monitoring, systemd service management, and troubleshooting scenarios such as high load or full disks. It produces command references and suggested command sequences rather than scripts or files.
When to use it
Use it when you need to check Linux system health, inspect CPU, memory, disk or network usage, manage systemd services, or diagnose common problems like high load, disk exhaustion or failing services.
Requirements
Requires a Linux system with common administration tools such as systemctl, journalctl, top, vmstat, iostat, sar and related utilities. It ships no scripts; it is instructions only.

Linux System Administration

Overview

Core commands and best practices for Linux system administration, including system information viewing, resource monitoring, service management, etc.

System Information

Basic Information

bash
# System versioncat /etc/os-releaseuname -a
# Hostnamehostnamectl
# Uptime and loaduptime

Hardware Information

bash
# CPU informationlscpucat /proc/cpuinfo
# Memory informationfree -hcat /proc/meminfo
# Disk informationlsblkdf -h

Resource Monitoring

Real-time Monitoring

bash
# Comprehensive monitoringtophtop
# Memory monitoringvmstat 1
# IO monitoringiostat -x 1iotop
# Network monitoringiftopnethogs

Historical Data

bash
# System activity reportsar -u 1 10    # CPUsar -r 1 10    # Memorysar -d 1 10    # Disk

Service Management

Systemd Services

bash
# Service statussystemctl status service-namesystemctl is-active service-name
# Start/Stop servicessystemctl start/stop/restart service-name
# Boot startupsystemctl enable/disable service-name
# View all servicessystemctl list-units --type=service

Common Scenarios

Scenario 1: System Health Check

bash
# Quick health check scriptecho "=== System Load ===" && uptimeecho "=== Memory Usage ===" && free -hecho "=== Disk Usage ===" && df -hecho "=== Failed Services ===" && systemctl --failed

Scenario 2: Troubleshoot High Load

bash
# 1. Check loaduptime
# 2. Find high CPU processesps aux --sort=-%cpu | head -10
# 3. Find high memory processesps aux --sort=-%mem | head -10

Troubleshooting

ProblemCommands
System lagtop, vmstat 1, iostat -x 1
Disk fulldf -h, du -sh /*, ncdu
Memory shortagefree -h, ps aux --sort=-%mem
Service abnormalsystemctl status, journalctl -u

Source and attribution

Source:chaterm/terminal-skillsinlinux/system-adminat commit464c295

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal