Linux mv command purpose file management
Question
What is the purpose of the mv
command in Linux?
Answer
The mv
command in Linux is used to move or rename files and directories. When moving, it transfers the file to a specified location; when renaming, it changes the file's name in the same directory.