Contents
To move files, use the mv command (man mv), which is similar to the cp command, except that with mv the file is physically moved from one place to another, instead of being duplicated, as with cp. Common options available with mv include: -i — interactive.
How do I move a file in Linux?
Here’s how it’s done:
- Open up the Nautilus file manager.
- Locate the file you want to move and right-click said file.
- From the pop-up menu (Figure 1) select the “Move To” option.
- When the Select Destination window opens, navigate to the new location for the file.
- Once you’ve located the destination folder, click Select.
How do I move a file from one directory to another in Linux?
HowTo: Move A Folder In Linux Using mv Command
- mv documents /backups. …
- mv * /nas03/users/home/v/vivek. …
- mv /home/tom/foo /home/tom/bar /home/jerry.
- cd /home/tom mv foo bar /home/jerry. …
- mv -v /home/tom/foo /home/tom/bar /home/jerry. …
- mv -i foo /tmp.