What command is used to move or rename a file in Linux?

QuestionsQuestions8 SkillsProBasic Files OperationsNov, 15 2025
082

In Linux, the command used to move or rename a file is mv.

Usage:

  • To Move a File:
    mv source_file destination_directory/
  • To Rename a File:
    mv old_filename new_filename

Summary

The mv command can be used both to move files to a different location and to rename files within the same directory. If you have more questions or need examples, feel free to ask!

0 Comments

no data
Be the first to share your comment!