mv command is used to move file from one directory to another. Syntax: mv source destination $ mv /Desktop/August/2016/Olympics/Swimming/file.txt /Documents Solution mv command is used to move file from one directory to another. Syntax: mv source destination $ mv /Desktop/August/2016/Olympics/Swimming/file.txt /Documents.