Whenever you type
ls -a into the command prompt, you usually get all of your folders, files, and then you see that the first two entries are
Just curious, but what is the significance of these two entries?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
.. are hard links to the current and the parent directory
/ is the parent of itself).
ls shows all inodes in the current directory, i.e. also the hidden files which filenames begin with ad dot, therefore
.. are shown.
you must be knowing that Directory is nothing but a file that points to some list of files, basically it is a pointer, may be hidden or not.
in similar way
.. are the pointer which point to Uppermost directory and upper directory respectively.
that is why i think when we execute
command, these are displayed!