今天给同事发文件,摸索到一个可以把文件所在的目录都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
本文标题:cp命令
本文链接:https://www.haomeiwen.com/subject/cayakftx.html
网友评论