codex-lv2-may-2025

Navigation

1 | 2 | 3 | 4 | Current Level: 5 | 6 | 7


Lesson: Copy Files and Directories Using cp


Step 1: Copy a File


Step 2: Copy a Directory


Step 3: What Happens If You Omit -r


Step 4: Rename a File with a Typo


Step 5: Predicting Output with Move and Copy

Given this sequence of commands:

pwd
# /Users/jamie/data

ls
# proteins.dat

mkdir recombined
mv proteins.dat recombined/
cp recombined/proteins.dat ../proteins-saved.dat
ls

Final output of ls:

proteins-saved.dat  recombined

Reflection Questions


Navigation

1 | 2 | 3 | 4 | Current Level: 5 | 6 | 7