Moving a file
Verify both paths after a move.
Power User
Lesson goal
Verify both paths after a move.
How it works
mv moves or renames a file. Inspect the destination first, then verify the contents and the original path.
mkdir ~/archive
cp ~/notes/first.txt ~/draft.txt
mv ~/draft.txt ~/archive/final.txt
ls ~/archiveTry it
Repeat in the terminal and open the new file with cat.