Could anyone explain the difference between ../ and ./ please.
../system
./systemMy understanding is that ../ is the root directory.
But I don't know what ./means.
7 Answers
./ 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.
. Current Directoy
.. Parent Directory./system means, a directory/file called system in the current directory.
The . and .. are relative directories to your current location.
The . is the current directory. eg "this". The .. is the previous directory. eg "this.parent".
- . is the current directory
- .. is the parent directory of the current directory
... which means:
- ./system is the subdirectory or file called "system" of the current directory
- ../system is the subdirectory or file called "system" of the parent directory, which makes it a sibling of the current directory.
../ is the directory above this one
./ is the current directory
./ means the current directory.
I think ,./ and . are the same, they mean current directory. While ../ means first layer parent directory.