exch(1) - Linux manual page
man7.org > Linux > man-pages
Linux/UNIX system programming training
exch(1) — Linux manual page
NAME | SYNOPSIS | DESCRIPTION | OPTIONS | EXIT STATUS | AUTHORS | SEE ALSO | REPORTING BUGS | AVAILABILITY
EXCH(1) User Commands EXCH(1)
NAME top
exch - atomically exchanges paths between two files
SYNOPSIS top
exch oldpath newpath
DESCRIPTION top
exch atomically exchanges oldpath and newpath. exch is a simple<br>command wrapping RENAME_EXCHANGE of renameat2 system call.
OPTIONS top
-h , --help<br>Display help text and exit.
-V , --version<br>Display version and exit.
EXIT STATUS top
exch has the following exit status values:
success
unspecified failure
AUTHORS top
Masatake YAMATO
SEE ALSO top
renameat2(2)
REPORTING BUGS top
For bug reports, use the issue tracker<br>https://github.com/util-linux/util-linux/issues>.
AVAILABILITY top
The exch command is part of the util-linux package which can be<br>downloaded from Linux Kernel Archive<br>https://www.kernel.org/pub/linux/utils/util-linux/>. This page is<br>part of the util-linux (a random collection of Linux utilities)<br>project. Information about the project can be found at<br>⟨https://www.kernel.org/pub/linux/utils/util-linux/⟩. If you have a<br>bug report for this manual page, send it to<br>util-linux@vger.kernel.org. This page was obtained from the<br>project's upstream Git repository<br>⟨git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git⟩ on<br>2026-05-24. (At that time, the date of the most recent commit that<br>was found in the repository was 2026-05-20.) If you discover any<br>rendering problems in this HTML version of the page, or you<br>believe there is a better or more up-to-date source for the page,<br>or you have corrections or improvements to the information in this<br>COLOPHON (which is not part of the original manual page), send a<br>mail to man-pages@man7.org
util-linux 2.43.devel-739-eee2e 2026-05-24 EXCH(1)
HTML rendering created 2026-05-30<br>by Michael Kerrisk,<br>author of<br>The Linux Programming Interface.
For details of in-depth<br>Linux/UNIX system programming training courses<br>that I teach, look here.
Hosting by jambit GmbH.