xcp(1)
π xcp(1) β proof-of-concept cp(1) with alternate copying mechanisms π
πΈ Name πΈ
xcp β proof-of-concept cp(1) with alternate copying mechanisms. bestie, itβs giving βwhat if copying files had more drama?β β¨
π Syntax π
xcp [-d] [-m|--mmap] [-s|--splice] fromfile tofile
β¨ Description β¨
Copies the file from src to dst using mmap(2) or splice(2) instead of the read(2)-write(2) cycle that is normally used. mmap may actually be faster than the r/w cycle ππ₯
π Options π
-dβ callsmmap(2)on both the source and destination, and does amemcpy(3). double mmap energy, no cap π«Ά-m,--mmapβ callsmmap(2)on the source and useswrite(2)for the destination. mmap on one side, write on the other, iconic β¨-s,--spliceβ callssplice(2)on apipe(2)pair. this is silly, but it is what it is becausesplice(2)does not support file-to-file transfers ππ«
π okay bye bestie! this page came from hxtools, dated 2008-11-11, and itβs xcp(1) β mwah! π
π¦ where this page comes from
- nixos 26.05: hxtools 20251011
- nixpkgs unstable: hxtools 20251011
- opensuse-leap 16.0: hxtools-man 20231224-bp160.1.12 Β· GPL-2.0-or-later AND WTFPL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms