14

I did: chflags hidden /Users/MyUser/Library/(theareawheremyfileis) and it hid my file. I did this in Terminal, now I typed in ... unhidden ... and I can't seem a way to unhide the file I hid.

Along with that, I want a way to see all hidden files just using a terminal command, no matter hidden by the computer or hidden by the user using chflags.

So I need two different things.

18

chflags nohidden will unhide a hidden file/folder.

You can press Command+Shift+. to show all files regardless of any other state (in macOS Sierra and above.)

Alternatively, you can run the command defaults write com.apple.Finder AppleShowAllFiles true then relaunch Finder (any version of macOS.)

| improve this answer | |
7

It's chflags nohidden <filename>

| improve this answer | |
5

There is a handy Finder keyboard shortcut to toggle showing hidden files and folders:

++.

Or, if you prefer the defaults route:

defaults write com.apple.finder AppleShowAllFiles TRUE

Both have the same effect, though the keyboard shortcut does change the value of the default.

Neither of these will change any files' hidden status, but will show all hidden files and folders in Finder:

They appear "washed out" so you can differentiate them from non-hidden files.

macOS hidden folders appearance

| improve this answer | |
0

Copy and paste the following command into the Terminal window:

defaults write com.apple.finder AppleShowAllFiles -bool true

killall Finder

This command will restart the Finder and then you will see hidden files and folders on your Mac.

| improve this answer | |
  • This doesn't actually unhide a file, it just shows all hidden files – Tetsujin Aug 31 at 9:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .