Skip to main content

disk-usage

Analyze disk usage and find large files

来源信息

仓库
gebruder/wirken
最近来源活动
2026年9月19日 16:07
检测到的 SKILL.md 语言
英语
星标
188
分支
9

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
4 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
disk-usage
description
Analyze disk usage and find large files
disable-model-invocation
false
permissions
{"tools":{"allow":["exec"]},"egress":{"mode":"deny"},"inference":{"allow":["*"]}}
# Disk Usage Analyze disk space and find what's taking up room. ## Overview - Filesystem usage: `df -h` - Current directory: `du -sh .` - Subdirectory sizes: `du -sh */ | sort -rh` - Top 20 largest dirs: `du -h --max-depth=2 | sort -rh | head -20` ## Find large files - Top 20 largest files: `find . -type f -exec du -h {} + | sort -rh | head -20` - Files over 100MB: `find . -size +100M -type f -exec ls -lh {} \;` - Files over 1GB: `find . -size +1G -type f -exec ls -lh {} \;` ## Cleanup candidates - Old log files: `find /var/log -name "*.gz" -mtime +30 -type f` - Core dumps: `find / -name "core.*" -type f 2>/dev/null` - Docker: `docker system df` (if Docker is installed) - Package cache (apt): `du -sh /var/cache/apt/archives/`
在 GitHub 查看