Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

camelia

macrumors 6502a
Original poster
Apr 3, 2015
718
123
Mexico City
Hello,

what is the command that I have to type in terminal to see hidden files on macOS High Sierra?

Thanks
Came
 
what is the command that I have to type in terminal to see hidden files on macOS High Sierra?


The Terminal doesn't hide files at all. If you do a listing (ls) it'll show all files, including the hidden ones. ls -a to also show things like . and ..
If you mean to reveal the hidden files for the Finder, well, @MacDawg also revealed an easier method, but, if you wish to do it via the shell, it's chmod unhidden if I remember correctly. Check the man page for chmod if it's wrong, cause it's something like that. – If the file you want to see starts with a . that's another way of hiding it, so to unhide that, just rename it to something that doesn't have a . in front of it.

I should mention that unlike the other responses, my method is on a per file basis
 
  • Like
Reactions: camelia
This should work with two separate commands in Terminal:

defaults write com.apple.finder AppleShowAllFiles TRUE

killall Finder​

To restore do the same with TRUE changed to FALSE
 
  • Like
Reactions: camelia
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.