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)