[SOLVED] What is the meaning of ./ in (for example) ./filename
by JeremyBoden from LinuxQuestions.org on (#4RBKF)
If I run a CLI script in my /home/username directory I need to enter something like:- ./filename.
I can understand the presence of the dot - perhaps indicating the current directory, but why the /? Note that neither of ./ filename or .filename work.
If filename is located in a sub-directory of my current directory (~/home) then I need to enter something like .//Desktop/filename.
I don't have a problem with this - but it doesn't seem very consistent does it?


I can understand the presence of the dot - perhaps indicating the current directory, but why the /? Note that neither of ./ filename or .filename work.
If filename is located in a sub-directory of my current directory (~/home) then I need to enter something like .//Desktop/filename.
I don't have a problem with this - but it doesn't seem very consistent does it?