A
A
alex stephen2015-04-23 11:50:03
bash
alex stephen, 2015-04-23 11:50:03

How to copy hrenalion files in ubuntu?

Actually, subject.
On a Mesozoic netbook with Xubuntu 14, there is a folder with a bunch of small files on board (a million, let's say). You need to copy them to another screw.
The usual cp path/*.* pathto/*.* first thinks for a long time, then returns an error (something like Argument list too long). Through the built-in graphical file manager, the percentage hangs at 10%.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
3
3vi1_0n3, 2015-04-23
@berezuev

On the old machine
Copy the file to the new one. On the new one:
Copying many files file by file is much slower in any way than packing with tar, copying and unpacking

E
egor_nullptr, 2015-04-23
@egor_nullptr

rsync

J
jcmvbkbc, 2015-04-23
@jcmvbkbc

The usual cp path/*.* pathto/*.* first thinks for a long time, then returns an error (something like Argument list too long).

Well, remove the asterisks and don't force the shell.
cd path ; cp -a . path to

A
Andrew, 2015-05-08
@caa888

You can also try find, it works faster than just cp:
the mechanism is as follows:
files are searched in the desired directory, for each found file, the cp path/*.* pathto/*.* copy command is executed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question