x-df

Enhanced `df` combining disk usage and mount info. Supports CSV, TSV, and TUI with filesystem type detection. **Dependency**: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options).

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "x-df" with this command: npx skills add Li Junhao/x-df

x df - Disk Free Space Viewer

Enhanced df command combining df and mount output with multiple formats.


Quick Start

# Interactive disk usage viewer (default in TTY)
x df

# TSV format output (default when piped)
x df | cat

Features

  • Joint output: Combines df and mount command information
  • Multi-format: TSV, CSV, TUI application, raw
  • Cross-platform: Linux, macOS, Windows support
  • Auto-detection: Interactive mode in TTY, TSV when piped

Output Fields

Linux / Windows

FieldDescriptionExample
FilesystemDevice path/dev/sda1
TypeFilesystem typeext4, ntfs
SizeTotal size500G
UsedUsed space200G
AvailAvailable space300G
Use%Usage percentage40%
Mounted_pathMount point/, /home
Mounted_attrMount attributesrw,relatime

macOS (additional fields)

FieldDescriptionExample
CapacityCapacity percentage40%
iusedUsed inodes1000000
ifreeFree inodes9000000
%iusedInode usage %10%

Commands

CommandDescription
x dfAuto mode: TTY→interactive, pipe→TSV
x df --appInteractive TUI view
x df --csvCSV format output
x df --tsvTSV format output
x df --rawRaw system command output
x df --numericDisplay sizes in pure numeric form

Examples

Basic Usage

# Interactive view (TTY)
x df

# TSV format
x df --tsv

# CSV format
x df --csv

Filter and Process

# Find large filesystems (>100GB)
x df --tsv | awk -F'\t' 'NR>1 && $3 > 100'

# Check specific mount point
x df --tsv | grep "/home"

# Get usage percentages only
x df --tsv | awk -F'\t' '{print $1, $6}'

Data Processing

# Convert to JSON via csv
x df --csv | x csv tojson

# SQL-like query on disk usage
x df --csv | x csv sql "SELECT * WHERE Use% > 80"

Platform Notes

Linux

  • Uses df and /proc/mounts or mount command
  • Full feature support

macOS

  • Uses df and mount command
  • Additional inode information (iused, ifree, %iused)

Windows

  • Uses wmic or PowerShell Get-Volume for disk info
  • Full feature support

Comparison with Native df

CommandOutput
df -hBasic disk usage
mountMount information
x dfCombined view with filesystem type and mount attributes
# Native df
$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       500G  200G  300G  40% /

# x df (combined with mount info)
$ x df --tsv
Filesystem    Type    Size    Used    Avail   Use%    Mounted_path    Mounted_attr
/dev/sda1     ext4    500G    200G    300G    40%     /               rw,relatime

Related

  • Native df(1) manual page
  • Native mount(8) manual page

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Disk Watch

Monitor disk space across drives. Alert before disks fill up. Track usage trends, find space hogs, suggest cleanup. Every server needs this.

Registry SourceRecently Updated
1370Profile unavailable
General

System Monitor

跨平台系统监控工具,支持 Linux 和 Windows,监控硬盘、内存、CPU 使用情况,记录历史数据,支持变化对比和预警。**适合定时任务**。触发场景:(1) 定时系统健康检查(推荐每6小时),(2) 用户询问系统状态、资源使用情况,(3) 资源异常预警,(4) 查看历史监控数据对比。

Registry SourceRecently Updated
570Profile unavailable
Automation

pidrive

Private file storage for AI agents. Mount S3 as a filesystem via WebDAV. Use standard unix commands (ls, cat, grep, cp, rm). All persistent data in S3, small...

Registry SourceRecently Updated
570Profile unavailable
General

Port Process

通过端口查找和管理系统进程。支持查找占用端口的进程、杀掉占用端口的进程、查看端口使用情况等操作。适用于 macOS 和 Linux 系统。使用场景:(1) "谁占用了 8080 端口",(2) "杀掉占用 3000 端口的进程",(3) "查看当前端口使用情况"。

Registry SourceRecently Updated
700Profile unavailable