Move a file to another directory
move a file in linux | move a folder | move a file out of the web root | linux mv to directory | mv | move | filesCaution: This command changes the system. Understand what it does before you run it.
mv -i -- /var/www/vhosts/example.com/httpdocs/old.zip /var/www/vhosts/example.com/private/Moves QUELLE into the target folder and keeps the file name. The trailing slash makes mv fail with an error if the target folder does not exist, instead of saving the file under that name. -i asks before overwriting a file with the same name in the target.
Note: Within the same file system this is instant, across partitions the data is copied and then deleted.
Also searched as
- move a file in linux
- move a folder
- move a file out of the web root
- linux mv to directory