run script without ./scriptname

Hi everyone,

I'm very new, I just wrote a script "Hello World" :slight_smile: LOL

How can I execute the script without the ./myscript.

I want to just type "myscript" basically from anywhere without the " ./ ".

Thanks a bunch,
NinjaX

For that you have to do one of two things:

  1. Put the script in one of the directories specified in your $PATH variable
  2. Change your $PATH variable to include the directory that your script is in

Thanks Torch

I'm a long way from smart, but I do feel smarter now.