x-ps

star 4.5k

Enhanced `ps` process viewer with interactive UI, fzf support, AI filtering, and CSV/JSON/TSV output formats. **Dependency**: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options). see x-cmd skill for installation.

x-cmd By x-cmd schedule Updated 6/12/2026

name: x-ps description: | Enhanced ps process viewer with interactive UI, fzf support, AI filtering, and CSV/JSON/TSV output formats.

Dependency: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options). see x-cmd skill for installation.

license: Apache-2.0 compatibility: POSIX Shell

metadata: author: Li Junhao version: "1.0.0" category: x-cmd-extension tags: [x-cmd, process, ps, monitoring, fzf]

x ps - Process Status Viewer

Enhanced process viewer with interactive UI, multiple output formats, and AI-powered filtering.


Quick Start

# Interactive process viewer (default)
x ps

# List all processes with details
x ps aux

Features

  • Interactive UI: Built-in csv app with sorting and filtering
  • fzf integration: x ps fz for fuzzy search
  • Multiple formats: CSV, JSON, TSV output
  • AI filtering: Natural language process selection (x ps =)
  • Process management: Kill processes from interactive view

Commands

Command Description
x ps Interactive process viewer (default)
x ps aux Show all processes
x ps fz Interactive fzf view
x ps --csv CSV format output
x ps --json JSON format output
x ps --tsv TSV format output

Examples

Interactive View

# Default interactive mode
x ps

# Use fzf for fuzzy search
x ps fz

Format Conversion

# Convert ps output to JSON
ps aux | x ps --tojson

# Get CSV format
x ps --csv

# Process and convert
ps -ef | x ps --tocsv

AI-Powered Filtering

# Natural language process selection
x ps = "heavy cpu processes"
x ps = "nodejs processes using most memory"

Process Management

# View and kill from interactive UI
x ps
# Select process → Choose action (dump, TERM, INT, KILL)

Data Pipeline

# Chain with other tools
x ps --csv | x csv sql "SELECT * WHERE CPU > 5"
x ps --json | jq '.[] | select(.USER == "root")'

Platform Notes

Linux

  • Uses native ps command
  • Fallback to busybox ps if needed

macOS

  • Full feature support
  • Native ps compatible

Windows

  • Via busybox or WSL

Related

  • Native ps(1) manual page
Install via CLI
npx skills add https://github.com/x-cmd/x-cmd --skill x-ps
Repository Details
star Stars 4,473
call_split Forks 152
navigation Branch main
article Path SKILL.md
Occupations
More from Creator