Overview
Lists directory contents in a token-optimized format with automatic noise filtering and file statistics. Reduces output by 60-70% compared to rawls -la.
Syntax
Arguments
Directories to list. Defaults to current directory if not specified.
Options
Show hidden directories like
.git and node_modules (normally filtered)Detailed listing (always enabled by RTK)
Recursive listing
Human-readable sizes (always enabled by RTK)
Automatic Filtering
RTK automatically excludes common noise directories unless-a is specified:
node_modules,.git,target__pycache__,.next,dist,build.cache,.turbo,.vercel.pytest_cache,.mypy_cache,.tox.venv,venv,coverage
Output Format
- Directories shown with
/suffix - Human-readable file sizes (K, M)
- Summary line with file count by extension
- No permissions, timestamps, or ownership clutter
Token Savings
65% reduction - removes metadata while preserving essential informationExit Codes
0- Success1- Directory not found or permission denied
Related Commands
rtk tree- Recursive tree viewrtk find- Search for filesrtk read- View file contents
