summaryrefslogtreecommitdiffstats
path: root/misc-utils/exch.1.adoc
blob: b1c51d41ba45c36169b56875bcb1853d107191b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//po4a: entry man manual
= exch(1)
:doctype: manpage
:man manual: User Commands
:man source: util-linux {release-version}
:page-layout: base
:command: exch

== 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

include::man-common/help-version.adoc[]

== EXIT STATUS

*exch* has the following exit status values:

*0*::
success
*1*::
unspecified failure

== AUTHORS

mailto:yamato@redhat.com[Masatake YAMATO]

== SEE ALSO

*renameat2*(2)

include::man-common/bugreports.adoc[]

include::man-common/footer.adoc[]

ifdef::translation[]
include::man-common/translation.adoc[]
endif::[]