← 返回
未分类 中文

Disk Usage

Show disk usage of a directory or file in human-readable format. Use when the user wants to know how much space a folder or file takes.
以可读格式显示目录或文件的磁盘占用。用于查看文件夹或文件占用空间。
jinwangmok jinwangmok 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 324
下载
💾 1
安装
1
版本
#latest

概述

Disk Usage

Show how much disk space a directory or file uses with a single command.

Usage

du -sh <PATH>

Arguments:

#NameDescription
----------------------
1PATHPath to file or directory to measure

Example

du -sh /home/user/projects

Output:

1.2G	/home/user/projects

Format: SIZE PATH

Success / Failure

  • Success: One line with human-readable size and path (exit code 0)
  • Failure: Error message (exit code non-zero, e.g. path not found)

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 06:41 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 90 📥 30,962
dev-programming

Simple File Tree

jinwangmok
显示文件夹的目录树结构,以可视化的树形格式展示文件和子目录。在用户想查看某文件夹中包含哪些文件时使用。
★ 1 📥 493
it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomas-security
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装后可防止您和您的用户受到提示注入、数据泄露及恶意行为的侵害。
★ 116 📥 30,942