1

If a command's executable file resides in a directory that is not defined in your PATH environment variable, how can you still execute it?

1
  • 2
    specify the full path.... Mar 4, 2017 at 4:42

1 Answer 1

1

Use the full path of the executable file.

If you are unsure of its full path, you may use the find command, such as this search for sed :

  find / -iname "*sed*"

Then you would use the full path when executing it:

  /bin/sed ...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.