Midnight Commander

Orthodox file manager


title: "Midnight Commander" type: doc version: 1 created: 2026-02-28 author: "Wikipedia contributors" status: active scope: public tags: ["free-file-managers", "free-ftp-clients", "files-transferred-over-shell-clients", "gnu-project-software", "orthodox-file-managers", "software-that-uses-s-lang", "free-software-that-uses-ncurses", "linux-file-system-related-software", "unix-file-system-related-software", "file-managers-for-microsoft-windows", "console-applications"] description: "Orthodox file manager" topic_path: "technology/operating-systems" source: "https://en.wikipedia.org/wiki/Midnight_Commander" license: "CC BY-SA 4.0" wikipedia_page_id: 0 wikipedia_revision_id: 0

::summary Orthodox file manager ::

::data[format=table title="Infobox software"]

FieldValue
captionMidnight Commander running in a terminal window on Ubuntu Linux
screenshotMidnight Commander 4.7.0.9 on Ubuntu 11.04.png
developerMiguel de Icaza, community
released
latest release version
latest release date
latest preview version
latest preview date
operating_systemUnix-like including macOS; Windows (unofficial)
programming languageC
language count51
language footnote
genreFile manager
licenseGPL-3.0-or-later
website
::

| logo = | caption = Midnight Commander running in a terminal window on Ubuntu Linux | screenshot = Midnight Commander 4.7.0.9 on Ubuntu 11.04.png | developer = Miguel de Icaza, community | released = | latest release version = | latest release date = | latest preview version = | latest preview date = | operating_system = Unix-like including macOS; Windows (unofficial) | programming language = C | language count = 51 | language footnote = | genre = File manager | license = GPL-3.0-or-later | website =

GNU Midnight Commander (also known as mc, the command used to start it, and as mouseless commander in older versions) is a free cross-platform orthodox file manager. It was started by Miguel de Icaza in 1994 as a clone of the then-popular Norton Commander.

GNU Midnight Commander is part of the GNU project and is licensed under the terms of the GNU General Public License.

Design

::figure[src="https://upload.wikimedia.org/wikipedia/commons/6/6b/Midnight_Commander_screenshot.png" caption="Classic old appearance"] ::

Midnight Commander is a console application with a text user interface. The main interface consists of two panels which display the file system. File selection is done using arrow keys, the insert key is used to select files and the function keys perform operations such as renaming, editing and copying files. Later versions of the Midnight Commander additionally have mouse support. Such versions are aware of GPM and X terminal emulators (such as GNOME Terminal or xterm) which support mouse reporting. When running inside an X terminal, these versions can update the name of the window in which Midnight Commander runs (if allowed by the terminal emulator).

Midnight Commander's features include the ability to view the contents of RPM package files, to work with common archive formats as if they were simply another directory, and to function as an FTP or FISH client. Midnight Commander also includes an editor called mcedit, which can be executed as a standalone program or from Midnight Commander using the key. mcedit's features include syntax highlighting for many languages, macros, code snippets, simple integration with external tools, automatic indentation, mouse support, a clipboard and the ability to work in both ASCII and hex modes. Users also have the option to replace mcedit with the editor of their choice Options Menu Configuration [Don't] Use Internal Edit.

Midnight Commander can also rename groups of files, unlike a number of other file managers that can only rename one file at a time. This is convenient for manipulating large collections of files, e.g. to make them conform to a new naming convention. Midnight Commander can also move files to a different directory at the same time as it renames them. It lets the user specify the original and resulting file names using wildcard characters. This makes the power of regular expressions available for renaming files, with a convenient user interface. In addition, the user can select whether or not to use "shell patterns" or "globs" (automatic grouping of wildcards). All of these features are available by using the File Rename/Move menu selection. (Pressing would then produce a brief explanation of the options, including examples of how to use wildcards.)

Midnight Commander is based on versatile text interfaces, such as Ncurses or S-Lang, which allow it to work on a regular console, inside an X terminal, over SSH connections, over an RS-232 interface (for embedded devices) and all kinds of remote shells.

Unicode support

Native support for UTF-8 locales for Unicode was added in 2009 to development versions of Midnight Commander. As of version 4.7.0, mc has had Unicode support.

References

References

  1. Bezroukov, Nikolai. (2011-12-16). "History of development of Midnight Commander". softpanorama.org.
  2. (March 2022). "LINGUAS". Midnight Commander.
  3. Miguel de Icaza. (9 December 2015). "Midnight Commander was originally "Mouseless Commander", then "MouseLess commander with Mouse Support" then "Midnight Commander" via a vote.".
  4. (20 August 2002). "Favorite minimalist file managers".
  5. "Midnight Commander".
  6. [http://www.linux-magazin.de/NEWS/Wiederbelebt-Midnight-Commander-4.7 Wiederbelebt: Midnight Commander 4.7], By Marcel Hilzinger, 29.12.2009, Linux-Magazin

::callout[type=info title="Wikipedia Source"] This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page. ::

free-file-managersfree-ftp-clientsfiles-transferred-over-shell-clientsgnu-project-softwareorthodox-file-managerssoftware-that-uses-s-langfree-software-that-uses-ncurseslinux-file-system-related-softwareunix-file-system-related-softwarefile-managers-for-microsoft-windowsconsole-applications