LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   .bash_profile (https://www.linuxquestions.org/questions/linux-general-1/bash_profile-169676/)

wildcat22 04-13-2004 02:50 PM

.bash_profile
 
So yeah, I'm the idiot that accidently "rm"s instead of "vim"s his .bash_profile file.
How do i get it back and what should it have in it? I can make things work the way it was eventually once I get it started..

Thanks

Tinkster 04-13-2004 02:54 PM

You just do what you originally wanted to do,
and then add what you need? :)

vim ~/.bash_profile

To find out what it should (could) have, look
at the ones of other users on your system,
maybe at /etc/skel/


Cheers,
Tink

aaa 04-13-2004 02:55 PM

There should be a base copy somewhere, like in /etc/skel or /etc/profile. Or copy it from another user.

SciYro 04-13-2004 07:08 PM

you can always remake it, bash profiles are fairly simple, they just set up some environment variables , and usually some aliases.

and isn't /etc/profile the global one that loads for every user? actually form what i read its the only one thats loaded, most distros use it to call ~/.bash_profile , so for the most part deleting the bash profile in the home directory doesn't do anything, but if your overly worried, just copy one from another user, then modify it a bit


All times are GMT -5. The time now is 04:03 AM.