Windows robocopy /xo equivalent in Linux
Copies only files that are newer than existing destination files.
robocopy /xo
rsync -au source/ destination/
rsync -au source/ destination/
rsync -au source/ destination/
Overview
What this command does
On Windows, "robocopy /xo" is used to skip older source files. On Linux, the closest practical mapping shown here is "rsync -au source/ destination/". Copies only files that are newer than existing destination files. This reference is grouped under File Management → Copy/Move.
Windows → Linux context
What changes when you use this on Linux?
Equivalent task, different tool
Windows robocopy /xo maps to rsync -au source/ destination/ for this task. Treat this as a workflow mapping rather than a character-for-character syntax translation.
Portable across the compared distros
The Debian/Ubuntu, Fedora and Arch rows use the same command in this mapping. Package availability or defaults can still vary, so check the installed tool version when an option behaves differently.
For the broader concept behind this mapping, read Linux filesystem for Windows users.
Practical tasks
Common use cases
Skip older source files
Copies only files that are newer than existing destination files.
rsync -au source/ destination/
Skip older source files
rsync --help
Show command help when supported
man rsync
Open the manual page when installed
Ready to run
Copyable Linux commands
Review paths, device names, package names and permissions before running any command.
rsync -au source/ destination/
Walkthrough
Examples with explanations
# Windows equivalent: robocopy /xo
rsync -au source/ destination/
Reference
Common options and variations
| Command or option | Use |
|---|---|
rsync -au source/ destination/ | Skip older source files |
rsync --help | Show command help when supported |
man rsync | Open the manual page when installed |
Distro differences
Debian/Ubuntu vs Fedora vs Arch
Debian/Ubuntu, Fedora and Arch all use "rsync -au source/ destination/" for this mapping. The command syntax shown here is portable across the three rows, although installed versions and system defaults can still vary.
| Distribution | Package manager / base | Equivalent command | Difference to notice |
|---|---|---|---|
| Debian/Ubuntu | same command | rsync -au source/ destination/ |
Same command on this distribution. |
| Fedora | same command | rsync -au source/ destination/ |
Same command on this distribution. |
| Arch | same command | rsync -au source/ destination/ |
Same command on this distribution. |
Keep learning