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:


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?”

Asked By: linkhyrule5


There is no difference. Executing the following:




will have the same effect.

Answered By: Tinu
Categories: Answers Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.