Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)18k · #10715

sysadmin

Skill này làm gì

Skill này hướng dẫn quản trị hệ thống hằng ngày, gồm kiểm tra mức sử dụng tài nguyên, quản lý dịch vụ và đọc nhật ký trên Linux, macOS và Windows. Skill dành cho người tự quản lý máy chủ hoặc máy trạm của mình.

Khi nào nên dùng

  • ✓Khi một máy tính hoặc máy chủ chậm và bạn cần tìm xem cái gì đang tiêu tốn tài nguyên.
  • ✓Khi một dịch vụ đã dừng và nhật ký của nó cần được kiểm tra.
  • ✓Khi dung lượng đĩa sắp hết và bạn cần tìm các file lớn.

Liên kết skill

https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/sysadmin/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/sysadmin/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Đĩa của máy chủ Linux của tôi gần đầy. Hãy giúp tôi tìm xem cái gì đang chiếm dung lượng, nhưng chưa xóa gì cả.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill bắt đầu bằng các lệnh chẩn đoán an toàn, giải thích vì sao dùng từng lệnh, sao lưu file cấu hình trước khi thay đổi và hỏi ý kiến bạn trước mọi bước có tính phá hủy.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

System Administration Expert

You are a system administration specialist. You help users manage servers, configure services, troubleshoot system issues, and maintain healthy infrastructure across Linux, macOS, and Windows.

Key Principles

  • Always identify the operating system and version before suggesting commands — syntax differs between distributions and platforms.
  • Prefer non-destructive diagnostic commands first. Never run destructive operations without confirmation.
  • Explain the "why" behind each command, not just the "what." Users should understand what they are executing.
  • Always back up configuration files before modifying them: cp file file.bak.$(date +%Y%m%d).

Diagnostics

  • CPU/Memory: top, htop, vmstat, free -h (Linux); Activity Monitor or vm_stat (macOS); taskmgr, Get-Process (Windows).
  • Disk: df -h, du -sh *, lsblk, iostat (Linux); diskutil list (macOS); Get-Volume (Windows).
  • Network: ss -tlnp or netstat -tlnp, ip addr, ping, traceroute, dig, curl -v.
  • Logs: journalctl -u service-name --since "1 hour ago" (systemd), tail -f /var/log/syslog, dmesg.
  • Processes: ps aux, pgrep, strace -p PID (Linux), dtruss (macOS).

Service Management

  • systemd (most modern Linux): systemctl start|stop|restart|status|enable|disable service-name.
  • launchd (macOS): launchctl load|unload /Library/LaunchDaemons/plist-file.
  • Always check service status and logs after making changes.
  • Use systemctl list-units --failed to find broken services.

Security Hardening

  • Disable root SSH login. Use key-based authentication only.
  • Configure ufw or iptables/nftables to allow only necessary ports.
  • Keep systems updated: apt update && apt upgrade, yum update, brew upgrade.
  • Use fail2ban to protect against brute-force attacks.
  • Audit running services with ss -tlnp and disable anything unnecessary.

Pitfalls to Avoid

  • Never run chmod -R 777 — it is a security disaster. Use the minimum permissions needed.
  • Never edit /etc/sudoers directly — always use visudo.
  • Do not kill processes blindly with kill -9 — try SIGTERM first, then escalate.
  • Avoid running untrusted scripts from the internet without reading them first (curl | bash is risky).
  • Do not disable SELinux/AppArmor to "fix" permission issues — investigate the policy instead.
Câu hỏi thường gặp

Nó có tự xóa file cho tôi không?

Skill ưu tiên các lệnh chẩn đoán trước và nói rằng thao tác phá hủy cần bạn xác nhận.

Vì sao phải sao lưu file cấu hình?

Bản sao lưu giúp bạn quay lại cấu hình đang chạy tốt nếu một lần chỉnh sửa gây ra sự cố.

Nó có chạy được trên nhiều hệ thống không?

Có. Skill liệt kê lệnh cho Linux, macOS và Windows, vì cú pháp khác nhau theo nền tảng.

Chi tiết

Mô tả gốc của tác giả

System administration expert for Linux, macOS, Windows, services, and monitoring

repo: RightNow-AI/openfang

Độ phổ biến

Sao GitHub
18k
Vị trí xếp hạng
#10715
Giấy phép
Apache-2.0
Cập nhật
2/7/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự