MV command is the abbreviation for move, commonly used to file, directory, 1): Mobile, 2): renaming
1. Usage
MV [Options] [parameters:]
2. Command options
-B When the file exists, before overwriting, create a backup for it;
-F,--force not ask before overwriting
-I,--interactive ask before overwriting
-N,--no-clobber does not overwrite existing files, if you specify multiple in-I,-F,-N, only the last one takes effect.
-U,--update Update if the target file exists and source is newer
3. Example
1) Rename the file and rename Test.txt to Aaa.txt
ls Anaconda-ks.cfg test mv test.txt lsaaa.txt Anaconda-ks.cfg Test
2) Move the file and move the aaa.txt to the test directory
mv aaa.txt test/~]# Tree.├──anaconda-ks.cfg└──test └──aaa.txt
The MV command is the abbreviation for move, which can be used to move files or rename files, which is also a common command, often used to back up files or directories.
Linux MV Command