move files shell code example Example 1: how to move file in directory in linux mv file dir Example 2: linux command to move a file to another directory mv filename directoryname