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.mdMoving a file from the current directory to another nested directory:
mv report.csv archives/report.csvMoving a file from the current directory, to the parent directory:
mv invoice.pdf ../invoice.pdfIf 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/