How to hide hidden files?

Discussion in 'macOS' started by UmichAg, Aug 2, 2010.

  1. UmichAg macrumors member

    Feb 26, 2008
    So, I'm an idiot. A really big idiot.

    I was messing around in the Terminal and accessed root [sudo -s]

    I assumed root access would end upon closing the terminal, but I guess not.
    I can see all my hidden files (e.g., mach_kernal). How do I disable root and get back to not being able to see my hidden files?

    I've learned my lesson - never mess around with things you don't understand. :(

    Thanks for your help!
  2. GGJstudios macrumors Westmere


    May 16, 2008
    Very true!

    To hide hidden files in Finder, enter the following two commands into a Terminal window (press enter after each line):
    defaults write AppleShowAllFiles FALSE
    killall Finder​
  3. UmichAg thread starter macrumors member

    Feb 26, 2008

    Thanks for the quick reply!

    I assume root is no longer "active." Just want to make sure I'm not endangering myself from making any even dumber mistake

Share This Page