The move command moves a file or directory from one location to another. You can use it to rename a file or to move it to a different directory altogether. If you’re moving a directory, it can’t be your current working directory in Learn Linux

Renaming a file:

mv draft.md final.md

Moving a file from the current directory to another nested directory:

mv report.csv archives/report.csv

Moving a file from the current directory, to the parent directory:

mv invoice.pdf ../invoice.pdf

If you don’t want to rename the file and you’re just moving it to a different directory, you can omit the filename:

mv photo.png images/