linux mv files to another directory code example Example 1: move command in linux mv filename dirname Example 2: how to move file from one directory to another in linux mv file1 /tmp