exch - Man Page

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

Print version and exit.

Exit Status

exch has the following exit status values:

0

success

1

unspecified failure

Authors

Masatake YAMATO

See Also

renameat2(2)

Reporting Bugs

For bug reports, use the issue tracker at 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.

Info

2024-03-20 util-linux 2.40