One folder per year and an “Attic” for good measure? Even with ubiquitous search, having files and documents somewhat organized in folders helps bring up stuff fast when it’s needed. Find out here how to use the “New Folder” keyboard shortcut in Finder to create new folders fast on a Mac, and how to use Terminal to create directory hierarchies flexibly.
First, Make a Room Seem Bigger
Any room looks bigger, says a rule of common interior design knowledge, if more of its floor is visible.
So, to make a room look bigger,
- undress your chairs’ legs,
- get tables with slender legs,
- find couches on stilts and
- avoid long tablecloths, for instance.
Now, while I go looking for furniture—want to make a folder seem bigger on your Mac?
Make more of its “room” visible by moving files to a sub-folder. On your Mac, there’s a shortcut for that—and to just create a new folder, of course:
How to Create a New Folder on a Mac
Using the “New Folder” Mac Keyboard Shortcut
Time needed: 2 minutes
To use the “New Folder” keyboard shortcut to create a new folder with Finder on your Mac:
- Switch to Finder.
Here’s how: Click Finder in the macOS Dock.
Using the keyboard: You can also press Command Tab, then Tab until Finder is highlighted. - Go to the folder in which you want to create the new directory.
Shortcuts: You can use the Go to Folder Mac keyboard shortcut, go to folder directly or use the left navigation bar.
No Finder window: Especially if you have switched to Finder using Command Tab, no Finder window may be open initially; press Command N to open a new window. - Press Command Shift N.
Move files to the new folder: You can also create a new folder and move items to it in one go; see below.
- Type the name you want to use for the new Mac folder over untitled folder.
The default name: If the folder already has a folder named untitled folder, numbers starting with 2 will be appended to the new folder’s default name (untitled folder 2, untitled folder 3, etc.).
- Press Enter.
Need space for new folders? How to Empty the Trash on a Mac
Create a New Folder and Move Selected Items to It with a Mac Keyboard Shortcut
To both create a new folder in the current directory and move selected Finder items to it in one go with a Mac keyboard shortcut:
- Open the folder where you want to create the new directory in Finder; see above.
- Highlight the files and existing directories you want to move to the new folder.
Selecting multiple files: Hold down Command while you click individual items to change your existing selection. You can also drag around items with the mouse, of course. - Press Command Control N.
- Type the name you want to use for the newly created folder over New Folder With Items.
- Now press Enter.
Create a New Folder Using the Mouse on a Mac
To make a new folder on a Mac using the mouse and menu:
- Go to the folder that should hold the new folder (see above).
- Click somewhere in the folder’s empty space.
Alternatives: You can also select File from the menu or click the three dots Action button in the toolbar. - Select New Folder from the list.
- Type the name for the new folder.
- Press Enter.
Create a New Folder in Mac Terminal
To create a new directory from a Terminal prompt on a Mac:
- Open Terminal.
- Navigate to the parent folder for the new folder.
Here’s how: Typecd
followed by the path to the parent folder.
Example:cd ~/Downloads
will take you to your Downloads folder.
From Finder: You can also open Terminal at a folder right from Finder. - Type
mkdir <new folder name>
, replacing <new folder name> with the name to use for the new foler.
Whitespace: To use whitespace characters in the folder name, surround the entire name with quotation marks.
Example:mkdir "La De Du"
will create a folder named La De Du.
Create folder hierarchy: You can use Terminal to create a whole hierarchy of folders; see below. - Press Enter.
How to Create a New Folder on a Mac (Keyboard Shortcut): FAQ
With a folder selected, will the new folder be created inside that folder?
No.
The Mac New Folder keyboard shortcut will always create the new folder in the current folder. You do not have to worry about having anything selected.
Can I move entire folders to a new folder using the “New Folder” Shortcut?
Yes.
If you create a new folder with select files using the Command Control N keyboard shortcut (see above), you can select existing directories together with files and documents and move them (including the files and folders in them).
How can I create a hierarchy of Mac folders easily?
To set up a hierarchy of folders without creating each level individually:
- Open Terminal.
- Type
mkdir -p <hierarchy/of/folders>
(replacing </hierarchy/of/folders> with the folder names in order, separated by slashes (‘/’).
Example:mkdir -p ~/Downloads/La\ De\ Du/Trips/Badab-e\ Surt
will create
– the folder Badab-e Surt
– inside the folder Trips
– inside the folder La De Du
– inside the folder Downloads.
Whitespace: You can also use\
(slash followed by a whitespace character) to insert white space in a folder name. - Press Enter.
To create multiple folders at once, you can make use of a shell script.
Example
#!/bin/sh
range_in_years=5
current_year=$(date +%Y)
current_month=$(date +%-m)
end_year=$((current_year+range_in_years))
for year in $(seq "$current_year" "$end_year"); do
for month in $(seq 1 12); do
if [[ $year -eq $current_year && $month -lt $current_month ]]; then
continue
fi
month_string=$(printf "%02d" "$month")
mkdir -pv Archive/"$year"/"$month_string"
done
done
This example script will create folders under the current directory named Archive/YYYY/MM starting with the current month and till the end of the year 5 years in the future.
(How to create a new folder with a keyboard shortcut on a Mac tested with macOS Sequoia 15.0, Sonoma 14.3, Ventura 13.3 and Monterey 12.3; first published March 2022, last updated September 2024)