Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix NowHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk9 min

How to Install and Use Midnight Commander on a Linux Server

A practical guide to installing GNU Midnight Commander on Debian, Ubuntu, Fedora, and Red Hat-family servers, then using its two-panel interface safely over SSH.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Install GNU Midnight Commander from your Linux distribution’s repository, connect to the server with SSH, and run mc. On Ubuntu or Debian, use sudo apt update && sudo apt install mc; on Fedora or other distributions using DNF, use sudo dnf install mc. After installation, mc gives you a two-panel, full-screen file manager that works directly in a terminal, including an SSH session.

The key safety rule is to verify both panel paths before copying, moving, renaming, or deleting anything. The selected panel is the active side; common file operations use the other, unselected panel as their destination.

As an Amazon Associate I earn from qualifying purchases.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What Midnight Commander does on a server

GNU Midnight Commander (usually abbreviated to mc) is a free, text-mode file manager for regular consoles, terminal emulators, and remote SSH sessions. Its main screen has two directory panels, so you can inspect one location while working in another without opening a graphical desktop.

It can copy, move, rename, and delete individual files or complete directory trees; search for files; create directories; run commands in a shell; and open files in an internal viewer or editor. It also includes a diff viewer, archive and other virtual file systems, background operations, filename completion, and external panelization. These features are useful on headless servers because they operate inside the terminal session rather than requiring a desktop file manager.

#1 Best Overall
Sale
TOZO A1 Wireless Earbuds Bluetooth 5.3 Light Weight in Ear Headphones | IPX5 Waterproof,2 Mics for AI Calls,Immersive Premium Sound Bass Headset with Charging Case,32 EQ via App Black
  • [Ultra-Lightweight Ear Buds Designed for Small Ears] Each earbud weighs only 3.7g and features a compact, ergonomic in-ear design made especially for small ears. Secure, low-profile, and comfortable for workouts, all-day wear or overnight sleeping.The ultra-slim profile sits flush in your ear with no hard edges poking or rubbing, so you can even sleep on your side without discomfort.
  • [Immersive Stereo Sound with TOZO OrigX Technology] TOZO OrigX tuning delivers clear vocals, balanced mids, and natural stereo sound for music, podcasts, and videos.
  • [Long Battery Life for Daily Use] Get up to 7 hours of playtime on a single charge, with up to 32 hours total using the charging case—ideal for workdays, commuting, and extended listening sessions.
  • [Bluetooth 5.3 & Stable Connection] Bluetooth 5.3 provides fast pairing, stable wireless performance, and reduced dropouts as you move around home or office.
  • [Deep Bass with Clear Vocals] High-performance drivers produce punchy bass while keeping vocals clean and detailed for everyday listening.

mc is interactive and full-screen. It is therefore appropriate for an administrator working at a terminal, not for a script that expects ordinary, line-oriented standard output.

Requirements and safe preparation

  • An account that can log in to the server and use its package manager.
  • SSH access if the server is remote.
  • Permission to read the directories you need to inspect and write the locations you need to change.
  • A terminal emulator that passes cursor, function-key, Tab, and Ctrl-key input correctly.

Use the least-privileged account that can complete the job. Run sudo only for the installation or for a specific filesystem operation that actually needs elevated rights. Midnight Commander does not bypass Unix permissions: commands launched from its shell, and file operations performed by its panels, run with the permissions and environment of your SSH account.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Install Midnight Commander from the distribution repository

Debian or Ubuntu

Refresh the package index and install the distribution’s mc package:

sudo apt update
sudo apt install mc

The package manager resolves the correct build and its dependencies for the server’s architecture and release. You do not need to download an unrelated binary.

Fedora and other DNF-based systems

Install the package with DNF:

sudo dnf install mc

On a Red Hat-family server, the enabled repositories and operating-system policy determine whether the package is available. If DNF reports that no package can be found, check that the appropriate distribution repositories are enabled rather than installing an untrusted binary.

Confirm the installation

Ask the installed program to print its version:

mc --version

The manual also documents the short form -V. A version string confirms that the command is in your PATH and shows which build you are running. If the shell says “command not found,” check the package transaction, the account’s PATH, and whether you installed the package in a different environment than the one used for SSH.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Sale
Smart Watch for Men Women Compatible with iPhone Samsung Android Phone 1.69 inch Full Touch Screen IP68 Waterproof Bluetooh Fitness Tracker Heart Rate/Sleep Monitor (Black)
  • 【IP68 Waterproof Multifunctinal Smart Watch】Torjalph fitness activity tracker smart watch is IP68 waterproof technology ,you can wear it when swimming,handwashing,it's rain-proof which means that you perform multiple exercise modes outside without worrying about sweat or rain corroding your fitness smart watch,and this watch equipped with a 230 mAh large capacity battery magnetic charging ,and this sports activity tracker watch can be used 5-7 days If fully charged.
  • 【Larger 1.83'' Full Screen Watch & Multi-dial Selection】1.83 inch full HD color touch screen smart watch for men / women provides excellent 240*284 resolution image quality ,This Bluetooth smart watch offers a better touch experience and remarkable immersion and ,more than 200 watch faces for you to choose from App"Da Fit ", you can change the dial style according to your mood to wear keeping the world on your wrist
  • 【Accurate Activity Tracker Smart Watch 】sports watch activity tracker uses sweat and dust resistant breathable silicone strap, our Fitness Tracker Smart Watch for Android iOS Phones supports 12 sports modes,walking,running,bicycle,swimming,badminton,basketball,football,rope skipping. This bluetooth calls smart watch for men women is lightweight and stylish, bringing more convenient and relaxing sports experience while also providing more protection.
  • 【Your 24 Hour Personal Daily Health Monitor】Fitness watch for women men full touch screen IP67 waterproof bluetooth smartwatch for Android iOS Phones with heart rate blood pressure monitor multifunction Andriod smart watch with steps counter sleep monitor sports fitness watch, monitoring blood oxygen saturation allows you to understand your physical condition in real time to track fitness progress ,to know your health status in time.
  • 【More Functions Bluetooth Call Smart Watch】This fitness activity smart watch full screen for iPhone and Android phones includes a bunch of new features including:The bluetooth smart watch can hang up the phone, receive and display WhatsAPP /Text /Facebook /Twitter /Messenger reminder.Support sedentary reminder, alarm clock, stopwatch, timer,weather information,music control, remote camera control compatible with Android 5.0 and above or iOS 9.0 and above smartphones.

Start mc locally or through SSH

Open an SSH session first

Connect normally, then start the program from the remote shell:

ssh [email protected]
mc

Midnight Commander takes over the terminal while it is running. Exit it through the program’s quit command or the visible function-key/menu option to return to the shell.

Choose the initial directories

You can pass zero, one, or two directory paths when launching mc:

mc /var/log /tmp
Invocation Initial panel locations
mc /var/log /tmp /var/log appears in the active panel and /tmp in the other panel.
mc /var/log /var/log is active; the other panel uses its saved directory.
mc The current shell directory is used for the active panel; the other panel uses its saved directory.

Supplying both paths is useful for repeatable administration because it removes uncertainty about where a copy or move will go. Quote paths containing spaces or shell metacharacters as you would for any command.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Understand the two-panel interface

The two directory panels occupy most of the screen. Each displays a path and a listing of files and directories. The panel containing the selection bar is the current, or active, panel. The other panel is unselected. Near the bottom is a command line for shell commands, and the bottom key bar shows the available function-key actions. If the menu bar is hidden, press F9 to reveal it.

Switch and inspect panels

Press Tab to move the selection bar between panels. Before any bulk or destructive operation, press Tab and read the path shown at the top of each panel. The active panel supplies the selected files; the other panel is commonly treated as the destination for copy and rename operations.

Rank #3
New Bee Guitar Cable 10ft Electric Instrument Bass AMP Cord
  • [Low Noise High Fidelity] New bee guitar cord with 22AWG oxygen-free-copper center conductors provides enhanced signal transfer, the PVC insulation material and the high-density stranded copper double shield provide noise rejection for quiet operation
  • [Ideal for Choice] New bee 1/4 straight and right angle metal connectors, ensures a secure connection in any instrument, pedal, or amp jack. L shape great fro on stage guitar stands
  • [Wide Compatible] Suitable for mixer, power amplifier, microphone, effector, decoder, equalizer, electoronic organ, electric guitar, electric bass and other electronic equipments. Widely used in the installation of smart home, karaoke speaker, professional stage audio, etc
  • [Easy Disassemble] Making incidental repairs quick and easy! Very nice, flexible cable
  • [Dont Hesite to Order] 24 hours customer services and professional technology team are standing by

Get help without leaving the session

Press F1 for context-sensitive help. F2 opens the configurable user menu, where you can define frequently used commands. If a function key does not work, rely on the labels rendered by your terminal and the menu rather than assuming the keystroke reached mc.

Navigate, select, and work with files

Navigate directories

  1. Use the arrow keys to move the selection bar through the listing.
  2. Open a highlighted directory using the panel’s normal enter action.
  3. Use the parent-directory entry to move upward.
  4. Press Tab when you need to inspect or use the other panel.

Panel key bindings vary with terminal and configuration, so the on-screen key bar and F1 help are the authoritative guide for the current session.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Select one or more items

Use the panel’s selection controls to mark files or directories. A marked set is the input to a subsequent copy, move, or delete operation. Check the selection before invoking an operation, especially when a directory tree is involved.

Copy files or trees

  1. Navigate the active panel to the source directory.
  2. Mark the files or directories to copy.
  3. Press the copy function shown in the key bar.
  4. Verify that the other panel displays the intended destination path.
  5. Review the confirmation dialog, including overwrite choices, and approve only the files you intend to change.

Copying a directory can affect every item beneath it. For large transfers, use a small, reversible test first and observe the result before starting the full set.

Move or rename

Move and rename commonly use the unselected panel as the destination. To move an item between directories, place the source in the active panel, switch the other panel to the target directory, mark the item, and invoke the move or rename action. Confirm the destination and any overwrite prompt. A rename within one directory is still a filesystem change, so inspect the resulting name before continuing.

Delete

Mark the intended files or directories and invoke the delete action shown in the key bar. Read the confirmation carefully. Deleting a directory tree can remove many files at once, and recovery is not guaranteed on a server. If you are uncertain, cancel and use the internal viewer or a shell listing to inspect the selection first.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
BSIMB 15.6" Digital Family Calendar & Chore Chart, No Subscription Fees
  • Digital Family Calendar: BSIMB digital calendar wall touch screen puts an end to your chaotic life. Designed for busy families, the digital calendar keeps you organised and in step with your family. Assign different colours and tasks to each family member to make family scheduling easier and more intuitive.
  • Easy Setup and Auto-Sync: Plug in, connect to WLAN and auto-syn your electric calendar in minutes. Digital wall calendar compatible with Google calendar, iCloud calendar, Outlook calendar, Cozi calendar and Yahoo calendar. Add events directly on the device or through the ecalendar app. Electronic calendar stays current whether you're at work or traveling—no manual updates needed.
  • All-In-One Home Assistant: Smart calendar builds habits and encourage independence with personalised chores. Display daily meal plan to reduce the daily ‘What's for dinner?’ stress. To-do lists keep track of everything you want. Turning chores into valuable achievements with stars and rewards, making life easier and more enjoyable.
  • Manage Anytime Anywhere: BSIMB electronic calendar for family stay connected with the powerful ecalendar app. Access and manage your digital wall calendar anytime, anywhere with free features like stars & rewards, photo screensaver, chore charts, meals plans, to-do lists etc. Electronic planner paid features like Magic Import tailor advanced tools for users with special needs.
  • Stay in Touch with Loved Ones: Share photos or videos from your phone to electronic wall calendar with app, instantly update your life moment, and keep in touch with your family, especially those who are far away; you can also surprise your smart calendar digital wall by sending him a wish card; it's also great for keeping tech-illiterate elders in touch with the youngsters.

View, edit, search, and compare content

Inspect with the internal viewer

Use the viewer action shown by the function-key bar to read a file without launching an external graphical application. This is useful for logs, configuration files, and scripts when you need to inspect content before copying or editing it.

Edit carefully

The internal editor lets you change a file from the same terminal interface. Confirm the path, ownership, and permissions before saving. For production configuration, preserve a backup or use your normal change-control process; an editor does not provide a rollback merely because it was opened from mc.

Search and compare

Midnight Commander includes file search and a diff viewer. Search helps locate files by name or other available criteria, while the diff viewer can compare two files or panel selections. Use these tools to verify that a transfer or configuration change produced the expected content before closing the session.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Use the command line and subshell

The command line near the bottom of the screen accepts ordinary shell commands. Those commands execute as the logged-in account, with that account’s environment and permissions. This makes the command line convenient for checks such as pwd, id, or a targeted listing, but it also means a destructive command has the same consequences it would have outside mc.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Ctrl-O and the subshell view

On builds with concurrent shell support, Ctrl-O toggles between the panel interface and a subshell view. This lets you run shell commands while retaining the panel state. The manual provides -u or --nosubshell to disable concurrent shell support and -U or --subshell to enable it when the build supports it.

Only Bash, tcsh, and zsh are supported as subshells according to the project FAQ. A login shell outside that set, a build without subshell support, or terminal software that consumes Ctrl-O can make the shortcut appear to do nothing.

Troubleshoot a non-working Ctrl-O

  1. Check the login shell with getent passwd "$USER" or your system’s account-management tool, and confirm that it is Bash, tcsh, or zsh.
  2. Try launching with mc -U if the installed build supports subshell mode.
  3. Check the terminal emulator, SSH client, and any multiplexer for a Ctrl-O binding that intercepts the key.
  4. Use F1 and the visible key bar to confirm the build’s available controls. Some terminal programs also intercept function keys; try the alternate Esc-digit sequence shown by your environment or a different terminal configuration.
  5. If you need a predictable session without a subshell, start with mc -u.

Disabling the subshell does not disable panel file operations; it only removes concurrent shell support.

Archives, remote locations, and background work

The project’s documentation describes virtual file systems for archives and remote machines. These let you browse supported packaged or remote content through a panel-like interface instead of manually unpacking or changing directories first. Treat a remote or archive panel as a real data source: verify what it represents and test a small operation before a bulk transfer.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Background operations can keep a lengthy copy or move running while you continue using the interface. Monitor the operation and confirm its final result; background execution is not a substitute for checking free space, permissions, network stability, or the destination path.

External panelization can populate a panel from command output or another selection mechanism. Because the resulting list may not be a normal directory view, read the panel path and selection carefully before applying a destructive action.

Server-safe operating checklist

  • Log in with the least-privileged account that can do the work.
  • Use sudo for a narrowly scoped command, not as a default way to run the entire session.
  • Before copying or moving, verify the active source panel and the other panel’s destination path.
  • Before deleting, inspect marked items and read every confirmation dialog.
  • For bulk, remote, or archive operations, test one small and reversible transfer first.
  • Check ownership, permissions, available space, and expected filenames before editing or replacing server files.
  • Do not place mc in automation that expects plain stdout; it is an interactive full-screen application.
  • Remember that shell commands from the command line or subshell inherit the SSH account’s permissions and environment.

A practical SSH workflow

Compare a log directory with a temporary workspace

  1. Connect to the host: ssh [email protected].
  2. Start with predictable panels: mc /var/log /tmp.
  3. Use the active panel to inspect the log names and press Tab to confirm the temporary destination.
  4. Open a log in the internal viewer before copying it.
  5. Mark only the required files, invoke copy, and approve the destination after checking the prompt.
  6. Use the command line for a targeted verification, such as checking the destination listing, then return to the panels.

This workflow keeps the source and destination visible and avoids relying on whichever directories happen to be saved from an earlier session.

When Midnight Commander is the right tool

mc is a strong fit when you need a visual, keyboard-driven view over SSH, frequent two-directory transfers, built-in viewing or editing, or occasional archive and remote browsing. It is less suitable for unattended jobs, repeatable deployments, or situations where a plain command pipeline and explicit logging are required. For those tasks, use the appropriate shell or automation tool and reserve mc for interactive inspection and controlled changes.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The essential operating model is simple: the highlighted panel is the current source context, the other panel is commonly the destination, and every filesystem action remains subject to normal Unix permissions. Once those relationships are clear, the same interface works consistently on a local console and across an SSH connection.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.