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?

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

1 Answer 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 ...

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .