Closed hyojinsarchet closed 7 years ago
Good Job!
The mv
command is typically used to "move" files, but it can also rename them depending on if the second option is a directory.
In this step dorothy was inside of house:
~/homework/house/dorothy
But oz
was outside of house: ~/homework/oz
When you used the command mv dorothy oz
from within ~/homework/house
, you were telling the terminal: "Move a file in the current directory named dorothy
, into a directory also in the current directory, named oz
, but if oz
is not found, rename dorothy
to oz
"
In order to make the command perform the move, we need to ensure that the destination is a directory: mv dorothy ../oz
This tells the command to look for oz
one directory level above the house folder
[ To Oz? To Oz! ]
[ Ding! Dong! The Witch is Dead ]
[ Follow the Yellow Brick Road ]
[ You Must Kill the Witch ]