dot and double dot

Latest response

Is there a difference between the folders ".test" and "..test"? Is it just that the folder "test" is hidden by adding dot to it and ".test" is made hidden by adding another dot to it? Or is there any other difference? The question is not based on any real-time scenario. This question is just to understand the system better.

Responses

The command ls lists files and directories, except those whose names start with a dot. There is no difference for ls whether or not the first dot is followed by another dot.

Understood! Thanks Siem

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.