LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-13-2004, 02:50 PM   #1
wildcat22
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu
Posts: 102

Rep: Reputation: 15
.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
 
Old 04-13-2004, 02:54 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
Old 04-13-2004, 02:55 PM   #3
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
There should be a base copy somewhere, like in /etc/skel or /etc/profile. Or copy it from another user.
 
Old 04-13-2004, 07:08 PM   #4
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
.bash_profile dimi Linux - General 1 08-23-2005 08:00 PM
.bash_profile nguye103 Linux - Software 3 10-22-2004 01:48 PM
where is ~/.bash_profile? Jskill007 Slackware 4 09-17-2004 11:04 PM
.bash_profile sikandar Linux - Software 9 08-31-2003 10:01 AM
.bash_profile Wasim Haider Linux - General 2 09-16-2002 07:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration