Unix cp argument list too long

后端 未结 6 984
情歌与酒
情歌与酒 2021-02-19 04:37

I am using AIX.

When I try to copy all the file in a folder to another folder with the following command:

cp ./00012524/*.PDF ./dummy01

The

6条回答
  •  忘掉有多难
    2021-02-19 05:00

    The best command to copy large number of files from one directory to another.

    find /path/to/source/ -name "*" -exec cp -ruf "{}" /path/to/destination/ \;

    This helped me a lot.

提交回复
热议问题