How To Execute a Bash Script Without ./

preview_player
Показать описание
Since Bash looks in the default locations for commands to execute at the CLI, we need to add the "./" proceeding the command. To omit this we have to modify the $PATH variable and append the current directory to the list of known paths Bash will look for commands in. Its not recommended to do this on most systems since it can result in commands being accidentally executed or even shadowing standard commands with ones in the current directory if the current directory shows up first in the $PATH variable

==== Awesome Links ====
Рекомендации по теме
Комментарии
Автор

That is a great example of just because you can do something doesn't mean you should haha :D

psychicpenguin
Автор

In this video, i learned why and how tr is used... Lol

sarimbinwaseem