Basic Listings
List Current Directory with Visual Enhancements
View All Files Including Hidden
Detailed File Information
Long Format with Human-Readable Sizes
--human-readable flag converts byte sizes to K, M, G format for easier reading.
Directory Metadata Only
-d flag shows information about the directory itself, not its contents.
Sorting Files
Find Recently Modified Files
-l, -t, and --human-readable shows recently changed files first with readable sizes.
Find Largest Files
-S flag sorts by size, showing largest files first.
Recursive Listings
List All Files Recursively
Limit Recursion Depth
-L 2 option limits recursion to 2 levels deep, preventing overly verbose output.
The
--depth-limit option requires the -r flag to be set. It has no effect without recursion enabled.Multiple Paths
Compare Multiple Directories
Advanced Combinations
Full Project Overview
-r- Recursive listing-l- Long format-a- Include hidden files-i- Show icons-c- Colorize output-t- Sort by time--human-readable- Readable file sizes-L 3- Limit to 3 levels deep
Quick Size Check
head to show only the largest files.
Clean List for Scripts
-1 flag provides one file per line, perfect for piping to other commands or scripts.
File Type Indicators
Using Classify Flag
/- Directory*- Executable- No indicator - Regular file
Combining Classify with Icons
Common Workflows
Finding recently changed code files
Finding recently changed code files
src/ directory sorted by modification time.Identifying space usage
Identifying space usage
Inspecting hidden configuration files
Inspecting hidden configuration files
Quick directory structure overview
Quick directory structure overview
Checking file permissions
Checking file permissions
Best Practices
Use --human-readable
Always combine
-l with --human-readable for easier size interpretation.Limit recursive depth
When using
-r, add -L to prevent overwhelming output in deep directories.Combine visual flags
Use
-ic together (--icons --color) for maximum visual clarity.Sort intentionally
Use
-t for recent files or -S for large files rather than default alphabetical.