[CentOS] -bash: /bin/mv: Argument list too long

William L. Maltby BillsCentOS at triad.rr.com
Thu Jun 15 14:54:10 UTC 2006


On Thu, 2006-06-15 at 22:41 +0800, Mark Quitoriano wrote:
> what's a workaround for this?
> 
> -bash: /bin/mv: Argument list too long

More info? Well, presuming you want to move a whole (sub-directory) of
stuff, the quick and painless way is a find piped to cpio. You'll need
to review a cpio or find man page, but something like this might be
useful

   find [abc]* -depth | cpio -pdumav </your/target/directory>

The "-depth" is optional, but has uses. The cpio "a" resets the access
time (a problem if your source is read only, drop it) and the "v" says
be noisy about your job.

HTH

> <snip>

-- 
Bill
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.centos.org/pipermail/centos/attachments/20060615/8640006b/attachment.sig>


More information about the CentOS mailing list