Maldives Maldives;Muzzle Velocity
Linux mv command syntax
Function: The mv command is used to rename files or directories, or move files or directories to other locations.
Syntax: mv [options] source dest or mv [options] source... directory
Linux mv command example
Rename the file aaa to bbb:
mv aaa bbb
Put the info directory into the logs directory. Note that if the logs directory does not exist, this command will rename info to logs.
mv info/ logs
Another example is to move all files and directories under /usr/student to the current directory. The command line is:
$ mv /usr/student/* .