So I'm here thinking how to create custom commands on my Linux Debian? I mean so i could open up terminal and just type the script name (and possibly some arguments) and it would refer to the script in my home directory. Otherwise I've write the whole path to the script each time and it gets annoying.
feedback
|
|
You have to add the path of your scripts to
where | |||||||||
feedback
|
|
Putting your scripts in their own directory, e.g., ~/bin, as cYrus answered, is probably the best solution. Another way to avoid having to "write the whole path to the script each time", though, is to use shortcuts to refer to certain directories. For example, executing
will execute a script named yourscript in the current directory, and
will execute a script in your HOME directory. | |||
|
feedback
|