Sub topic 5
Creating folders
This chapter assumes you can open a Finder window, tell files from folders, and understand that folders nest inside other folders. It covers three ways to create folders and the mistakes people most often make with them.
Creating a folder in the Finder
Open the Finder window where the folder should live, then use any of these methods:
- Press Shift-Command-N.
- Choose File > New Folder.
- Control-click (or two-finger click) an empty spot in the window and choose New Folder.
The new folder is named "untitled folder", and its name is already selected for editing. Type a real name and press Return. If you click away first, the folder keeps the placeholder name. Select it and press Return to rename it.
Two variations are worth knowing:
- New Folder with Selection. Select several items, Control-click one of them, and choose New Folder with Selection. The Finder makes a folder and moves the items into it. The shortcut is Control-Command-N.
- Creating a folder on the Desktop. Control-click the Desktop and choose New Folder. Desktop folders are real folders inside your Home folder, so they behave like any other.
Creating a nested structure in Terminal
Making Projects, then 2026, then Active and Archive by hand takes several steps. Terminal does it in one command:
mkdir -p ~/Documents/Projects/2026/{Active,Archive}Here is how the command works:
mkdirmakes directories, which is the Terminal word for folders.-pcreates any missing parent folders along the path. It also stopsmkdirfrom reporting an error if a folder already exists.~is shorthand for your Home folder.{Active,Archive}expands into two paths, so both folders are created inside2026.
The result is the same as making each folder by hand with Shift-Command-N.
Common errors
| Problem | Cause | Fix |
|---|---|---|
| The folder is called "untitled folder" | You clicked away before typing a name | Select it and press Return to rename it |
| The folder appears in the wrong place | A different window or the Desktop was active | Undo with Command-Z, then switch to the right window and try again |
| New Folder is greyed out | The location is read-only or you lack permission | Pick a location you own, such as your Home folder |
| Terminal makes two folders from one name | The name has a space and no quotes | Quote the name, or remove the extra folders and run the command again |
| Slashes or colons in a name | `/` separates folders in paths, so it cannot be used in a name | Use a hyphen or an underscore instead |
Choosing where to create folders
Most of your own work belongs inside your Home folder, usually in Documents. The next chapters cover how to name folders and move items between them. Creating folders is easier to maintain when the top level stays small, with only a handful of folders each holding more specific ones.
Exercise
You want a Documents/Projects/2027/Active folder, but the Projects folder does not exist yet. Which Terminal command creates the whole path in one step, and why is the -p option needed?
Show answer
mkdir -p ~/Documents/Projects/2027/Active. The -p option creates every missing parent folder along the path. Without it, mkdir fails because Projects and 2027 do not exist yet.
Exercise
You have selected five loose PDF files on the Desktop. How do you put them in a new folder without creating the folder first?
Show answer
Control-click one of the selected files and choose New Folder with Selection, or press Control-Command-N. The Finder creates a folder, moves the files into it, and leaves the name ready to edit.