move a directory to another directory code example Example 1: how to move file in directory in linux mv file dir Example 2: command line move file mv file.txt ~/Desktop/Folder