<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" href="mandoc.css" type="text/css" media="all"/>
<title>MCDIFF(1)</title>
</head>
<body>
<table class="head">
<tr>
<td class="head-ltitle">MCDIFF(1)</td>
<td class="head-vol">GNU Midnight Commander</td>
<td class="head-rtitle">MCDIFF(1)</td>
</tr>
</table>
<div class="manual-text">
<section class="Sh">
<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
<p class="Pp">mcdiff - Internal diff viewer of GNU Midnight Commander.</p>
</section>
<section class="Sh">
<h1 class="Sh" id="USAGE"><a class="permalink" href="#USAGE">USAGE</a></h1>
<p class="Pp"><b>mcdiff</b> [-bcCdfhstVx?] file1 file2</p>
</section>
<section class="Sh">
<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
<p class="Pp">mcdiff is a link to <b>mc</b>, the main GNU Midnight Commander
executable. Executing GNU Midnight Commander under this name requests
starting the internal diff viewer which compares <i>file1</i> and
<i>file2</i> specified on the command line.</p>
</section>
<section class="Sh">
<h1 class="Sh" id="OPTIONS"><a class="permalink" href="#OPTIONS">OPTIONS</a></h1>
<dl class="Bl-tag">
<dt id="b"><a class="permalink" href="#b"><i>-b</i></a></dt>
<dd>Force black and white display.</dd>
<dt id="c"><a class="permalink" href="#c"><i>-c</i></a></dt>
<dd>Force color mode on terminals where <b>mcdiff</b> defaults to black and
white.</dd>
<dt id="C"><a class="permalink" href="#C"><i>-C
<keyword>=<fgcolor>,<bgcolor>,<attributes>:<keyword>=
...</i></a></dt>
<dd>Specify a different color set. See the <b>Colors</b> section in mc(1) for
more information.</dd>
<dt id="d"><a class="permalink" href="#d"><i>-d</i></a></dt>
<dd>Disable mouse support.</dd>
<dt id="f"><a class="permalink" href="#f"><i>-f</i></a></dt>
<dd>Display the compiled-in search paths for Midnight Commander files.</dd>
<dt id="t"><a class="permalink" href="#t"><i>-t</i></a></dt>
<dd>Used only if the code was compiled with S-Lang and terminfo: it makes the
Midnight Commander use the value of the <b>TERMCAP</b> variable for the
terminal information instead of the information on the system wide
terminal database</dd>
<dt id="V"><a class="permalink" href="#V"><i>-V</i></a></dt>
<dd>Displays the version of the program.</dd>
<dt id="x"><a class="permalink" href="#x"><i>-x</i></a></dt>
<dd>Forces xterm mode. Used when running on xterm-capable terminals (two
screen modes, and able to send mouse escape sequences).</dd>
</dl>
</section>
<section class="Sh">
<h1 class="Sh" id="COLORS"><a class="permalink" href="#COLORS">COLORS</a></h1>
<p class="Pp">The default colors may be changed by appending to the
<b>MC_COLOR_TABLE</b> environment variable. Foreground and background colors
pairs may be specified for example with:</p>
<p class="Pp"></p>
<pre>MC_COLOR_TABLE="$MC_COLOR_TABLE:\
normal=lightgray,black:\
selected=black,green"</pre>
</section>
<section class="Sh">
<h1 class="Sh" id="FILES"><a class="permalink" href="#FILES">FILES</a></h1>
<p class="Pp"><i>/__w/mc/mc/install-prefix/share/mc/mc.hlp</i></p>
<dl class="Bl-tag">
<dt></dt>
<dd>The help file for the program.</dd>
</dl>
<p class="Pp"><i>/__w/mc/mc/install-prefix/share/mc/mc.ini</i></p>
<dl class="Bl-tag">
<dt></dt>
<dd>The default system-wide setup for GNU Midnight Commander, used only if the
user's own ~/.config/mc/ini file is missing.</dd>
</dl>
<p class="Pp"><i>/__w/mc/mc/install-prefix/share/mc/mc.lib</i></p>
<dl class="Bl-tag">
<dt></dt>
<dd>Global settings for the Midnight Commander. Settings in this file affect
all users, whether they have ~/.config/mc/ini or not.</dd>
</dl>
<p class="Pp"><i>~/.config/mc/ini</i></p>
<dl class="Bl-tag">
<dt></dt>
<dd>User's own setup. If this file is present, the setup is loaded from here
instead of the system-wide startup file.</dd>
</dl>
</section>
<section class="Sh">
<h1 class="Sh" id="LICENSE"><a class="permalink" href="#LICENSE">LICENSE</a></h1>
<p class="Pp">This program is distributed under the terms of the GNU General
Public License as published by the Free Software Foundation. See the
built-in help of the Midnight Commander for details on the License and the
lack of warranty.</p>
</section>
<section class="Sh">
<h1 class="Sh" id="AVAILABILITY"><a class="permalink" href="#AVAILABILITY">AVAILABILITY</a></h1>
<p class="Pp">The latest version of this program can be found at
https://ftp.osuosl.org/pub/midnightcommander/ .</p>
</section>
<section class="Sh">
<h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
ALSO</a></h1>
<p class="Pp">mc(1), mcedit(1), mcview(1)</p>
</section>
<section class="Sh">
<h1 class="Sh" id="BUGS"><a class="permalink" href="#BUGS">BUGS</a></h1>
<p class="Pp">Bugs should be reported to
https://github.com/MidnightCommander/mc/issues .</p>
</section>
</div>
<table class="foot">
<tr>
<td class="foot-date">December 2025</td>
<td class="foot-os">MC Version 2d0ec82</td>
</tr>
</table>
</body>
</html>