Languages
[Edit]
EN

Bash - copy directory recursively

0 points
Created by:
Dirask Admin - Marvin
1820

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

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