Accidentally deleted the ".profile" login file

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

  1. powdR macrumors newbie

    Nov 1, 2006
    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


    Jan 13, 2005
    Between cats, dogs and wanderlust.
    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:

    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

    Apr 9, 2006
    Kirkland, WA
    .profile is an empty file unless you put stuff in yours.

    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