Linux移动文件


 description

在Linux中,将当前目录下的file1.txt file2.txt文件移动至 /home/test 中

 command

mv -i file1.txt file2.txt /home/test 

 parameter

mv :  将文件重命名,或移动目录
-i, --interactive :  覆盖前提示

 result

mv: overwrite 'test/file1.txt'? 

I hope to help every developer quickly find the commands they need. Of course, you can also add your own commonly used commands for easy searching.