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)
[](https://man7.org/linux/man-pages/man1/exch.1.html#NAME)NAME top
exch - atomically exchanges paths between two files
[](https://man7.org/linux/man-pages/man1/exch.1.html#SYNOPSIS)SYNOPSIS top
exch oldpath newpath
[](https://man7.org/linux/man-pages/man1/exch.1.html#DESCRIPTION)DESCRIPTION top
exch atomically exchanges oldpath and newpath. exch is a simple command wrapping RENAME_EXCHANGE of renameat2 system call.
[](https://man7.org/linux/man-pages/man1/exch.1.html#OPTIONS)OPTIONS top
-h, --help Display help text and exit.
-V, --version Display version and exit.
[](https://man7.org/linux/man-pages/man1/exch.1.html#EXIT%5FSTATUS)EXIT STATUS top
exch has the following exit status values:
0 success
1 unspecified failure
[](https://man7.org/linux/man-pages/man1/exch.1.html#AUTHORS)AUTHORS top
Masatake YAMATO <yamato@redhat.com>
[](https://man7.org/linux/man-pages/man1/exch.1.html#SEE%5FALSO)SEE ALSO top
[](https://man7.org/linux/man-pages/man1/exch.1.html#REPORTING%5FBUGS)REPORTING BUGS top
For bug reports, use the issue tracker <<https://github.com/util-linux/util-linux/issues>>.
[](https://man7.org/linux/man-pages/man1/exch.1.html#AVAILABILITY)AVAILABILITY top
The exch command is part of the util-linux package which can be downloaded from Linux Kernel Archive <<https://www.kernel.org/pub/linux/utils/util-linux/>>. This page is part of the util-linux (a random collection of Linux utilities) project. Information about the project can be found at ⟨<https://www.kernel.org/pub/linux/utils/util-linux/>⟩. If you have a bug report for this manual page, send it to util-linux@vger.kernel.org. This page was obtained from the project's upstream Git repository ⟨git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git⟩ on 2026-05-24. (At that time, the date of the most recent commit that was found in the repository was 2026-05-20.) If you discover any rendering problems in this HTML version of the page, or you believe there is a better or more up-to-date source for the page, or you have corrections or improvements to the information in this COLOPHON (which is not part of the original manual page), send a mail to man-pages@man7.org
util-linux 2.43.devel-739-eee2e 2026-05-24 EXCH(1)
---
