FAQ: Manipulation - mv

This community-built FAQ covers the “mv” exercise from the lesson “Manipulation”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Web Development

Learn the Command Line

FAQs on the exercise mv

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

"To rename a file, use mv with the old file as the first argument and the new file as the second argument. By moving batman.txt into spiderman.txt , we rename the file as spiderman.txt "

please explain more specific, when move a txt(1) to other txt(2), it mean we move the content? and then the txt(1) will be deleted?

rename? it become 2 similar txt or one’ll be deleted?

2 Likes

Yeah this seems weird - it doesn’t seem like a rename, but a delete and replace?

The code is not working. Could someone tell me what’s going on? I have even refreshed the page!

I have the same problem! Do u know how to solve this already?

did you ever get a solution to this ridiculous issue? I’m having the same roadblock.

Hello @marquetry (and @array1489718941 and @5585635017)!

This exact issue is being discussed here.

1 Like

Hi all!

I’ve typed in the exact command as it is stated in order to navigate to the comedy/slapstick/ directory:
" cd …/…/comedy/slapstick/ "

however I receive an error message saying that there’s no such file or directory:

What happens here, considering I am entering the command exactly as Codecademy states?

Thanks for the help,

Isabella

Hello @isabellafiore9439475 and welcome to the Codecademy Forums!

The exercises in this course can be a bit buggy sometimes. The exercise expects you to start off in the directory you were in for the last exercise. In other words, although your command is correct, the slapstick/ directory doesn’t exist if you use the specified file path. Please see this response on another topic; it will solve the issue.