Subj : Path To : DesotoFireflite From : Nightfox Date : Mon Jun 15 2015 12:50:00 > Can anyone tell me haow to permantaly store a path statement in Linux. I can > get it set, but once I reboot, I loose it. I've tried everything I can find > on Google, but nothing is working. I'm a Linus Newby, so explain it so a 5 > year old can understand it. Thanks. I want to add the directory so it > applies to all users, even root. I hope my explanation is clear enough (let me know if it's not): There are a couple of files in each user's home directory, called .bashrc and .bash_profile (the leading '.' characters are part of their filename) - Those are read by the Bash shell on startup, and you can put variable assignments, etc. in there. I think the difference is that .bash_profile is read before the command prompt opens, and .bashrc is read when you open a command prompt (I don't remember exactly). In either (or both) of those files, you can modify the path variable. The variable $PATH contains the existing path, and you can reference that in order to prepend or append directories to it, using a set command. For instance, the following would append /sbbs/exec to the path: export PATH=$PATH:/sbbs/exec Make sure to separate directories with a colon (:). Using this method, you would have to edit the .bashrc and .bash_profile files for the root user and each other user you want the path to apply to. There's probably a global path setting somewhere, but I'm not sure where that is, and it might depend on the Linux distribution you're using. Nightfox --- þ Synchronet þ Digital Distortion: digitaldistortionbbs.com .