mvdir moves directories within a file system. dirname must be a directory. If name does not exist, it will be created as a directory.
If name does exist, and is a directory, dirname will be created as name/dirname. dirname and name may not be on the same path; that is, one may not be subordinate to the other. For example: