Understanding command ls .*
The dot .
gets expanded to ..
by applying wildcard (*
), as you know single dot .
represents the current directory while double dot ..
shows the parent directory.
So by doing ls .*
, you are actually doing.
ls .
and
ls ..
Which list files on the current directory and parent directory. (CMIIW)