一键导入
system-admin
Linux/macOS administration: services, processes, package managers, and log triage.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Linux/macOS administration: services, processes, package managers, and log triage.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Navigate large codebases and make surgical edits while following project conventions. Use for refactors, feature work, and bug fixes spanning multiple files.
Inspect, filter, and summarize JSON, CSV, and log data using jq, awk, and pandas.
Read and edit Microsoft Word documents (.docx). Use for document editing and content extraction.
Branch, commit, rebase, and resolve conflicts. Use for PR prep, conventional commit messages, and history cleanup.
Author and edit README, CHANGELOG, and other markdown documentation, following the project's existing style.
Extract text, merge, split, and search PDF documents. Use whenever the user mentions a PDF file.
基于 SOC 职业分类
| name | system-admin |
| description | Linux/macOS administration: services, processes, package managers, and log triage. |
uname -s or use system info from the prompt.command -v cascade (see below).command -v brew && echo "homebrew"
command -v apt && echo "apt (Debian/Ubuntu)"
command -v dnf && echo "dnf (Fedora/RHEL)"
command -v pacman && echo "pacman (Arch)"
command -v zypper && echo "zypper (openSUSE)"
command -v apk && echo "apk (Alpine)"
Install a package (Linux):
sudo apt install -y <package> # Debian/Ubuntu
sudo dnf install -y <package> # Fedora/RHEL
sudo pacman -S <package> # Arch
Install a package (macOS):
brew install <package>
Check if a package is installed:
dpkg -l <package> 2>/dev/null # Debian/Ubuntu
rpm -q <package> 2>/dev/null # RPM-based
brew list <package> 2>/dev/null # macOS
Service control (Linux systemd):
systemctl status <service>
sudo systemctl start <service>
sudo systemctl stop <service>
sudo systemctl restart <service>
sudo systemctl enable <service> # start on boot
sudo systemctl disable <service>
Service control (macOS launchd):
launchctl list | grep <service>
sudo launchctl start <label>
sudo launchctl stop <label>
View recent system logs:
journalctl -u <service> -n 50 --no-pager # Linux: last 50 lines for service
journalctl -xe --no-pager # Linux: recent errors
log show --last 5m --predicate 'process == "nginx"' # macOS
tail -100 /var/log/syslog # fallback
Find process by name:
ps aux | grep <name>
pgrep -a <name>
Show what's listening on a port:
ss -tlnp | grep :8080 # Linux
lsof -i :8080 # macOS / Linux
Disk usage:
df -h # filesystem overview
du --max-depth=1 -h /var/log # dir breakdown (Linux)
du -sh * | sort -hr | head -20 # top consumers
CPU and memory:
top -bn1 | head -20 # snapshot
free -h # Linux memory
vm_stat # macOS memory
systemctl is Linux only — on macOS, use launchctl.apt requires sudo; always confirm before running package changes.journalctl may require sudo to see other users' service logs.kill -9 without understanding the process; use kill (SIGTERM) first./System/ even with sudo.references/systemd.md — systemd unit files, journalctl patternsreferences/macos-launchctl.md — launchd plist format, common labels