Why the dot in the middle of a path?
Every now and then I see some command to run a shell script that looks something like this:
~/foo/bar/baz/./script.sh
Now, I know that in general you need a ./
to tell Linux to look in your current directory for executables. But what’s the point of saying “go to this folder, then go there again, then execute a file?”
There is no difference. Executing the following:
~foo/bar/baz/./script.sh
and
~foo/bar/baz/script.sh
will have the same effect.