Layout#
- –tree / -T — recursive tree view (pair with –level=N / -L N to cap depth)
- –long / -l, –all / -a (twice -aa shows . and ..)
- -1 — one entry per line (good for piping)
- -R — recursive flat listing
- -F / –classify — trailing /, *, @ indicators
- -G / –grid — grid layout (default for short listings)
Columns in long mode#
- –git — git status column (you have this)
- –git-repos — show repo status for subdirs that are git repos
- –header — column headers
- -h / –header vs -h inside -l shows human sizes (already on via -h)
- –total-size — sum sizes for directories (slow on big trees)
- -@ / –extended — macOS extended attrs / xattrs
- -B / –bytes — raw bytes instead of human-readable
- -o — show octal permissions
- –no-permissions, –no-filesize, –no-user, –no-time — trim columns
- –time=modified|accessed|created|changed — which timestamp
- –time-style=relative|iso|long-iso|default — relative is very readable
Sorting / filtering#
- -s size|modified|created|accessed|name|extension|type (prefix with - or suffix with -r to reverse)
- –group-directories-first / –dirs-first
- -D — directories only; -f — files only
- -I ‘glob’ / –ignore-glob — exclude patterns
- –git-ignore — respect .gitignore
Icons / color#
- –icons=auto|always|never (needs Nerd Font)
- –color=always — force color when piping
- –hyperlink — terminal-clickable filenames (kitty supports this)