Ad space (banner)
🖥️Linux Lessons
Lesson 5 / 61

Seeing Hidden Files Too with ls -la

ls -la is for when "I want to see everything, including hidden files like .gitignore." Adding options lets you display more detailed information than a plain ls.

-l is the long format option, showing details like permissions, owner, size, and modification date; -a means "all," including hidden files that start with ..

Running ls -la lists every file, hidden ones included, along with detailed info like permissions and owner.

A common early mistake is typing -l and -a separately, over and over — options can be combined, like ls -la.

In real work, this is used a lot to confirm the existence of config files (like .env or .gitignore), or to investigate file permission issues.

Linux
Try it (type this into the pseudo terminal)
ls -la

🧑‍💻 You can type this command into the Linux pseudo terminal to try it yourself (this page itself has no interactive terminal).

Ad space (banner)
Ad space (in-article)