How to Show Hidden Files in Linux Terminal

Hidden files in Linux are those that start with a .. For example .bashrc in your home directory (assuming you use bash.

If you do a standard directory list (ls) you won’t see any hidden files by default.



To show hidden files, use the all flag with either -a or --all. For example:

$ ls -a

.bashrc
.profile
Desktop
Documents
Downloads
workspace

A word of warning – don’t assume a hidden file or folder is actually hidden. Not only is it easily found as shown, but when running a find in a directory, hidden files and folders will automatically be searched as well.



Leave a Reply

Your email address will not be published.