How to move file in linux


 description

In Linux, move the file1.txt file2.txt file in the current directory to /home/test

 command

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

 parameter

mv :  rename the file, or move the directory
-i, --interactive :  prompt before overwriting

 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.