How to move a file up one folder level on a Mac
Turn on the path bar with View > Show Path Bar, then drag the file onto the name of the enclosing folder in the bar along the bottom of the window. That moves it up a level without opening a second window. From the keyboard, press Command-C on the file, Command-Up Arrow to go to the enclosing folder, then Option-Command-V to move it there.
Why this is awkward in the first place
A Finder window shows the inside of one folder. The folder that contains it is not in the window, so in icon view or list view there is nothing to drop the file onto. Finder has no “move up” command in any menu either.
Most people solve it by opening a second window, finding the parent folder in it, lining the two windows up and dragging across. That works, but it is a lot of setup for a move of one step. The methods below skip it.
Drop it on the path bar
- Open the folder that holds the file.
- Choose View > Show Path Bar, or press Option-Command-P. A row of folder names appears along the bottom of the window.
- Drag the file down onto the name of the enclosing folder. The name highlights when the pointer is over it.
- Let go.
The file moves into that folder and disappears from the window you are looking at.
The bar reads from left to right, from the disk down to where you are. Once you click a file, the file itself becomes the last entry. The folder you are in comes just before it, and the enclosing folder is the one before that. Go by the names instead of counting positions and you will not drop it in the wrong place.
Every folder in the bar accepts a drop, so moving a file up two or three levels is the same drag with a different target. If the window is narrow, the names collapse to icons. Rest the pointer on one and it expands, or make the window wider before you start.
Use column view
Column view puts the hierarchy on screen, which makes this job plain.
- Press Command-3 to switch the window to column view.
- Find the file in the rightmost column of files. The column to its left shows the contents of the enclosing folder.
- Drag the file left and drop it on an empty part of that column.
If the column has no empty space, drop the file on any ordinary document in it. The whole column highlights to show that the folder it represents is the target. Avoid letting go over a folder in that column, which would send the file into that folder instead. If that happens, press Command-Z straight away.
Move it from the keyboard
- Select the file.
- Press Command-C. Nothing happens yet; Finder has only noted which file you mean.
- Press Command-Up Arrow. The window switches to the enclosing folder. The same command is in the menu bar as Go > Enclosing Folder.
- Press Option-Command-V. The file moves here from where it was.
Plain Command-V in step 4 would make a copy and leave the original behind. Holding Option is what turns the paste into a move. How to cut and paste files on a Mac goes through that shortcut in more detail.
This is the quickest method once it is in your fingers, and it works on a selection of many files as well as it does on one.
Open the enclosing folder in its own window
If you would like to see both folders while you work, press Control-Command-Up Arrow. The enclosing folder opens in a new window and the original window stays where it was. Drag the file from one to the other. How to open two Finder windows side by side on a Mac covers arranging them.
Do it in Terminal
For a file you already have a terminal open on, two dots mean “the enclosing folder”:
cd ~/Projects/site/drafts
mv -n logo.png ..
The -n tells mv never to replace a file that already exists at the destination. To move every file of one type up a level, use a pattern such as mv -n *.png .. in place of the single name. Command-Z in Finder will not undo a move made in Terminal, so check the names before you press Return.
When up one level is only half the trip
The path bar is hard to beat for a single hop. The move gets harder in three common cases:
- The file needs to go up and then down again into a sibling folder, for example from drafts into final. That folder is not in the path bar, because the bar shows only the line of folders above you.
- You are pulling files out of several subfolders into the project folder above them, a few at a time.
- The destination is many levels up and somewhere else entirely, and you are not sure where until you look.
In each case you end up holding a file while you navigate, or opening extra windows to avoid that.
Ledge gives the file somewhere to wait. Drag it up to the notch at the top of the screen and let go; it lands on a shelf that drops from the notch and stays there. Your hands are free, so navigate however you like: Command-Up Arrow to climb, a click into a sibling folder, a jump through the sidebar. When the window shows the place the file belongs, open the shelf with Option-Space or a click on the notch and drag the file into the window. Finder receives the file itself, so it moves there.
For the second case, visit each subfolder in turn, put what you want on the shelf, and drop the whole set into the project folder at the end. On a Mac without a notch, the shelf sits at the top center of the screen and works the same way.
To be clear about the division of labor: Ledge does not know your folder structure and does not read or index your files. It holds what you drag to it until you take it somewhere. For one step up inside one window, the path bar is quicker and needs nothing installed. The shelf earns its place when the trip has more than one leg. If the goal is to empty a whole tree of subfolders, how to move files out of subfolders into one folder on a Mac has faster ways.
Questions
Is there a single shortcut that moves a file up a level?
No. Finder has no such command. The closest is the sequence Command-C, Command-Up Arrow, Option-Command-V, which takes about a second once you know it.
What if a file with the same name is already in the enclosing folder?
Finder stops and asks whether to keep both, replace the existing one or skip the move. When Finder says an item with the same name already exists explains each choice.
How do I undo it?
Press Command-Z in Finder right after the move and the file goes back to the folder it came from. This works for drags and for Option-Command-V, though not for moves made in Terminal.