Route table viewer with multiple output formats. Display network routing table in CSV, TSV, or raw format. **Requires x-cmd**: Use x-cmd skill to install and use x-cmd, see https://x-cmd.com/llms.txt . Note: load x-cmd with `. ~/.x-cmd.root/X` before use.
Install
npx skillscat add x-cmd-skill/x-route Install via the SkillsCat registry.
SKILL.md
x route - Route Table Viewer
Display network routing table with multiple output formats.
Quick Start
# Display route table (default)
x route
# CSV format
x route --csv
# TSV format
x route --tsvFeatures
- Route Table: Display system routing table
- Multiple Formats: CSV, TSV, and raw output
- Cross-platform: Linux, macOS, Windows support
Commands
| Command | Description |
|---|---|
x route |
Display route table (default) |
x route ls |
Display route table |
x route ls --csv |
Output in CSV format |
x route ls --tsv |
Output in TSV format |
x route ls --raw |
Output in raw format |
Examples
Basic Usage
# Default route table view
x route
# CSV format for processing
x route --csv
# TSV format
x route --tsv
# Raw format
x route --rawData Processing
# Filter routes
x route --csv | x csv sql "SELECT * WHERE destination LIKE '192.168%'"
# Parse with awk
x route --tsv | awk -F'\t' 'NR>1 {print $1, $2}'Output Fields
Typical fields include:
| Field | Description |
|---|---|
| Destination | Target network or host |
| Gateway | Next hop router |
| Genmask | Netmask |
| Flags | Route flags |
| Metric | Route metric/cost |
| Ref | Reference count |
| Use | Route usage |
| Iface | Network interface |
Platform Notes
- Linux: Uses
ip routeorroutecommand - macOS: Uses
netstat -rnorroutecommand - Windows: Uses
route printcommand