Home » Questions » Computers [ Ask a new question ]

Path difference between ../ and ./

Path difference between ../ and ./

Could anyone explain the difference between ../ and ./ please.

Asked by: Guest | Views: 52
Total answers/comments: 3
Guest [Entry]

"./ means the current directory

../ means the parent of the current directory, not the root directory

/ is the root directory

myfile.text is in the current directory, as is ./myfile.text

../myfile.text is one level above you and /myfile.text lives in your root directory."
Guest [Entry]

"The . and .. are relative directories to your current location.

The . is the current directory. eg ""this"".
The .. is the previous directory. eg ""this.parent""."
Guest [Entry]

./ means the current directory.