Content-type: text/html; charset=UTF-8 Man page of EXCH

EXCH

Section: User Commands (1)
Updated: 2026-04-28
Index Return to Main Contents
 

NAME

exch - atomically exchanges paths between two files  

SYNOPSIS

exch oldpath newpath  

DESCRIPTION

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
 

AUTHORS

 

SEE ALSO

renameat2(2)  

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


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXIT STATUS
AUTHORS
SEE ALSO
REPORTING BUGS
AVAILABILITY

This document was created by man2html, using the manual pages.
Time: 11:48:44 GMT, September 14, 2026