FG
💻 Software

Unix: How to merge two directories

Fresh7 days ago
Mar 15, 202635528 views
Confidence Score0%
0%

Problem

Say I have two folders with various content, and . How can I merge into so that: Files in that are not in are untouched. Files in that are not in are now in . Files in that are also in have been replaced by the files from .

Error Output

foo

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Unix: How to merge two directories

Low Risk

If I'm reading your requirements correctly, there's no files that go from to . It looks like you can just copy the contents of to , letting it overwrite files as necessary (its default behavior).

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment