How can I copy files?
You will often want to copy files,
move them into other directories to organize them,
or rename them.
One command to do this is cp, which is short for "copy".
If original.txt is an existing file,
then:
cp original.txt duplicate.txt
creates a copy of original.txt called duplicate.txt.
If there already was a file called duplicate.txt,
it is overwritten.
If the last parameter to cp is an existing directory,
then a command like:
cp seasonal/autumn.csv seasonal/winter.csv backup
copies all of the files into that directory.
Deze oefening maakt deel uit van de cursus
Introduction to Shell
Praktische interactieve oefening
Zet theorie om in actie met een van onze interactieve oefeningen.
Begin met trainen