| # Starting Directory Comparison Or Merge

Prev | Directory Comparison and Merge with KDiff3 | Next

## Starting Directory Comparison Or Merge

This is very similar to the single file merge and comparison. You just have to specify directories on the command line or in the file-open dialog.

### Compare/Merge two directories:

       kdiff3 dir1 dir2
       kdiff3 dir1 dir2 -o destdir

If no destination directory is specified, then KDiff3 will use `dir2`.

### Compare/Merge three directories:

       kdiff3 dir1 dir2 dir3
       kdiff3 dir1 dir2 dir3 -o destdir

When three directories are merged then `dir1` is used as the base for the merge. If no destination directory is specified, then KDiff3 will use `dir3` as the destination directory for the merge.

Note that only the comparison starts automatically, not the merge. For this you first must select a menu entry or the key F7. (More details later.)