ArticleslgStudy

computer science

Midnight Commander

Midnight Commander is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Midnight Commander rather than just read about it. In short: 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.

Midnight Commander — main illustration
Midnight Commander — illustration

Key takeaways

  • Midnight Commander belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Midnight Commander to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Midnight Commander from memory before moving on to harder problems.

Reference excerpt

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

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 F4 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 F1 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.

See also

far2l, Far Manager port for *nix systems ranger, a file manager based on ncurses and python Norton Commander-inspired software Comparison of file managers

References

External links

Official website Midnight Commander for Windows on SourceForge

Illustrations

Midnight Commander illustration
Midnight Commander: Classic old appearance
Classic old appearance

Worked examples

Example 1 — a first encounter with Midnight Commander

Start with the simplest possible case. Write down what Midnight Commander claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Midnight Commander before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Midnight Commander ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Midnight Commander

In research
Midnight Commander appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Midnight Commander in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Midnight Commander is common in secondary-school and first-year university syllabi. It links to neighbouring topics Console applications, File managers for Microsoft Windows, Files transferred over shell clients, so understanding it makes those chapters shorter.
In everyday life
Look for Midnight Commander outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Midnight Commander” →

How to study Midnight Commander in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Midnight Commander means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Midnight Commander out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Midnight Commander in simple terms?

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.

Why does Midnight Commander matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Midnight Commander?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Midnight Commander.

Tags

  • Console applications
  • File managers for Microsoft Windows
  • Files transferred over shell clients
  • Free FTP clients
  • Free file managers
  • Free software that uses ncurses
  • GNU Project software
  • Linux file system-related software
  • Orthodox file managers
  • Software that uses S-Lang
  • Unix file system-related software

Keep exploring