carta
exch(1)

exch1

Atomically exchanges paths between two files

Usage

exch oldpath newpath

Overview

exch atomically exchanges oldpath and newpath. exch is a simple command wrapping RENAME_EXCHANGE of renameat2 system call.

Options

-h, --help

Display help text and exit.

-V, --version

Display version and exit.

Exit status

exch has the following exit status values:

0

success

1

unspecified failure

History

  • Arch Linux 2026-11-01: the text shown here
  • Debian 13 (Trixie)

Authors

Masatake YAMATO <[email protected]>

Reporting bugs

For bug reports, use the issue tracker <https://github.com/util-linux/util-linux/issues>.

Availability

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/>.

From util-linux 2.42.4-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.