Line At A Time
Level 14: Moving and Renaming
Moving and Renaming Rename a file, then move it into a folder.

mv is short for "move". With a plain name on the right, it is a rename: same file, same contents, new label.

With a FOLDER name on the right, the very same command moves the file into that folder, keeping its name. Bash has no separate rename command, because moving and renaming really are the same idea: you are changing where a name points.

ls notes will list that folder without you walking over there, which is a neat trick in itself.

mv backup.txt old-list.txtRename a file.
mv old-list.txt notesMove a file into a folder.
ls notesList another folder from here.
Your task
  • Rename backup.txt to something else
  • Move that file into the notes folder
  • List the notes folder to check

Open this level in your browser to type the commands at a live terminal that answers back.