Turn off the grid on a Mac running Sonoma.

I'm using the method shown below. When I get to number 2, after I copy and paste the code with Terminal I hit a return and I get no visible files. What am I missing?


  1. Launch Terminal (located in Applications/Utilities/)
  2. Copy and paste the following into it:

defaults write com.apple.Finder AppleShowAllFiles YES

and press Return. This will show the invisible files.

3. Relaunch the Finder.

• Hold down the Option key, click and hold the Finder's icon in the Dock, then choose Relaunch from the menu.

  1. Locate the filed called .DS_Store on the Desktop and move it to Trash.
  2. Relaunch the Finder again and see if that solves your problem.
  3. In the Terminal, press the Up Arrow key once to bring back the last command. Replace YES with NO and press Return.
  4. Relaunch the Finder. This will hide the invisible files again.


Posted on Sep 15, 2024 9:45 AM

Reply
Question marked as Top-ranking reply

Posted on Sep 15, 2024 5:01 PM

R Warren wrote:

Where will the invisible files show up when they become visible.

mixed in with the other files in the folder as displayed by the Finder.


You toggle between invisible and visible by repeating the Command-Shift-Period command.


If you are using macOS Terminal, then you can see all the files in a folder (aka directory when using the Terminal) via the

ls -a

command, where the -a says to show all the files, and not skip over the invisible ones.

8 replies
Question marked as Top-ranking reply

Sep 15, 2024 5:01 PM in response to R Warren

R Warren wrote:

Where will the invisible files show up when they become visible.

mixed in with the other files in the folder as displayed by the Finder.


You toggle between invisible and visible by repeating the Command-Shift-Period command.


If you are using macOS Terminal, then you can see all the files in a folder (aka directory when using the Terminal) via the

ls -a

command, where the -a says to show all the files, and not skip over the invisible ones.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Turn off the grid on a Mac running Sonoma.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.