360 Secure SkillHub
360 安全技能中心

Sizeup

sizeup 是一个纯 Python、无第三方依赖的命令行磁盘占用分析工具:对指定路径生成带颜色标记的目录树视图,支持最小体积过滤、查找最大的若干文件、按扩展名统计占用,并可输出 JSON 结构化结果,帮助用户快速了解磁盘空间分布。

分类:数据
rogue-agent1
rogue-agent1
热度 28.81
最近更新 2026-05-11 17:37:27

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add rogue-agent1/sizeup
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
sizeup
description
Disk usage analyzer with tree view, large file finder, and extension breakdown. Like `du` but actually readable. Pure Python, zero dependencies.

sizeup

Disk usage analyzer with tree view, large file finder, and extension breakdown. Like du but actually readable. Pure Python, zero dependencies.

Usage

# Tree view of current directory
sizeup

# Analyze specific path
sizeup /var/log --depth 2

# Only show items >= 10MB
sizeup --min 10M

# Top 20 largest files
sizeup /home --top 20

# Extension breakdown
sizeup . --ext

# JSON output
sizeup --top 10 --json

Features

  • Color-coded tree — red (≥1GB), yellow (≥100MB), cyan (≥10MB)
  • Large file finder — --top N finds the biggest files fast