cp : add cp_test for cp_merge without any writes.

This commit is contained in:
Dmitry Voronin 2023-12-02 22:18:10 +03:00
parent 9084647898
commit 9ce84b823d
2 changed files with 4 additions and 0 deletions

View file

@ -422,6 +422,7 @@ Command|Description
`cp <FROM> <TO>`|Copy files or dirs. Actually, it is an alias for `rsync -ahP`. Multiple `<FROM>` could be specified.
`cp_merge <FROM> <TO>`|Mirror directories. Same as `rsync --delete`.
`cp_link <FROM> <TO>`|Copy directory by recursively creating hardlinks and directories.
`cp_test <FROM> <TO>`|Test cp_merge without writing anything.
`bcp <FROM> <TO>`|Default `cp` command.
## Date.

View file

@ -9,3 +9,6 @@ alias cp_link="/usr/bin/cp -lr"
# default cp, a.k.a builtin cp.
alias bcp="/usr/bin/cp"
# cp_merge without writing anything.
alias cp_test="rsync -ahP --chmod=u+w --delete -n"