Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    how to restore the .bash_profile

    Hi all,

    I wanted to edit the .bash_profile, but in the middle vi got freeze and I have to close it. Now I cannot open the .bash_profile, and could not find the /home/.bash_profile.
    But home/.bash_profile-old is there, so how can I restore the .bash_profile from the .bash_profile-old?

    Thanks in advance,

  2. #2
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    CA, but from N.Ireland
    If you want .bash_profile to be an exact copy of .bash_profile-old, then you can simply copy it.
    cp .bash_profile-old .bash_profile
    Registered Linux user #388328 || Registered LFS user #15880
    AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
    Need instant help? Try us on IRC -- #linuxforums on freenode

  3. #3
    Thanks smolly. It helps


  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts