📜  使用 cp 命令复制多个源 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:24.353000             🧑  作者: Mango

代码示例1
# You can use the following to copy multiple files from the same dir
# into another dir
# No space between after the comma

cp /path/to/source/dir/{file1,file2,file3} /path/to/dest/dir

# Another way that allows one to copy different sources from different locations
# into a dir is to use the "-t" option
# Note that the destination folder must come first

cp -t /path/to/dest file1 file2 file3