我常用cp命令复制文件和文件夹都会遇到的问题,比如:
/example
|--/a
|--/b
|--/c
|--/d
|--/e.txt
……(假设此目录有上千个文件)
/example2
|--/f
我想用拷贝exmaple目录下所有的子目录和文件到example2可以用:
cp -rf /exmaple/* /example2
但如果我不想拷贝其中的/exmaple/d/ 这个子目录到 /example2,要怎么做?
/example
|--/a
|--/b
|--/c
|--/d
|--/e.txt
……(假设此目录有上千个文件)
/example2
|--/f
我想用拷贝exmaple目录下所有的子目录和文件到example2可以用:
cp -rf /exmaple/* /example2
但如果我不想拷贝其中的/exmaple/d/ 这个子目录到 /example2,要怎么做?