Cp
Cp combines staging, committing, and pushing into a single streamlined action. It auto-generates conventional commit messages based on your changes, protects against accidental pushes to main branches, and scans for leaked secrets before committing.
Cp stages, commits, and pushes your git changes in one command with built-in safety checks.
AI-generated summary based on this skill's SKILL.md
Install
october-academy/agent-plugins/cp · repository language: HTML
git clone https://github.com/october-academy/agent-plugins
cp -r agent-plugins ~/.claude/skills/cpgenerated, unverified - the skill's exact subdirectory could not be determined; check the repository on GitHub
npx skillfed install october-academy/agent-plugins/cpFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
What is the cp command and how do you use it to copy files?
Cp is a command-line utility for copying files and directories in terminal environments. The basic syntax is `cp source destination`, where source is the file you want to copy and destination is where it should go. Cp handles both single files and multiple files, making it essential for file management in Unix and Linux systems.
What are the main cp command options and flags?
Cp supports several important flags: `-r` or `-R` for recursive copying of directories and their contents, `-i` for interactive mode (prompts before overwriting), `-v` for verbose output showing each file copied, and `-p` to preserve file permissions and timestamps. These options let you customize cp's behavior for different copying scenarios.
How do you copy a file to a directory using cp?
To copy a file to a directory with cp, use `cp filename directory_name`. The file will be copied into that directory with its original name. If you want to rename it during the copy, use `cp filename directory_name/newname`. Cp automatically handles placing the file in the target directory.
How do you copy files in terminal with recursive copying?
Cp's recursive option `-r` enables copying entire directory structures. Use `cp -r source_directory destination_directory` to copy a directory and all its contents, including subdirectories and files. This is essential for backing up or duplicating complex folder hierarchies in command-line environments.
What are practical examples of cp command usage?
Common cp examples include: `cp file.txt backup.txt` (copy single file), `cp *.txt /backup/` (copy all text files), `cp -r /home/user/docs /backup/docs` (copy directory recursively), and `cp -v file1 file2 file3 /destination/` (copy multiple files with verbose output). These cover typical file copying scenarios.
What is the cp command syntax for copying multiple files?
Cp syntax for multiple files is `cp file1 file2 file3 ... destination`. List all source files before the final destination argument. You can also use wildcards like `cp *.log /archive/` to copy all files matching a pattern. The last argument is always treated as the destination.