Languages
[Edit]
EN

Bash - copy directory recursively

0 points
Created by:
Nataniel-Barclay
499

This article will show you how to copy a directory and its contents to a new location under a new directory name in Bash.

Quick solution:

#!/bin/bash

cp -r ./SourceFolder ./DestinationFolder

Before:

Before copy command

After:

After copy command
After copy command

Alternative titles

  1. Bash - copy all directory and files recursive
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

Bash

Bash - copy directory recursively
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join