Accidentally deleted the ".profile" login file

Discussion in 'macOS' started by powdR, Feb 25, 2007.

  1. powdR macrumors newbie

    Joined:
    Nov 1, 2006
    #1
    OK, this is gonna make a lot of you laugh.
    I am learning the Terminal commands, and was playing around with the login script.
    While in my home folder, where the hidden ".profile" login fil resides, I typed in:
    rm .profile
    and pressed enter.

    I learned that UNIX has no un-delete. None. Rm, really means: remove.

    So, I need to re-create my .profile file somehow. Can somebody send me a copy of their .profile file or help me re-create it? It is in your home folder, but is hidden. Path Finder users can turn on "show hidden files" and then e-mail it to me. I'm not sure if it contains personal information. Check to verify that first :)

    Thanks for any and all help! :)
    Greets from Oslo.. powdR
     
  2. Lixivial macrumors 6502a

    Lixivial

    Joined:
    Jan 13, 2005
    Location:
    Between cats, dogs and wanderlust.
    #2
    Did you do any customization of your .profile file? If you didn't, then it's likely you don't have a lot to worry about. Mine only consists of appending /Developer/Tools to the search path:

    Code:
    export PATH=$PATH:/Developer/Tools
    If you know what was in it, you can use Terminal to recreate it. The easiest way is to open Terminal, type cd ~ and then type nano .profile (or use whichever text editor suits your fancy), type in the commands and save it. This should recreate it for you.

    You can't use Finder to create a blank file and rename it to .profile as Finder will complain about it.
     
  3. Mernak macrumors 6502

    Joined:
    Apr 9, 2006
    Location:
    Kirkland, WA
    #3
    .profile is an empty file unless you put stuff in yours.

    Code:
    pico ~/.profile
    then ctrl + O to output (write) file
    P.S. Lots of nifty stuff to put in .profile

    Edit: Doh!!! Need to refresh pages more
     

Share This Page