Re: Avoiding to type "./" before command if in same directory ?



Carsten Eishold wrote:
If I want to execute a command whose program is in my current working directory
I have always to type "./" before the actual command. E.g.

/etc/init.d> smb start
bash: smb: command not found
/etc/init.d> ./smb start
Starting Samba SMB daemon

Is there a way of prepending automatically the ./ to every command if necessary?

Carsten


Put it in the default path in the environment.
.



Relevant Pages