Sub topic 16
Renaming Many Files at Once, iCloud Drive, and Hidden Files
This chapter assumes you can create, rename and move items in the Finder, and that you know the Home folder layout from earlier chapters. It covers three related skills: batch renaming, how iCloud Drive changes where your files live, and reaching folders the Finder hides.
Renaming many files at once
Renaming forty photos one at a time is slow and error-prone. The Finder can rename a whole selection in one step.
- Select the items. Use Command-click for separate items or Shift-click for a range.
- Control-click one selected item and choose Rename. The menu shows the number of items, for example "Rename 40 items".
- Pick one of three formats from the pop-up menu.
| Format | What it does | Example result |
|---|---|---|
| Replace Text | Finds text in each name and swaps it for other text | `IMG_` becomes `Trip_` |
| Add Text | Adds text before or after the existing name | `Trip_2026` added after the name |
| Format | Replaces the whole name with a name plus a counter, date or index | `Holiday 1`, `Holiday 2`, and so on |
The dialog shows a preview of the first new name before you click Rename. Check it every time.
Keep the file extension (such as .jpg) intact. Replace Text only changes what you type, so it is the safest choice when you want to leave extensions alone.
iCloud Drive and Desktop & Documents
iCloud Drive is Apple's cloud storage. It appears in the Finder sidebar and keeps files in sync across your Mac, iPhone and iPad.
When you turn on Desktop & Documents Folders in System Settings, under your name, iCloud, then iCloud Drive, the Finder moves the contents of those two folders into iCloud Drive. They still appear in the same places, but the files now live in the cloud and are copied to your Mac.
Things to know:
- Files can be stored only in iCloud to save space. A cloud icon beside a name means the file is not downloaded yet. Double-click it to download it.
- If you turn the setting off, the Finder asks whether to keep the files in iCloud or copy them back to the Mac. Read the choice before you confirm it.
- Deleting a file in iCloud Drive on one device removes it on all of them.
Hidden files and Go to Folder
Some files are hidden because the system or an app depends on them. Their names start with a dot, such as .zshrc, or they sit in folders like ~/Library.
To show hidden items in a Finder window, press Shift-Command-Period. Press it again to hide them. Hidden items appear faded.
You can also change the setting from Terminal. This command shows hidden files and restarts the Finder to apply the change:
defaults write com.apple.finder AppleShowAllFiles -bool true && killall FinderTo switch it back, run the same command with false.
If you only need one hidden folder, use Go to Folder instead. Press Shift-Command-G, type a path such as ~/Library and press Return. The window opens there without changing any settings.
Be careful with hidden files. Moving or deleting them can break an app or your account settings.
Exercise
You select 30 files named IMG_001.jpg to IMG_030.jpg and want them to be Paris_001.jpg to Paris_030.jpg. Which rename format do you use, and what do you type?
Show answer
Use Replace Text. Type IMG_ in the Find field and Paris_ in the Replace With field. This changes only the matching text and leaves the numbers and the .jpg extension alone.
Exercise
You need to open ~/Library once to check a folder. Which is better, Shift-Command-Period or Shift-Command-G, and why?
Show answer
Shift-Command-G. Typing ~/Library opens that folder directly and does not change the hidden-file setting for every window.