Using a Period to Hide Files

Discussion in 'Mac OS X Lion (10.7)' started by insomniac321123, Aug 4, 2011.

  1. macrumors 6502

    Joined:
    Jan 23, 2006
    Location:
    Milwaukee, WI
    #1
    I may be wrong, but do I remember being able to hide files in earlier versions of Mac OS X by renaming them with a period in front of the file name? This made it easy to hide a file and then find it again by showing hidden files from the finder menu bar.

    I tried to do this in Lion but I got an error saying that files beginning with a period were reserved for the system. Is that new?
     
  2. macrumors P6

    Intell

    Joined:
    Jan 24, 2010
    Location:
    Inside
  3. thread starter macrumors 6502

    Joined:
    Jan 23, 2006
    Location:
    Milwaukee, WI
    #3
    Hmm, I must have dreamed it then. Thanks for testing it for me.
     
  4. macrumors 6502

    Joined:
    Aug 2, 2010
    #4
    odd you posted this..

    just read somewhere that I can do this on my Droid X phone..seems to me there should have to be a way to do it in a Mac OS then..hmm.
     
  5. thread starter macrumors 6502

    Joined:
    Jan 23, 2006
    Location:
    Milwaukee, WI
    #5
    I did some looking on the internet and I found that you can use this code in terminal to do it:

    Code:
    chflags hidden file.dmg
    Going into terminal every time I want to open my file is little more work than its worth to me though.
     
  6. Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
    #6
    Its a unix convention, by placing a period in the beginning, it will be by default hidden.

    Whether OSX allows you to do that in the GUI is another matter
     
  7. macrumors 65816

    Joined:
    Jan 9, 2007
    #7
    Yeah, you have to use terminal to add a period or something like PathFinder or Kilometer.
     
  8. macrumors regular

    Joined:
    Sep 9, 2008
    #8
    Have you tried adding the period in front from the "Get Info" window instead of the standard Finder window. Sometimes the Get Info window has more power over file naming than Finder does. Using chflags might be your best bet otherwise
     

Share This Page