Could anyone explain the difference between ../ and ./ please.
../system
./system
My understanding is that ../
is the root directory.
But I don't know what ./
means.
./
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.
.
and ..
are provided by the filesystem, and so available everywhere. But ~
is interpreted by the shell, and so can only be used in shell command lines; other programs will treat it as a literal filename.
. 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".
... which means:
I think ,
./ and .
are the same, they mean current directory. While ../
means first layer parent directory.