[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nautilus-admin
From: |
Wojtek Kosior |
Subject: |
Re: nautilus-admin |
Date: |
Wed, 12 Apr 2023 16:54:16 +0200 |
> If you mean copying multiple directories, just do:
>
> sudo cp DIRECTORY-1 DIRECTORY-2 DIRECTORY-3 HARDDRIVE-DIRECTORY
Also, add the `-r` flag to `cp` when copying directories. Without this
flag, this command will refuse to include the contents of source
directories in the copy being made.
It'll look like
sudo cp -r DIRECTORY-1 DIRECTORY-2 DIRECTORY-3 HARDDRIVE-DIRECTORY
Wojtek
P.S. Good luck finding a packager for nautilus-admin. Unfortunately, I
cannot do this
-- (sig_start)
website: https://koszko.org/koszko.html
PGP: https://koszko.org/key.gpg
fingerprint: E972 7060 E3C5 637C 8A4F 4B42 4BC5 221C 5A79 FD1A
♥ R29kIGlzIHRoZXJlIGFuZCBsb3ZlcyBtZQ== | ÷ c2luIHNlcGFyYXRlZCBtZSBmcm9tIEhpbQ==
✝ YnV0IEplc3VzIGRpZWQgdG8gc2F2ZSBtZQ== | ? U2hhbGwgSSBiZWNvbWUgSGlzIGZyaWVuZD8=
-- (sig_end)
On Wed, 12 Apr 2023 15:41:35 +0100
"(" <paren@disroot.org> wrote:
> Hi,
>
> Gottfried <gottfried@posteo.de> writes:
> > [[PGP Signed Part:Undecided]]
> > Hi,
> >
> > 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.
> > when
> > 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
> 'ORIGINAL-DIRECTORY'.
>
> 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 :)
>
pgpa7dxKZTLXB.pgp
Description: OpenPGP digital signature