cp - copy files and directories - Video Man Pages @DistroTube
cp - copy files and directories - Video Man Pages  @DistroTube
Uploaded June 2025 | Updated November 2026, 4 days ago
The 'cp' command is used to copy files and directories to another location.

- Copy a file to a new file:
cp path/to/source_file path/to/target_file

- Copy a file into another directory and keeping the same filename:
cp path/to/source_file path/to/another_directory

- Recursively copy a directory's contents to another location:
cp -r path/to/source_directory path/to/target_directory

NOTE: If the target directory exists, the source directory is copied inside it. If the target directory does not exist, it is created and the contents of the source directory are copied into the target directory.

- Copy a directory recursively, in verbose mode:
cp -rv path/to/source_directory path/to/target_directory

- Copy multiple files at once to a target directory:
cp -t path/to/target_directory file1 file2 ...

- Copy all files with a specific extension to target directory:
cp *.ext path/to/target_directory

- Copy in interactive mode prompting user before overwriting files:
cp -i *.ext path/to/target_directory

VIDMAN:
gitlab.com/dwt1/vidman

WANT TO SUPPORT THE CHANNEL?
πŸ’° Patreon: patreon.com/distrotube
πŸ’³ Paypal: youtube.com/redirect?event=channel_banner&redir_token=QUFFLUhqazNocEhiaGFBT1l1MnRHbnlIcHFKbXJWVnpQd3xBQ3Jtc0tsLVZJc19YeFlwZ2JqbXVOa3g0Skw4TVhTV2otNm1tM3A1bUNnamh3S2V6OGQtLTBnSjBxYTlvUXMxeEVIS3o4US10NENHMUQ3STk2a01FOFBhUnZjZFctMEhFUTg1TVctQmFfVUdxZXJ4TDl0azlYNA&q=https%3A%2F%2Fwww.paypal.com%2Fcgi-bin%2Fwebscr%3Fcmd%3D_donations%26business%3Dderek%2540distrotube%252ecom%26lc%3DUS%26item_name%3DDistroTube%26no_note%3D0%26currency_code%3DUSD%26bn%3DPP%252dDonationsBF%253abtn_donateCC_LG%252egif%253aNonHostedGuest
πŸ›οΈ Amazon: amzn.to/2RotFFi
πŸ‘• Teespring: teespring.com/stores/distrotube

DT ON THE WEB:
πŸ•ΈοΈ Website: http://distro.tube
πŸ“ GitLab: gitlab.com/dwt1
πŸ—¨οΈ Mastodon: fosstodon.org/@distrotube
πŸ‘« Reddit: reddit.com/r/DistroTube
πŸ“½οΈ Odysee: odysee.com/@DistroTube:2

FREE AND OPEN SOURCE SOFTWARE THAT I LIKE:
🌐 Brave Browser - brave.com
πŸ“½οΈ Open Broadcaster Software: obsproject.com
🎬 Kdenlive: kdenlive.org
🎨 GIMP: gimp.org
πŸ’» VirtualBox: virtualbox.org
πŸ—’οΈ Doom Emacs: github.com/hlissner/doom-emacs

Your support is very much appreciated. Thanks, guys!
cp - copy files and directories - Video Man PagesWindows, Mac, ChromeOS and Linux...Theres A Difference!A.I. Will Make Linux More Popular (Despite What The A.I. Bigots Say!)7 Aliases That Make The Terminal Great AgainA Quick Look At Ubuntu 25.04 Plucky PuffinTaking Notes With Emacs Org Mode (Its Easy!)wc - count words lines and bytes - Video Man PagesA StormOS Live StreamChat With Patrons (Aug 31, 2025)Linux...So Much Has Changed In The Last 20 YearsHow To Become A Computer Power User (In 5 Steps!)A Quick Look At Gnoppix A I
DistroTube |

'cp' - copy files and directories - Video Man Pages

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER