This repository has been archived on 2024-03-04. You can view files and clone it, but cannot push or open issues or pull requests.
linux/.linux/bash/module/cp.sh

12 lines
316 B
Bash
Raw Normal View History

2023-08-08 16:24:15 +03:00
# replace default cp with rsync.
alias cp="rsync -ahP --chmod=u+w"
# copy and also merge all changes (delete dst files that do not exist in src).
alias cp_merge="rsync -ahP --chmod=u+w --delete"
# copy by creating hardlinks.
alias cp_link="/usr/bin/cp -lr"
# default cp, a.k.a builtin cp.
alias bcp="/usr/bin/cp"