help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nautilus-admin


From: carl hansen
Subject: Re: nautilus-admin
Date: Wed, 12 Apr 2023 21:06:08 -0700

cp -a   somedir/   wheresomedirshouldgo/
-a  "archive" means
Recursive
create links
preserve times, ownership


On Wed, Apr 12, 2023 at 8:28 AM Gottfried <gottfried@posteo.de> wrote:
>
> Hi,
>
> I mean to copy everything, all directories and files including all
> sub-directories (which are 40 directories and 40 files) on the external
> harddrive /SD-Card to an other external hard drive
>
> > If you mean copying multiple directories, just do:
> >>
> >>    sudo cp DIRECTORY-1 DIRECTORY-2 DIRECTORY-3 HARDDRIVE-DIRECTORY
>
>
> I don’t want to write every of the 40 directories and of the 40 files by
> hand but think
> there is a command to copy all at once.
>
> I was looking on the internet for this,
> but didn’t find any command.
>
> > Commands aren't as scary as they seem from afar.  I'd highly recommend
> >> you take the time to learn about them :)
>
> I have a book about Terminal commands,
> but there I couldn’t find what I need.
>
>
> Kind regards
>
> Gottfried
>
>
>
> Am 12.04.23 um 16:41 schrieb (:
> > 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 :)
>
> --
>
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]