Skip to main content
added 1 character in body
Source Link
Tim
  • 106.8k
  • 234
  • 651
  • 1.1k

I installed eclipse in my home directory, and put its path in PATH in ~/.profile.

So it works by

$ eclipse 

But when call it with sudo, eclipse isn't found:

$ sudo eclipse 
sudo: eclipse: command not found

Which PATH isdoes sudo eclipse useduse to search for eclipse? Is it the user root's PATH?

Thanks.

I installed eclipse in my home directory, and put its path in PATH in ~/.profile.

So it works by

$ eclipse 

But when call it with sudo, eclipse isn't found:

$ sudo eclipse 
sudo: eclipse: command not found

Which PATH is sudo eclipse used to search for eclipse? Is the user root's PATH?

Thanks.

I installed eclipse in my home directory, and put its path in PATH in ~/.profile.

So it works by

$ eclipse 

But when call it with sudo, eclipse isn't found:

$ sudo eclipse 
sudo: eclipse: command not found

Which PATH does sudo eclipse use to search for eclipse? Is it the user root's PATH?

Thanks.

Source Link
Tim
  • 106.8k
  • 234
  • 651
  • 1.1k

Which PATH does `sudo <command>` use to search for `<command>`?

I installed eclipse in my home directory, and put its path in PATH in ~/.profile.

So it works by

$ eclipse 

But when call it with sudo, eclipse isn't found:

$ sudo eclipse 
sudo: eclipse: command not found

Which PATH is sudo eclipse used to search for eclipse? Is the user root's PATH?

Thanks.