move file linux cmd code example Example 1: move command in linux mv filename dirname Example 2: linux command to move a file to another directory mv filename directoryname