Problem Statement
Which command moves files in Linux?
Explanation
mv is used to move files or rename them. When used between different directories, it transfers the file.
If used within the same directory with a new name, it simply renames the file.
Code Solution
SolutionRead Only
mv file.txt /home/user/docs/
Practice Sets
This question appears in the following practice sets: