mv src dest

Move or rename a file or directory

mv moves or renames in one operation. mv works on directories too. No -r needed. Unlike cp, mv does not leave the original behind.

Example

$ mv deploy.sh.bak deploy.sh
$ ls
deploy.sh
Tip: Type it yourself in the terminal below - reading is not the same as doing.