Sometimes you need to show hidden files on your Mac: a program asks for a file in the Library folder, you want to find a settings file or a USB stick is full of odd files starting with a dot. macOS hides those files for a reason, but one shortcut makes them visible. This article explains how that works, how to open the Library folder, how to show file extensions and what you are better off leaving alone.
Blue Apple repairs MacBooks in Amsterdam. If you see unexpected files or worry that something is wrong with your drive, read the section at the end.
Showing hidden files with a shortcut
- Open a Finder window.
- Press Command + Shift + . (full stop).
- Hidden files and folders appear in light grey.
- Press the same shortcut again to hide them.
This also works in the window for opening or saving a file.
Which files are hidden?
- Files starting with a dot, such as .DS_Store. The Finder stores a folder's view settings in it.
- System folders you do not need in everyday use.
- The Library folder in your own user folder, with settings and data from apps.
Opening the Library folder
- In the Finder, click the Go menu, hold the Option key and choose Library.
- Or choose Go, Go to Folder (Command + Shift + G) and type ~/Library.
- If you always want to see it, open your user folder, press Command + J and turn on Show Library Folder.
More about the Finder in the Finder explained.
Showing file extensions
An extension is the part after the dot in a file name, such as .pdf or .docx. macOS often hides it. This is how to show them:
- In the Finder choose the Finder menu, Settings.
- Go to Advanced and turn on Show all filename extensions.
Handy to see whether a file is JPG or HEIC. See converting HEIC to JPG.
Odd files on a USB stick
If you copy files from a Mac to a USB stick in exFAT or FAT32, a Windows PC or TV sometimes shows extra files starting with ._ (dot and underscore). macOS keeps extra information in them. They are harmless and you can delete them from the stick. More about sharing drives in exFAT and Windows.
What you are better off not deleting
- Do not delete anything from the System folder or from folders you do not understand.
- In Library you can remove an app's settings if the app misbehaves, but make a backup first. See making a backup.
- Files such as .DS_Store are recreated by the Finder; deleting them is pointless.
Looking for space in hidden folders
Hidden folders can take up space, for example old caches or app backups. It is better to use the macOS overviews under Storage than to go looking yourself. Read finding large files.
Showing files with Terminal
Terminal can also show all files, but most people do not need it: the Finder shortcut does the same. If you do use Terminal, read opening and using Terminal first.
What we do at Blue Apple in Amsterdam
If files suddenly disappear, folders will not open or you see errors about your drive, the SSD may have problems. We test the storage and see what can be saved. We only do data recovery with your permission; it can cost extra and does not always succeed. More about MacBook data recovery.
Frequently asked questions
Why does macOS hide files?
To stop you accidentally removing something your Mac or an app needs.
Is it dangerous to show hidden files?
No, showing them does no harm. Deleting them can, if you do not know what they are.
I do not see Library in the Go menu.
Hold the Option key while the Go menu is open.