mv command to MOVE Files and Directories - 8 useful and advance Examples - SP 10:
mv file1 ./F2/
Move file1 to parent folder F2
mv file1 ./F2/file1
Move file1 to parent folder F2 same as pervious example
mv file1 file2
Rename file1 with new name file2 at same location
mv file1 /home/ec2-user/file1
Move file to another absolute location inside ec2-user
mv /home/ec2-user/file1 file1
Move file from another location ec2-user and copy it in current terminal directory location.
mv file1 file2 file3 ./F2/
Moving multiple files (3 files) using single command
mv F5/* ./F2/
Move all files and folders iteratively (recursively)
mv –v file1 ./F2/
Display the Verbose output during the moving of file1