[root@cheat ~]#keyboard_backspaceBack

cp -r

Copy files or directories recursively. The -r flag copies directories and their contents.

Primary Syntax
$ cp -r source/ target/
#

Example Usage

cp -r /home/user/docs/ /backup/
#

Quick Tips

Use man cp to read the full manual

Add --help flag for quick options reference

Combine with | less for paginated output

Submitted by: admin

Added: 2/9/2026

arrow_back