Skip to content

Instantly share code, notes, and snippets.

@montgomerykern
Last active February 8, 2016 06:35
Show Gist options
  • Save montgomerykern/25d7ae31d4d9b3b7bfc1 to your computer and use it in GitHub Desktop.
Save montgomerykern/25d7ae31d4d9b3b7bfc1 to your computer and use it in GitHub Desktop.
Moving Files in Linux with the MV Command
# mv source dest
# mv /path/to/source /path/to/dest
#
# mv /var/www/vhost/domain.com /var/www/html/
How do I Move Multiple Directories?
Use the following syntax to move dir1 and dir2 to /path/to/dest/ directory:
$ mv -v dir1 dir2 /path/to/dest/
$ ls -l /path/to/dest/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment