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).
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-19
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- x-df
- license
- Apache-2.0
- metadata
- { "tags": [ "x-cmd", "system", "df", "disk", "storage" ], "author": "Li Junhao", "version": "1.0.2", "category": "x-cmd-extension" }
- description
- 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).
- compatibility
- POSIX Shell
03 SKILL.md 正文
x df - Disk Free Space Viewer
Enhanced
dfcommand combiningdfandmountoutput 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
dfandmountcommand 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
| Field | Description | Example |
|---|---|---|
Filesystem |
Device path | /dev/sda1 |
Type |
Filesystem type | ext4, ntfs |
Size |
Total size | 500G |
Used |
Used space | 200G |
Avail |
Available space | 300G |
Use% |
Usage percentage | 40% |
Mounted_path |
Mount point | /, /home |
Mounted_attr |
Mount attributes | rw,relatime |
macOS (additional fields)
| Field | Description | Example |
|---|---|---|
Capacity |
Capacity percentage | 40% |
iused |
Used inodes | 1000000 |
ifree |
Free inodes | 9000000 |
%iused |
Inode usage % | 10% |
Commands
| Command | Description |
|---|---|
x df |
Auto mode: TTY→interactive, pipe→TSV |
x df --app |
Interactive TUI view |
x df --csv |
CSV format output |
x df --tsv |
TSV format output |
x df --raw |
Raw system command output |
x df --numeric |
Display 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
dfand/proc/mountsormountcommand - Full feature support
macOS
- Uses
dfandmountcommand - Additional inode information (iused, ifree, %iused)
Windows
- Uses
wmicor PowerShellGet-Volumefor disk info - Full feature support
Comparison with Native df
| Command | Output |
|---|---|
df -h |
Basic disk usage |
mount |
Mount information |
x df |
Combined 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
04 同仓库更多 Skills
vercel-react-view-transitions
Guide for implementing smooth, native-feeling animations using React's View Transition API (`<ViewTransition>` component, `addTransitionType`, and CSS view transition pseudo-elements). Use this skill whenever the user wants to add page transitions, animate route changes, create shared element animations, animate enter/exit of components, animate list reorder, implement directional (forward/back) navigation animations, or integrate view transitions in Next.js. Also use when the user mentions view transitions, `startViewTransition`, `ViewTransition`, transition types, or asks about animating between UI states in React without third-party animation libraries.
vercel-react-best-practices
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
terraform-patterns
Implement — Terraform infrastructure-as-code agent skill and plugin for Claude Code, Codex, Gemini CLI, Cursor, OpenClaw. Covers module design patterns, state management strategies, provider c
self-eval
Implement — Honestly evaluate AI work quality using a two-axis scoring system. Use after completing a task, code review, or work session to get an unbiased assessment. Detects score inflation,
helm-chart-builder
Implement — Helm chart development agent skill and plugin for Claude Code, Codex, Gemini CLI, Cursor, OpenClaw — chart scaffolding, values design, template patterns, dependency management, sec
docker-development
Implement — Docker and container development agent skill and plugin for Dockerfile optimization, docker-compose orchestration, multi-stage builds, and container security hardening. Use when: u