Export path is not set as expected

Why the command not find is coming? anything I am missing?

Hi:

Does create-and-launch-rocket is a file or a script ? As far as I can deduce you want to run the script. Have you ever tried if it works by using ./create-and-launch-rocket ? the “the ./” tokens are necessary for running linux executables from the script. If your intentions are to run a script, then also you need to put .sh at the end of your script file.

In case you want to add create-and-launch-rocket as a new program in your shell: Have you ever tried using source instead of export ?

If you can tell me more about the context of what are you doing, maybe I can help you more.

./create-and-launch-rocket works fine. I was trying to run it as a command without ./ prefix. created it using vi editor. it is a file only.

@veernarendra88 ,

As you said, it is a file.

create-and-launch-rocket is not a directory.

So,

Read this about PATH,

In the context of this task, export is actually not required, unless you will be invoking sub-shell or processes that will need new PATH value.

Read this for export

Read this for what you need to do after you change PATH variable value in your current shell.