xcp is a (partial) clone of the Unix cp command.
It is not intended as a full replacement, but as a companion utility with some more user-friendly feedback and some optimisations that make sense under certain tasks.
This is free and open source software.
Key Features
- Displays a progress-bar, both for directory and single file copies. This can be disabled with –no-progress.
- On Linux it uses copy_file_range call to copy files. This is the most efficient method of file-copying under Linux; in particular it is filesystem-aware, and can massively speed-up copies on network mounts by performing the copy operations server-side. However, unlike copy_file_range sparse files are detected and handled appropriately.
- Optimised for ‘modern’ systems (i.e. multiple cores, copious RAM, and solid-state disks, especially ones connected into the main system bus, e.g. NVMe).
- Optional aggressive parallelism for systems with parallel IO. Quick experiments on a modern laptop suggest there may be benefits to parallel copies on NVMe disks. This is obviously highly system-dependent.
- Switchable ‘drivers’ to facilitate experimenting with alternative strategies for copy optimisation. Currently 2 drivers are available:
- ‘parfile’: the previous hard-coded xcp copy method, which parallelises tree-walking and per-file copying. This is the default.
- ‘parblock’: An experimental driver that parallelises copying at the block level. This has the potential for performance improvements in some architectures, but increases complexity.
- Non-Linux Unix-like OSs (OS X, *BSD) are supported via fall-back operation (although sparse-files are not yet supported in this case).
- Optionally understands .gitignore files to limit the copied directories.
- Optional native file-globbing.
Website: github.com/tarka/xcp
Support:
Developer: Steve Smith
License: GNU General Public License v3.0

xcp is written in Rust. Learn Rust with our recommended free books and free tutorials.
Related Software
| Alternatives to cp | |
|---|---|
| xcp | Extended cp written in Rust |
| fcp | Significantly faster alternative to cp |
| gcp | Goffi's cp, a fancy file copier |
| pycp | cp and mv with a progressbar |
| rsync | Fast incremental file transfer |
| Fast Unix Commands | Provides alternatives for rm and cp |
| renameutils | Make copying files faster and less cumbersome |
| cpy-cli | Accepts globs and creates non-existent destination directories. |
| cpz | Zippy alternative to cp |
| lunas | Syncing tool handling more than two directories locally and remotely |
| BCMR | Better Copy Move Remove |
| cpx | Modern replacement for the traditional cp command |
| advcpmv | Patch for cp |
| RCP Tools | Manage large filesets |
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |

