How Do I Move a Directory in Linux?

How Do I Move a Directory in Linux?
Contents

How do I move an entire directory in Linux?

HowTo: Move A Folder In Linux Using mv Command

  1. mv documents /backups.
  2. mv * /nas03/users/home/v/vivek.
  3. mv /home/tom/foo /home/tom/bar /home/jerry.
  4. cd /home/tom mv foo bar /home/jerry.
  5. mv -v /home/tom/foo /home/tom/bar /home/jerry.
  6. mv -i foo /tmp.

15 сент. 2012 г.

How do I move a directory in Linux command line?

To move a directory using the mv command pass the name of the directory to move followed by the destination.

James H. Sterling
Author

James H. Sterling

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.