Editing a hidden text file

Discussion in 'macOS' started by tirwit, Apr 30, 2010.

  1. tirwit macrumors newbie

    Joined:
    Jan 20, 2010
    #1
    Hi

    I want to edit my .bash_profile to add a PATH. But how do I open the file with the text editor if it's hidden? (yes, I'm a n00b :confused:)
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #3
    Are you sure it even exists? Anyway open Terminal and type:

    ls -l ~/.bash_profile

    If it does exist then

    open -a TextEdit.app ~/.bash_profile

    will open it in TextEdit.
     
  3. tirwit thread starter macrumors newbie

    Joined:
    Jan 20, 2010
    #4
    No need :) i discovered right after =P

    Code:
    open -a
     

Share This Page