- Linux Training
- Desktop Tutorials
- Server Tutorials
|Linux Commands - Basic Commands|
This command moves files.
mv mytext /home/fred
The file mytext is moved to the /home/fred directory and is given the name mytext.
-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