Ls Filedot [portable] ★ Trending & Top

The ls command has a long history dating back to the earliest versions of Unix. When you type ls into a terminal, it shows you a list of files and folders in your current directory. However, by default, it omits any file or directory whose name begins with a dot ( . ). Files like .bashrc , .gitignore , or .profile are not shown in a standard ls output. This is not a security feature, but rather a convention to reduce clutter and hide files that are not typically meant for the user to interact with directly.

However, note a significant quirk: when executed by itself (depending on your shell and ls version), ls -d .* can inadvertently list the contents of hidden directories as well, which may flood the terminal with unintended output. The -d flag forces it to list the directories themselves rather than their contents, but this remains a less common approach compared to ls -a . ls filedot

While your query likely refers to the permission suffix, "dot" is also used in other ls contexts: The ls command has a long history dating

Are you managing a specific environment like ? Share public link However, note a significant quirk: when executed by

To create dotfiles, you use the touch command and pass the name(s) of the file(s) as the argument to the command. freeCodeCamp