Can anyone tell me haow to permantaly store a path statement in Linux. Ican
get it set, but once I reboot, I loose it. I've tried everything I canfind
on Google, but nothing is working. I'm a Linus Newby, so explain it so a5
year old can understand it. Thanks. I want to add the directory so it applies to all users, even root.
export PATH=$PATH:/sbbs/exec
export PATH=$PATH:/sbbs/exec
Thank You. I have been using just "PATH=$PATH:/sbbs/exec" without the export, and as soon as I reboot the system, I loose it. Am I to assume, that by putting "export" in front of this, it will set it permantly?, or do I have to actually go in and use a text editor and modify both of the files you mentioned. Sorry for the stupid questions, but I'm really trying to learn the OS, so I understand it as well as I do windows. Thanks
You do have to modify those files for it to be permanent. If you just do that in a terminal window, it only applies to that session and would be lost when you exit the terminal or restart the system.
I had seen 'export' used before but I guess I didn't know exactly what it did. I did a quick search online and found this page: http://how-to.linuxcareer.com/learning-linux-commands-export
You do have to modify those files for it to be permanent. If you
just do that in a terminal window, it only applies to that session
and would be lost when you exit the terminal or restart the system.
I had seen 'export' used before but I guess I didn't know exactly
what it did. I did a quick search online and found this page:
http://how-to.linuxcareer.com/learning-linux-commands-export
Maybe it's just me. I went in and tried to edit the files, and now I can't save them. It's so frustrating, I feel like I'm in first grade all over again. I went into the vim editor in terminal, typed i to edit the file, and I was able to type my changes, but then when I typed :e to exit and save, it won't ever save. I tried using other editors, and keep getting
Also, I tend to use different commands with vim. I guess there are multiple ways to do anything in Linux. :P When I edit a file, I use the command "vim <filename>" on the command-line (where <filename> is the name of the file to edit). I use i to edit the file. And to exit and save, I use ZZ (two capital Zs). You can also use the command :wq to write & quit.
Also, when editing root's .bashrc & .bash_profile files, don't forget that you need to edit them as root. You need to either be logged in as the root user or use 'sudo' before your editor command (as in 'sudo vim .bashrc').
Also, I tend to use different commands with vim. I guess there are multiple ways to do anything in Linux. :P When I edit a file, I use the command "vim <filename>" on the command-line (where <filename> is the name of the file to edit). I use i to edit the file. And to exit and save, I use ZZ (two capital Zs). You can also use the command :wq to write & quit.
Also, when editing root's .bashrc & .bash_profile files, don't forget that you need to edit them as root. You need to either be logged in as the root user or use 'sudo' before your editor command (as in 'sudo vim .bashrc').
forgetAlso, when editing root's .bashrc & .bash_profile files, don't
inthat you need to edit them as root. You need to either be logged
'sudoas the root user or use 'sudo' before your editor command (as in
avim .bashrc').
It's all working now, thank you so much. When editing .bashrc, there was
statement in the file saying not to edit it as it would be changedduring
updates, so I ended up creating a /etc/profile.local file, and using the "export PATH=$PATH:/usr/bin/g++" to acheve the global path and perserveit.
works like a charm. You have no idea how much you have helped, Thanks
their needs.. It doesn't seem right that there would be restrictions for a user not to edit their .bashrc file. Good that you found a solution though. It seems like there are several ways to do everything in Linux.
restrictionstheir needs.. It doesn't seem right that there would be
offor a user not to edit their .bashrc file. Good that you found a solution though. It seems like there are several ways to do everything in Linux.
I'm finding opensuse is different in a lot of ways. LOL There are a lot
things I don't like about it, but there is more that I do like. It seems more stable on this old pent III that I'm learning linux on, thananything
else I have tried. Again, thanks.
OpenSuse was always one of my favorite Linux distributions. I don't remember there being restrictions with .bashrc in OpenSuse. I'm using Linux Mint (Cinnamon edition) on my BBS machine right now though (although
my BBS itself is running in Windows XP in a virtual machine - I recently
Yeah, I like opensuse myself. I tried mint, and I really liked Cinnamon, but unfortunatly with the pent III, it just bogged the system down so much, it was just unusable.
Maybe it's just me. I went in and tried to edit the files, and now I can't s them. It's so frustrating, I feel like I'm in first grade all over again. I went into the vim editor in terminal, typed i to edit the file, and I was ab to type my changes, but then when I typed :e to exit and save, it won't ever save. I tried using other editors, and keep getting permission errors. Honestly, I'm trying to do this on my own with the help of google, and the d from opensuse, but I'm just over my head. It shouldn't be that hard to perm the path. I know I'm going to have that ahha moment when it all clicks, and hope it's soon. LOL.. Thanks for all your help, you know I appreciate it.
Often when saving stuff you have to use su. You mentioned permissions, so that is likely the issue. For example:
Sysop: | Gate Keeper |
---|---|
Location: | Shelby, NC |
Users: | 749 |
Nodes: | 20 (0 / 20) |
Uptime: | 61:39:33 |
Calls: | 10,860 |
Files: | 5,288 |
D/L today: |
2 files (0K bytes) |
Messages: | 510,139 |