LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux User Profile... (https://www.linuxquestions.org/questions/linux-newbie-8/linux-user-profile-621397/)

sakthi_sarathi 02-15-2008 11:17 AM

Linux User Profile...
 
How to set environment variables and PATH directories permanently to a user profile? Also how can I incorporate that in script?

Thanks,
Sakthi

Dinithion 02-15-2008 11:47 AM

They can be added to different files, depending on when you want them to be executet. There is a description of the different files near the bottom of
Code:

man 1 bash

geek745 02-16-2008 09:34 PM

Yes, you will need to look in files like ~/.cshrc, ~/.profile, ~/.bash_profile, ~/.login, etc

/etc/profile should set things system-wide

Again, refer to the manpages; that's what they are for

***remember to BACKUP these files before editing***


All times are GMT -5. The time now is 06:18 PM.