set $PATH

Asked by Marcus

How do I append to $PATH at login?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Solved by:
Markus Thielmann
Solved:
Last query:
Last reply:
Revision history for this message
Best Markus Thielmann (thielmann) said :
#1

Thanks for you question.

Do you want to append for a single user?

If so, login as the user, open the file ~/.bashrc and add at the end of the file something like this:

# My extended path
export PATH=$PATH:/my/directo/ory

Revision history for this message
Marcus (mark-odowd) said :
#2

This worked. Thank you

If I wanted this to be for all users, what file can I change