I know ../
means go up a path, but what does ./
mean exactly?
I was recently going through a tutorial and it seems to be referring to just a file in the same location, so is it necessary at all? Can I just not use it if that's all it's doing?
The dot-slash, ./ , is a relative path to something in the current directory. The dot is the current directory and the slash is a path delimiter.
(dot dot) This refers to the parent directory of your working directory, immediately above your working directory in the file system structure. If one of these is used as the first element in a relative path name, it refers to your working directory.
It means to go up one level, to the directory that contains the current directory. – Barmar. Oct 17, 2015 at 0:26. If your current directory is /home/yourname/somefolder , .. means /home/yourname.
A file path describes the location of a file in a web site's folder structure. File paths are used when linking to external files, like: Web pages.
/
means the root of the current drive;
./
means the current directory;
../
means the parent of the current directory.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With