Why does ls .*
print out the contents of the hidden directories? I want to print just the hidden files, and now see that Show only Hidden Files is a solution to this, yet I sill want to understand why the contents of the directories are shown. The contents of further nested directories are not shown.
Below is a partial output of ls .*
in my home directory.
.bash_history
.bash_profile
.bashrc
.coin_history
.emacs
.gitconfig
.gitignore_global
.grasp_jss
.ssh:
config github_rsa.pub id_rsa.pub known_hosts.old
github_rsa id_rsa known_hosts lambda.pem
.vim:
colors ftdetect syntax
This machine is running RHEL. Similar behavior observed on Mac OSX.
echo .*
and think. – Ipor Sircer Jan 02 '17 at 18:48