Mv (Unix)

mv
Original author(s)Ken Thompson, Dennis Ritchie
(AT&T Bell Laboratories)
Developer(s)Various open-source and commercial developers
Initial releaseNovember 3, 1971 (1971-11-03)
Operating systemUnix, Unix-like, Inferno, IBM i
PlatformCross-platform
TypeCommand
Licensecoreutils: GPLv3

mv is a shell command for renaming and moving files and directories. If both items are on the same file system, the command renames; otherwise items are copied to the destination and the old items are removed (more specifically unlinked). To move between two directories, the user must have write permission for both because the command modifies the content of both. For a rename, an item's timestamp is not modified.

On Unix implementations derived from AT&T Unix, cp, ln and mv are implemented as a single program with hard-linked binaries.


© MMXXIII Rich X Search. We shall prevail. All rights reserved. Rich X Search