This is an excellent query because ls filedot touches on several layers of Unix/Linux: shell globbing, file naming conventions, hidden files, and edge-case command behavior.
Let’s break down what ls filedot actually means, what it reveals about the system, and why it’s a surprisingly deep concept. ls filedot
ls filedot is not a special command – and that’s exactly the point. It forces you to realize: This is an excellent query because ls filedot
/).$ to be expanded.filedot to avoid real filenames.In fact, filedot is a perfect teaching tool for the difference between: The shell treats every word as a command,
file.dot (file extension).dotfile (hidden)file . (two arguments: file and .)filedot (single literal)filedot is a file or directory name:ls filedot
This will list the contents of the file/directory named filedot in the current folder.
..)?The .. entry represents the parent directory. It is not a file but a directory link.
ls .*
Warning: ls .* lists hidden files and the . and .. directories. Be cautious, as this will also recursively list the contents of hidden directories like ./.ssh/.