Copying a File
Make a spare copy of a file.
cp is short for "copy". You give it two things: the file to copy from, then the name to copy it to. Read it left to right, like a sentence: copy shopping.txt to backup.txt. The original is left exactly as it was.
Copying something before you change it is a habit worth having. It costs nothing and it has saved a great many afternoons.
ls afterwards and you will see two files holding the same shopping list.
cp shopping.txt backup.txtCopy a file to a new name.cp notes/ideas.txt .Copy a file into this folder (. means "here").Your task
- ○Make a copy of shopping.txt
- ○Check both files exist with ls
Open this level in your browser to type the commands at a live terminal that answers back.