Home
1.1.
序言
1.2.
环境
1.3.
脚本
1.4.
复制文件
1.5.
变量
1.6.
字符串
1.7.
函数
Published with GitBook
复制文件
cp
cp,用来复制文件或文件夹。
常用参数
-R 或 --recursive 递归处理,将指定目录下的文件及子目录一并处理。
-f 或 --force 强行复制文件或目录,不论目的文件或目录是否已经存在。
如何将多个文件、文件夹拷贝到某个目录
cp -R file1 file2 file3 dir1 dir2
上述命令同时将文件file1、file2、file3与目录dir1复制到dir2
results matching "
"
No results matching "
"