Question about transfering DVD Package files to /var...

R. Wood rw at ncf.ca
Wed Nov 25 03:16:28 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> > > > "too long of a list" for what?  Is cp actually throwing an error
> > > > that it can't handle such things?  Or are you just running out
> > > > of disk space / patience?
> > >
> > > The Disk is 320 Gigs, I'm using about 99 Gigs of it, and there are
> > > about 87 Gigs left for Ubuntu 9.04. So I'm not running out of Disk
> > > Space. cp is actually throwing out the error, even when there are
> > > just about 2000 Package Files to Copy or Move over, instead of
> > > 26,939, it says the list is too long.
> >
> > Now that's darn interesting.  I had no idea cp had a file number
> > limit.  (ln and such are still better routes, but just for fun I'd
> > venture that the only way around this is a shell script to split it
> > into
> 
> I ran into these type of problems in the past with cp and rm.  I think
> it comes from the star that the shell must expands into an actual list
> of filenames to pass to the command; at one point it gets too long.  I
> don't think it is a limit on the number of files, but it is a limit on
> the number of characters of all these filenames lined up together.
> -- 
> Daniel Robitaille

I wonder if using 'find' followed by either '-exec' or 'xargs' is a
workaround for the 'cp/mv' limitation?

Just a thought...

Have Fun with GNU/Linux,
Raymond
- -- 
"Be Nice, or Leave - By Order of the Management"
(Sign above door, Black Sheep Inn, Wakefield)
GPG Fingerprint: 2E4D 8605 DD48 E80F F893  1C02 B65D 86D9 3B3C 0E03
Encrypted E-mail Preferred
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFLDKGMtl2G2Ts8DgMRAoN6AKDUenJKAw+lTn+vY9zhSx2m6/Ca2gCfdec8
1sFx5t13cbsnrvVmUxyJ5ps=
=XQog
-----END PGP SIGNATURE-----




More information about the ubuntu-ca mailing list