disk-usage
Analyze disk space usage and filesystem information including mounts, usage, and large files
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Disk Usage Skill
Use this skill to analyze disk space and filesystem usage on Linux systems.
Quick Start
Run the included script for a disk usage overview:
./scripts/diskinfo.sh
Manual Commands
Filesystem Overview
-
df -h- Disk space usage for all mounted filesystems (human-readable) -
df -i- Inode usage (number of files) -
lsblk- Block device tree (disks, partitions) -
mount- Currently mounted filesystems
Directory Size Analysis
-
du -sh /path- Total size of a directory -
du -h --max-depth=1 /path- Size of immediate subdirectories -
du -ah /path | sort -rh | head -20- Largest files/directories
Finding Large Files
-
find /path -type f -size +100M- Files larger than 100MB -
find /path -type f -size +1G- Files larger than 1GB -
ls -lhS /path | head -20- List files sorted by size (largest first)
Disk Information
-
cat /proc/partitions- Partition table -
cat /proc/mounts- Mount information -
stat -f /path- Filesystem statistics
Tips
- Always use
-hfor human-readable sizes - The
ducommand can be slow on large directories - Use
--max-depth=1to limit recursion depth - Root filesystem (
/) usage above 90% may cause issues
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-30
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!