Argument list too long error for rm, cp, mv commands

前端 未结 27 2782
长情又很酷
长情又很酷 2020-11-22 04:50

I have several hundred PDFs under a directory in UNIX. The names of the PDFs are really long (approx. 60 chars).

When I try to delete all PDFs together using the fol

27条回答
  •  南方客
    南方客 (楼主)
    2020-11-22 05:08

    i was facing same problem while copying form source directory to destination

    source directory had files ~3 lakcs

    i used cp with option -r and it's worked for me

    cp -r abc/ def/

    it will copy all files from abc to def without giving warning of Argument list too long

提交回复
热议问题