Answer the question
In order to leave comments, you need to log in
How to merge two folders in Ubuntu 15.10?
The tree is now:
.
|-- dir1
| |-- a
| | |-- file1.txt
| | `-- file2.txt
| |-- b
| | `-- file3.txt
| `-- c
| `-- file4.txt
`-- dir2
|-- a
| |-- file5.txt
| `-- file6.txt
|-- b
| |-- file7.txt
| `-- file8.txt
`-- c
|-- file10.txt
`-- file9.txt
merged/
|-- a
| |-- file1.txt
| |-- file2.txt
| |-- file5.txt
| `-- file6.txt
|-- b
| |-- file3.txt
| |-- file7.txt
| `-- file8.txt
`-- c
|-- file10.txt
|-- file4.txt
`-- file9.txt
Answer the question
In order to leave comments, you need to log in
$ mkdir merged
$ mv dir1 merged
$ mv dir2 merged
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question