mv
Linux Commands - Basic Commands

mv

This command moves files.


Example:

mv mytext /home/fred


The file mytext is moved to the /home/fred directory and is given the name mytext.


Options

-b create backup before moving

-f remove existing destination files without asking

-i prompt before overwriting destination files

-S set a new suffix

-u don't move a file to an existing location with same

or newer file