•Arnošt Havelka
Mastering ls Flags
Learn powerful ls flags to see more file details.
Start Interactive LessonThe ls command is more powerful than it first appears. Flags unlock detailed information about your files and show hidden files too.
Long Format: ls -l
The -l flag shows detailed information: permissions, owner, size, and modification date.
Try the command
See file details with long format!
Build the command
ls
Terminal
C:\Users\User>ls -l
See everything in detail:
Command Prompt
file.txt
script.sh
data.csv
C:\Users\User>ls
Show Hidden Files: ls -a
The -a flag reveals hidden files (those starting with a dot).
Try the command
Reveal hidden files!
Build the command
ls
Terminal
C:\Users\User>ls -a
Uncover what's hidden:
Command Prompt
Documents
Downloads
Pictures
C:\Users\User>ls
Combine Them: ls -la
Use both flags together for maximum visibility!
Try the command
Get the complete picture!
Build the command
ls
Terminal
C:\Users\User>ls -la
See everything:
Command Prompt
file.txt
C:\Users\User>ls
Knowledge Check
1 / 3What does the -l flag show?
References
These documentation links provide authoritative details for the commands used in this article.