ctrtool renameat2 is a wrapper for the renameat2() system call.
mv, ctrtool renameat2 always uses the renameat2() system call directly and does not fall back to copying and deleting the file or directory tree if it fails (e.g. if the source and target are not on the same filesystem); this is useful if the exact semantics of the system call are required (e.g. moving a file to a different location atomically or with the requirement that it not replace any existing file, or to atomically swap two files or directories)
- This end-user documentation is part of ctrtool. Reproduction and use of this material for any purpose is permitted, provided that a link to this page is provided as attribution.