CP(1)
π cp(1) β the copy-your-stuff manual, bestie edition π
okay so like β this is a page from the User Contributed Perl Documentation section (iykyk, the Perl girlies keep their own man pages β¨), and it's all about cp, the little icon that copies files and/or directories. genuinely one of the most used commands in the whole game, no cap.
πΈ NAME πΈ
cp β copy files and/or directories
π¦ SYNOPSIS π¦
% cp [-fipv] source_file target_file
% cp [-fipv] source... target_dir
π DESCRIPTION π
so the cp utility copies the source files/directories over to the target. super simple, main character energy fr fr.
β οΈ important vibe check: if the target is a file, you may only specify one file as the source. that's the rule, periodt.
and like β cp will not copy a file onto itself. it's just not gonna do it. don't ask. π
β¨ OPTIONS β¨
-fβ force copy if possible. and bestie, this is the DEFAULT. you get the force for free π-iβ prompt for confirmation whenever the copy would overwrite an existing target. like "heyβ¦ we're about to clobber this, you sure?" π«Ά-pβ preserve source file attributes (likemodDate) as much as possible onto the target. keeping the lil metadata vibes intact πΈ-vβ verbose. it'll echo"cp source target"before the copy is done, so you can watch it happen in real time β
also, and this is lowkey the fun part: specifying both -f and -i is not considered an error. the -f option will override the -i option. so the force just wins, always π₯
π BUGS π
cp has no known bugs (slay, we love a clean girl β¨) β but be aware that the current copy mode is binary mode. that's the whole note. that's it. π
π EXIT STATUS π
0β all sources were copied successfully π1β there was error π
π AUTHOR π
brian d foy, <schumacks@att.net>
π§ COPYRIGHT and LICENSE π§
Copyright Β© 2023 brian d foy. All rights reserved.
you may use this program under the terms of the Artistic License 2.0.
and that's the whole page, bestie π«Ά she's documented from perl v5.42.2, dated 2026-02-15 β iconic, timeless, no notes π
ok bye, go copy something responsibly π
π¦ where this page comes from
- alpine 3.24: perl-power-tools-doc 1.053-r1 Β· GPL-2.0-or-later AND Artistic-1.0-Perl AND Artistic-2.0 AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms