In this article
Reveal the item before changing it
Click the Finder window containing the file, then use the shortcut. The Max Planck Institute's Macintosh notes document this visibility toggle. Use it to inspect an item without changing its name or file flags.
You may only need to open or copy a configuration file. In that case, revealing hidden items is enough; making every file permanently visible adds no useful step. Press the shortcut again when you want to hide those items from the view.
If you know the containing folder's exact path, Finder's Go → Go to Folder can take you there. Make sure you are looking at that location, rather than a similarly named folder or a search result. A missing item, a hidden item, and an inaccessible item call for different checks.
Separate the name from the flag
Apple's file system overview describes the leading-period convention: names such as .zshrc are hidden automatically in normal Finder views. The period belongs to the actual filename.
Apple separately documents the BSD hidden file flag. This flag hints that a graphical interface should hide the item. chflags nohidden clears that flag; it does not remove a leading period.
| Observation | What it tells you | What it does not tell you |
|---|---|---|
| The name starts with a period | The item uses the dot-name convention | Whether the hidden flag is also set |
The flags column includes hidden | The BSD hidden flag is set | Whether the name also starts with a dot |
| Finder shows the item after the shortcut | The current view reveals that item | Whether its name or flag has changed |
chflags nohidden finishes successfully | The command completed for the supplied path | Whether every reason for concealment has disappeared |
These are useful distinctions when reviewing an app's files. A dot at the start of a name is not evidence of malware or evidence that the file is disposable. For example, .DS_Store has a specific Finder purpose; the leading period alone does not explain that purpose.
Inspect one exact path in Terminal
For a file you own, use a read-only listing first:
/bin/ls -ldO "/full/path/to/item"
Replace the example with the real path. The capital O asks for file flags; -d lists a directory itself instead of its contents. Keeping the path in quotes handles ordinary spaces. Do not paste the example unchanged and expect it to find your file.
Check the displayed name and flags together. To inspect all names in the containing folder, including dot names, use:
/bin/ls -laO "/full/path/to/containing-folder"
Apple's command-line primer explains the ls -a option. Your installed man ls documents the exact version on your Mac.
If the listing reports “No such file or directory,” resolve the path before changing flags. If it reports a permission error, record that error separately. Neither result establishes that the hidden flag is the problem. Likewise, an @ or + beside permissions has a different meaning.
Four files, before and after nohidden
On November 12, 2026, we tested four disposable files on macOS 15.7.5, Apple Silicon. Each contained the same text and had owner-only read/write permissions. We varied two things: whether its name started with a dot and whether its BSD hidden flag was set.
We recorded each name, flag, permission mode, content hash, and Terminal listing. Then we ran chflags nohidden on each exact path.
| Test file | Hidden flag before | Hidden flag after | Name after |
|---|---|---|---|
ordinary.txt | Clear | Clear | ordinary.txt |
flagged.txt | Set | Clear | flagged.txt |
.dotfile | Clear | Clear | .dotfile |
.both | Set | Clear | .both |
All four commands succeeded. The two dot names retained their leading periods. Every file's content hash and permission mode stayed unchanged.
Plain ls -1 listed the two ordinary names before and after the change, including the flagged file. Adding -A included the two dot names. That comparison matters: Terminal's default listing did not treat the hidden flag the same way as the leading dot.
What this proves: clearing the BSD flag and changing a filename are independent operations in this controlled test. We inspected filesystem metadata and Terminal output; this experiment did not measure Finder refresh timing or every special case on cloud and network volumes.
Make the smallest change that fits the task
If an ordinary file you own has the hidden flag and you want that flag removed, use /usr/bin/chflags nohidden "/full/path/to/item". Check the exact path first, then repeat the read-only listing to verify the flag changed.
For a dot-named configuration file, keep its expected name. Renaming .zshrc to zshrc, for example, changes the path that software looks for. Reveal the file to work with it instead of renaming it merely to make it easier to see.
Avoid applying a recursive flag change to your entire home folder as a troubleshooting shortcut. It affects many unrelated items and obscures which change mattered. One path and one recorded result are easier to understand and reverse.
If the name has no leading dot and the flag is already clear, this two-part check has not explained the symptom. Confirm the Finder location, revisit the folder, and investigate that file's particular storage or application context. Apple also documents explicitly hidden locations; this article is not an exhaustive catalogue of Finder visibility rules.
Finally, hiding is not an access-control decision. Our test files remained readable to their owner throughout. Use visibility to reduce clutter, permissions to assess access, and an app's documented file purpose to decide what belongs on the Mac. None of those questions is settled by whether Finder currently displays an icon.


