Synopsis
| |
swap [options] file_or_dir1 file_or_dir2 |
-c,--copy | Use if swapping directories in different file systems |
-d,--dryrun | Show what would be done |
-h | print this help and exit |
-H, --help | show full documentation via less and exit |
-V,--version | print version and exit |
Description
swap swaps the names of two files or two directories. It makes sure that those both exist, are writable, are both either directories or regular files, and are not the same file. If the two are on different devices,
swap makes sure that the
--copy option was used. Ownerships and permissions of the files must be the same.
Author
Wybo Dekker
Copyright
Released under the
GNU General Public License