What Does Two Dots Mean in Linux?
Contents

Two dots, one after the other, in the same context (i.e., when your instruction is expecting a directory path) means “the directory immediately above the current one“.

What is the use of double dot in Unix?

1. In Linux and Unix, when viewing a directory listing, the “..” or “../” represents the parent directory and “./” is the current directory. Below is an example of the output from the ls command.

What does two dots mean in command prompt?

The double dot or periods means the parent directory (the next one up the tree). I verified that they can be used to navigate directories with the cd (change directory) command.

Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest