[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Wed, 12 Apr 2023 15:41:35 +0100
Gottfried <email@example.com> writes:
> [[PGP Signed Part:Undecided]]
> I have constantly problems to copy something to my external harddrive, because
> it needs root rights.
> I can do it only in the commandline, which gives me a lot of trouble, e.g.
> I want to copy all directories at once.
> I don’t know the command for it.
What do you mean, specifically, by "copying all directories at once"?
If you mean copying everything in a specific directory, you could try:
sudo cp ORIGINAL-DIRECTORY/* HARDDRIVE-DIRECTORY
This command uses a /wildcard/, *, which expands the word
'ORIGINAL-DIRECTORY' to multiple words, one for each member of
If you mean copying multiple directories, just do:
sudo cp DIRECTORY-1 DIRECTORY-2 DIRECTORY-3 HARDDRIVE-DIRECTORY
Commands aren't as scary as they seem from afar. I'd highly recommend
you take the time to learn about them :)