On Wed, 31 May 2000, Barry Winch wrote:

>Can someone please explain the concept behind ./ in executing a command.
>
>If I am in the directory where the programme resides and type the programme
>name, I get a:
>"bash: programme name: command not found" message
>
>If, from the same directory I type ./programme name everything works as
>advertised.

What I know is this: programs are only executed when they are found in the
search path, or when you fully qualify them /dir/dir/program.

The ./ refers to the current directory, which apparently is enough
qualification for Linux. One of the reasons for this is when people play
around with programs that are named after existing programs/commands,
e.g. ls

If you want to run your own ls, you need to specify that. This can happen
when someone wants to work on a development version of a system command.

Paul

)0(-----------------------------------)0(

Wisdom is as rare as diamond

)0(----[[EMAIL PROTECTED]]-------------)0(
http://nlpagan.net - ICQ 147208
Registered Linux User 174403
Linux tips at http://nlpagan.net/linux.htm

Reply via email to