Run mkdir lab, then cp projects/hello.txt lab/hello-copy.txt.
mkdir labcp projects/hello.txt lab/hello-copy.txt
Duplicate and rename project files while checking paths before and after.
Files and pathscpmvlscat
Click any instruction for the command details, the why, and the common mistake to avoid.
Run mkdir lab, then cp projects/hello.txt lab/hello-copy.txt.
mkdir labcp projects/hello.txt lab/hello-copy.txt
Run mv lab/hello-copy.txt lab/renamed.txt.
mv lab/hello-copy.txt lab/renamed.txt
Run cat lab/renamed.txt.
cat lab/renamed.txt
Create a free account to sync completed lessons, XP, streaks, course status, and your next lesson across sessions.
Checking account status...
Progress sync is idle.
Progress sync stores completion IDs, scores, streaks, badges, and game settings. Terminal contents, editor snippets, lab scratch, email, and real names are never published on leaderboards or share cards.
Use cp and mv without losing track of source and destination.
Copy /home/learner/projects/hello.txt into lab after making lab.
Copy and move mistakes are easy to prevent with a quick ls or cat.
ls [-la] [path]
List lab files and folders.
cat <file>
Print text file contents.
cp <src> <dst>
Copy a file.
mv <src> <dst>
Move or rename a file.
lsof
Show simulated files and sockets opened by services.