mv (or move) is a Unix/Linux command that moves one or many files or directories from one place to another.
mv is usually used for two purposes:
- It rename a file or folder.
- It moves group of files to different directory.
mv syntax and usage should be straightforward. However, when you’re learning to use Linux for the first time or when you’ve come to Linux with a solid background in another operating system, you may run into some things that it doesn’t allow.
If you’ve ever received a Directory not empty
when trying to move files or directories, then this guide can help you.
Read moreHow to fix “Directory not empty” when using mv in Linux