cp : add cp_test for cp_merge without any writes.
This commit is contained in:
parent
9084647898
commit
9ce84b823d
|
@ -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 <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_merge <FROM> <TO>`|Mirror directories. Same as `rsync --delete`.
|
||||||
`cp_link <FROM> <TO>`|Copy directory by recursively creating hardlinks and directories.
|
`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.
|
`bcp <FROM> <TO>`|Default `cp` command.
|
||||||
|
|
||||||
## Date.
|
## Date.
|
||||||
|
|
|
@ -9,3 +9,6 @@ alias cp_link="/usr/bin/cp -lr"
|
||||||
|
|
||||||
# default cp, a.k.a builtin cp.
|
# default cp, a.k.a builtin cp.
|
||||||
alias bcp="/usr/bin/cp"
|
alias bcp="/usr/bin/cp"
|
||||||
|
|
||||||
|
# cp_merge without writing anything.
|
||||||
|
alias cp_test="rsync -ahP --chmod=u+w --delete -n"
|
||||||
|
|
Reference in a new issue