ls
File ManagementList directory contents
Options & Flags
Available options for this command
-lUse long listing format showing permissions, owner, size, and modification date
-aShow all files including hidden files (starting with .)
-hHuman-readable file sizes (e.g., 1K, 234M, 2G)
-RList subdirectories recursively
-tSort by modification time, newest first
Examples
Common usage examples
List files in current directory
lsList all files with detailed information
ls -laList log files with human-readable sizes
ls -lh /var/logNotes
- Hidden files start with a dot (.)
- Use with grep to filter results: ls -la | grep pattern