cp命令
2018-04-20 本文已影响116人
Persisting
今天给同事发文件,摸索到一个可以把文件所在的目录都copy的参数,特地分享一下
cp -dpRv --parents
$ cp -dpRv --parents external/sepolicy/access_vectors ./patch/
external -> ./patch/external
external/sepolicy -> ./patch/external/sepolicy
今天给同事发文件,摸索到一个可以把文件所在的目录都copy的参数,特地分享一下
cp -dpRv --parents
$ cp -dpRv --parents external/sepolicy/access_vectors ./patch/
external -> ./patch/external
external/sepolicy -> ./patch/external/sepolicy