Right place to setup path statement
Hi, I'm not new to Linux but have always wondered where the right place to set up the path is so that it is set for all users as soon as they start a session?
Dick Steflik |
For all non-root users there's an option in /etc/profile:
Code:
# For non-root users, add the current directory to the search path: |
Hi,
I like to setup my .bashrc and .bash_profile; Code:
#.bashrc Code:
|
Quote:
For bash, /etc/profile is a good choice for global configs. But note that any user can completely override it on his or her personal settings. If you want to know all the files that are involved for bash check the "INVOCATION" section on its man page. For other shells the picture will be different. So, again, check the shells you allow and read their man pages. |
All times are GMT -5. The time now is 09:44 PM. |