Linux commando cp leren (Solved)

Ondersteuningsforum voor Nederlandstalige gebruikers

Moderator: Moem

Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
pvdlee
Level 3
Level 3
Posts: 113
Joined: Wed Jul 12, 2017 8:54 am

Linux commando cp leren (Solved)

Post by pvdlee »

Ik ben een beginneling in Linux en probeer de commandos te gebruiken
probeer nu het commando cp
Heb twee mappen test1 en test2 in mijn home map
in test1 staan twee bestanden doc1 en doc1
ik sta met de terminal in de home map en probeer met het commando
cp /test1/* /test2
de bestanden doc1 en doc2 naar test2 te copieren
dan krijg ik als reactie map of bestand bestaat niet
ga ik in de map test1 staan en geef dan het commando
cp * ../test2
dan gaat het goed
Waarom gaat het fout op het andere commando
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Peter
philotux

Re: Linux commando cp leren

Post by philotux »

(Ik had hulp van google translate.)

Try:

Code: Select all

cp test1/* test2
pvdlee
Level 3
Level 3
Posts: 113
Joined: Wed Jul 12, 2017 8:54 am

Re: Linux commando cp leren (Solved)

Post by pvdlee »

ik had dus de begin slash moeten weglaten
Peter
philotux

Re: Linux commando cp leren (Solved)

Post by philotux »

Ja, dat was niet nodig.

(Vertaald uit Engels door Google Translate)
Locked

Return to “Nederlands - Dutch”