sysadmin-toolbox
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSysadmin Toolbox
系统管理员工具集
Curated tool recommendations and practical shell one-liners for operational work.
为运维工作精选的工具推荐及实用Shell单行命令。
When to Auto-Consult
何时自动调用
Load relevant references when user is:
- Debugging network connectivity, ports, traffic
- Troubleshooting DNS or SSL/TLS
- Analyzing processes, memory, disk usage
- Working with logs or system diagnostics
- Writing shell scripts or one-liners
- Asking "what's a good tool for..."
- Doing security audits or pentesting
- Working with containers/Docker/K8s
当用户遇到以下场景时,加载相关参考内容:
- 调试网络连通性、端口、流量
- 排查DNS或SSL/TLS问题
- 分析进程、内存、磁盘使用情况
- 处理日志或系统诊断
- 编写Shell脚本或单行命令
- 询问“什么工具适合用来……”
- 进行安全审计或渗透测试
- 操作容器/Docker/K8s
Reference Files
参考文件
| File | Use When |
|---|---|
| Need practical commands for: terminal, networking, SSL, curl, ssh, tcpdump, git, awk, sed, grep, find |
| Recommending CLI tools: shells, file managers, network utils, databases, security tools |
| Web-based tools: SSL checkers, DNS lookup, performance testing, OSINT, scanners |
| Pentesting, vulnerability scanning, exploit databases, CTF resources |
| Shell scripting patterns and tricks |
| 文件 | 使用场景 |
|---|---|
| 需要以下场景的实用命令:终端、网络、SSL、curl、ssh、tcpdump、git、awk、sed、grep、find |
| 推荐CLI工具:Shell、文件管理器、网络工具、数据库、安全工具 |
| 基于Web的工具:SSL检查器、DNS查询、性能测试、开源情报(OSINT)、扫描器 |
| 渗透测试、漏洞扫描、漏洞利用数据库、CTF资源 |
| Shell脚本模式与技巧 |
Quick Tool Index
快速工具索引
Network Debugging
网络调试
- - traceroute + ping combined
mtr - /
tcpdump- packet capturetshark - /
netstat- connection monitoringss - - port scanning
nmap - /
curl- HTTP testinghttpie
- - 结合traceroute与ping的工具
mtr - /
tcpdump- 数据包捕获tshark - /
netstat- 连接监控ss - - 端口扫描
nmap - /
curl- HTTP测试httpie
DNS
DNS
- /
dig- DNS querieshost - - DNS diagnostics
dnsdiag - /
subfinder- subdomain enumerationamass
- /
dig- DNS查询host - - DNS诊断
dnsdiag - /
subfinder- 子域名枚举amass
SSL/TLS
SSL/TLS
- - certificate inspection
openssl - - TLS testing
testssl.sh - - SSL scanning
sslyze - - Let's Encrypt
certbot
- - 证书检查
openssl - - TLS测试
testssl.sh - - SSL扫描
sslyze - - Let's Encrypt证书工具
certbot
Process/System
进程/系统
- /
htop- process monitoringbtop - /
strace- syscall/library tracingltrace - - open files/connections
lsof - - disk usage
ncdu
- /
htop- 进程监控btop - /
strace- 系统调用/库跟踪ltrace - - 打开文件/连接查看
lsof - - 磁盘使用情况分析
ncdu
Log Analysis
日志分析
- - log navigator
lnav - - web log analyzer
GoAccess - - log slicing
angle-grinder
- - 日志导航器
lnav - - Web日志分析器
GoAccess - - 日志切片工具
angle-grinder
Containers
容器
- - Docker image analysis
dive - - container top
ctop - - Docker TUI
lazydocker
- - Docker镜像分析
dive - - 容器进程监控
ctop - - Docker终端UI工具
lazydocker
Operational Gotchas (Recent)
近期运维注意事项
- Git commit fails (GPG expired): Use or renew your GPG key.
git -c commit.gpgsign=false commit ... - /bin/sh vs bash: is bash-only; use
wait -nor a Python ThreadPool fallback for parallel downloads./bin/bash -lc
- Git提交失败(GPG过期):使用 或更新你的GPG密钥。
git -c commit.gpgsign=false commit ... - /bin/sh vs bash:是仅bash支持的命令;使用
wait -n或Python ThreadPool作为并行下载的替代方案。/bin/bash -lc
Keeping Current
保持内容更新
References auto-refresh weekly (Sundays 5am ET) from the upstream repo:
bash
~/clawd-duke-leto/skills/sysadmin-toolbox/scripts/refresh.shManual refresh anytime:
bash
./scripts/refresh.sh [skill-dir]参考内容每周自动刷新(美国东部时间周日凌晨5点),同步上游仓库:
bash
~/clawd-duke-leto/skills/sysadmin-toolbox/scripts/refresh.sh随时手动刷新:
bash
./scripts/refresh.sh [skill-dir]Example Queries → Actions
示例查询→对应操作
"Why is this port not responding?"
→ Load shell-oneliners.md, search for netstat/ss/lsof commands
"What's a good tool for testing SSL?"
→ Load cli-tools.md SSL section, recommend testssl.sh or sslyze
"Show me how to find large files"
→ Load shell-oneliners.md, search for find/ncdu/du commands
"I need to debug DNS resolution"
→ Load shell-oneliners.md dig section + recommend dnsdiag from cli-tools.md
“为什么这个端口没有响应?”
→ 加载shell-oneliners.md,搜索netstat/ss/lsof相关命令
“什么工具适合测试SSL?”
→ 加载cli-tools.md的SSL部分,推荐testssl.sh或sslyze
“告诉我如何查找大文件”
→ 加载shell-oneliners.md,搜索find/ncdu/du相关命令
“我需要调试DNS解析问题”
→ 加载shell-oneliners.md的dig部分,并从cli-tools.md中推荐dnsdiag