EXCH(1)
๐ซ EXCH(1) โ like, the exch page, bestie ๐ซ
User Commands โจ it's giving "tiny command, huge power" โจ
๐ธ NAME ๐ธ
exch โ atomically exchanges paths between two files
๐ฆ SYNOPSIS ๐ฆ
exch oldpath newpath
๐ DESCRIPTION ๐
okay so listen. exch atomically exchanges oldpath and newpath. that's it, that's the whole job, and it does it flawlessly.
the way it works is that exch is a simple command wrapping RENAME_EXCHANGE of the renameat2 system call. so it's not out here doing something cursed and homemade โ it's just a cute lil wrapper around the real syscall. iconic behavior, honestly. ๐ซถ
โจ OPTIONS โจ
-h,--helpโ shows you the help text and then dips. ๐-V,--versionโ shows you the version and then dips. ๐
๐ EXIT STATUS ๐
exch has these exit status values, and yes we're going to go through all of them:
0โ success ๐ (we love to see it)1โ unspecified failure ๐ญ (ngl, "unspecified" is doing a lot of heavy lifting here)
๐ง AUTHORS ๐ง
Masatake YAMATO <yamato@redhat.com> โ thank you for your service, legend ๐ซก๐
๐ SEE ALSO ๐
๐ REPORTING BUGS ๐
found a bug? don't suffer in silence, bestie. for bug reports, use the issue tracker: https://github.com/util-linux/util-linux/issues
fr fr, they want to know. the issue tracker is literally right there. ๐
โญ AVAILABILITY โญ
the exch command is part of the util-linux package, which you can download from the Linux Kernel Archive: https://www.kernel.org/pub/linux/utils/util-linux/ ๐ธ
and that's the whole page, bestie!! this one came from util-linux 2.42.4, dated 2026-09-21. go swap some paths, you absolute main character ๐โจ๐
๐ฆ where this page comes from
- arch rolling: util-linux 2.42.4-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ISC AND LGPL-2.1-or-later AND LicenseRef-PublicDomain
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms