recursive option
A command option, usually -r or -R, that makes the command act on a directory and everything inside it, all the way down.
In more detail
cp -R copies a whole tree, rm -r deletes one, grep -r searches one and chmod -R changes one. Without it most commands treat a directory as a single entry or refuse it.
Related terms
- cp — The command that copies files, and with -R whole directory trees.
- rm — The command that deletes files, and with -r whole directory trees, permanently.
- grep — The command that prints the lines of its input that match a pattern.
Taught in
- Making, Copying, Moving And Removing — Bash Scripting & Command Line Automation
- Finding Lines: grep And Regular Expressions — Bash Scripting & Command Line Automation