How to move file in linux


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


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


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


mv: overwrite 'test/file1.txt'? 
Was this helpful?

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.