1

I am trying to install Java. I have to reload my system wide PATH from /etc/profile by typing the following command:

/etc/profile

And then I get the error:

bash: /etc/profile: permission denied

Why do I get this and how do I fix it? Can I fix it opening another Terminal window? Will my installation complete if i reboot computer? (if it is needed to fix this problem)

1 Answer 1

3

The /etc/profile file is not executable - to reload its configuration in the current shell you need to source it - either

. /etc/profile

(note the dot and space ahead of the file name) or

source /etc/profile

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.