Skip to content
zero2vibecodelearn vibe coding

What cp -r does

Copy a whole folder, contents and all.

cp-rmyfolderbackup
  • cpcommand — copy
  • -rflag — copy a folder recursively
  • myfolderargument: a file, a folder, or text
  • backupargument: a file, a folder, or text

What it does when you run it

$ cp -r myfolder backup
$ ls backup
keep.txt

Run it yourself

The same files. Nothing here can break, and nothing leaves your browser.

Explain other commands

Written by Mikhail Kuzmitskii