Inside each dir there is a link to this dir itself:
ls -a <any dir> | head -2
$.
$..
Question: for which purposes "." aka the link to itself exists?
Inside each dir there is a link to this dir itself:
ls -a <any dir> | head -2
$.
$..
Question: for which purposes "." aka the link to itself exists?
You will use
.
for the current directory when you issue a command, which takes the path to the directory as an argument. This way you can give its relative location instead of full path. An example of such command would be moving a file from another directory to the current directory:Also, if the program is not in your
$PATH
, you will need to specify its location to run it, even if you navigated to its directory, as Quasimodo pointed in the comment above: