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

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Install GNU Midnight Commander from your Linux distribution’s repository, then run mc inside the server’s terminal or SSH session. On Ubuntu or Debian, use sudo apt update && sudo apt install mc; on Fedora or a Red Hat-family system, use sudo dnf install mc. Midnight Commander opens a two-panel text interface for browsing, copying, moving, deleting, searching, viewing and editing files without leaving an SSH terminal.

This guide explains the panel model, safe file operations, startup-directory options, built-in tools, subshell behavior and the fixes to try when terminal keys such as Ctrl+O do not work.

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.

What Midnight Commander does on a server

GNU Midnight Commander (usually abbreviated to mc) is a full-screen, text-mode file manager. Its main screen keeps two directory panels visible at once, so one panel can act as the source and the other as the destination. It works in a regular Linux console, a terminal emulator and an SSH connection, making it useful on servers where a graphical file manager is unavailable.

Beyond directory browsing, the project documents operations for copying, moving and deleting files and directory trees, searching for files, running commands in a subshell, and opening an internal viewer, editor and diff viewer. It also supports virtual file systems for archives and some remote locations, background operations and configurable user menus. Those capabilities make it a powerful interactive tool, but they also mean that a mistaken confirmation can change a large part of a server filesystem.

#1 Best Overall
Sale
Compressed Air Duster,130000RPM Super Power Cordless Air Duster,Rechargeable Brushless Blower,3 Gear Adjustable Blower with LED Light,Dust Remover for Computer/House/Outdoor/Car
  • Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
  • With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
  • Wide Application: attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
  • Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
  • Economical &Reusable: Built durable materials with a long-lasting battery,our CAGIWIRU air duster it's a sustainable alternative to disposable air cans.

Prerequisites and a safe starting point

You need an account that can log in to the server and a terminal capable of displaying a full-screen text application. Install with an account that can use sudo, or ask an administrator to install the package. After installation, do normal file work as the least-privileged account that can complete it.

  • Confirm the server distribution and package manager before installing.
  • Know which directories you intend to inspect or change.
  • Use sudo only for the particular command that needs elevated permissions; do not run the entire interactive session as root unless there is a clear administrative reason.
  • Keep a rollback or backup plan for any bulk move, overwrite or delete.
  • Do not use mc where a script expects plain, line-oriented standard output. It is an interactive full-screen program.

Install Midnight Commander

Debian and Ubuntu

Refresh the package index and install the distribution package:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
sudo apt update
sudo apt install mc

The package manager resolves the appropriate build and its dependencies. Installing this way also gives you the distribution’s normal update and security-maintenance path.

Fedora and Red Hat-family systems

On Fedora and systems that provide the package through dnf, run:

sudo dnf install mc

Repository availability can vary by the exact release and enabled repositories. If dnf reports that no package is available, verify the release’s enabled repositories with the system administrator rather than downloading an unrelated binary.

Verify the installed command

Check that the executable is on your PATH and print its version:

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

The manual documents both -V and --version for this purpose. A version string confirms that the shell can find mc; it does not by itself grant access to directories that your account cannot read.

Rank #2
EVEO® Screen Cleaner Spray Kit (Streak-Free) TV Screen Cleaner for Smart TV, Lcd, LEd, Oled | Computer Screen Cleaner Spray and Wipe Microfiber Cloth - TV, Monitor, Laptop, iPad, Car - 6.7oz 1 Pack
  • Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
  • Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
  • Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
  • Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
  • Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth

Start mc locally or through SSH

Launch after connecting

Connect to the server normally, then start the program at the shell prompt:

ssh user@example-server
mc

The interface takes over the terminal until you exit it. Your file operations run with the permissions and environment of the SSH account that launched it.

Choose predictable starting directories

You can pass zero, one or two directory paths:

mc
mc /var/log
mc /var/log /tmp
Command form Initial panel state
mc The current shell directory is used for the active panel; the other panel starts in its saved directory.
mc /var/log /var/log is the active panel; the other panel uses its saved directory.
mc /var/log /tmp The first path is shown in the active panel and the second in the other panel.

Passing both paths is helpful for repeatable administrative work: you can see the intended source and destination as soon as the program opens instead of relying on a previously saved panel location.

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

Read the two-panel interface

The two directory panels occupy most of the screen. Each lists entries in one directory. A selection bar identifies the currently highlighted entry, and one panel is active at a time. The active panel is where keyboard navigation and selection occur; many file operations use the unselected panel as their destination.

Near the bottom is a shell command line. Beneath it, the function-key bar shows the actions available in the current layout. If the menu bar is hidden, press F9 to reveal it. Press Tab to switch the active panel. Press F1 for context-sensitive help and F2 for the configurable user menu.

Terminal emulators can label or intercept keys differently. Treat the labels visible in your session as authoritative rather than assuming that a particular function-key number is available.

Panel roles and destination safety

Before a copy or move, look at both complete panel paths. The highlighted file is selected in the active panel, while the opposite panel commonly supplies the destination. This relationship is convenient for two-directory transfers but dangerous if the opposite panel is still pointed at a production, system or backup directory. Change panels with Tab, navigate to the intended destination, and re-check both paths immediately before confirming.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
BladeHawks RGB Gaming Mouse Pad Extra Large Extended 31.5x12 Inch-Black | LED mouse pad with 14 lighting modes, covers keyboard & mouse, anti-slip rubber base, waterproof surface, USB powered
  • 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
  • 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
  • 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
  • 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
  • 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.

Navigate and select files

Move through directories

  1. Use the arrow keys to move the selection bar through the current listing.
  2. Open the highlighted directory using the panel’s normal directory-open action.
  3. Move to the parent-directory entry when you need to go up.
  4. Use Tab to activate the other panel and repeat the process there.

The panel key bindings documented by your installed version may provide additional shortcuts. If you are unsure what a key does, press F1 before operating on a live directory.

Select several entries

Use the panel’s selection controls to mark the files or directories that belong in the operation. Selection is independent in each panel, so inspect the highlighted and marked entries before choosing Copy, Move, Delete or another action. For a large set, first test the operation with one harmless file and confirm that the resulting destination and permissions are what you expect.

Complete filenames quickly

The project README documents filename completion with Alt+Tab. Completion is useful on long paths and reduces typing errors, but still verify the completed name: a similarly named directory can send a command or transfer to the wrong location.

Copy files and directories safely

  1. Activate the panel containing the source entries.
  2. Navigate the other panel to the exact destination directory.
  3. Mark the files or directories to copy.
  4. Choose the Copy action shown in the function-key bar or menu.
  5. Read the destination and overwrite prompts; cancel if either path is unexpected.
  6. After completion, inspect the destination panel and check a representative file.

Copying a directory tree can involve many files, hidden entries, ownership differences and permission errors. A successful dialog does not mean every file was readable under your account. Review any error messages and compare counts or representative paths when completeness matters.

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

When copying between a local directory and a virtual file system such as an archive or remote location, start with a small, reversible transfer. Confirm that the target format preserves the attributes your application needs before initiating a large batch.

Move, rename and delete

Move or rename

Use the Move or Rename action exposed by the key bar after checking the source selection and the opposite panel. In the common two-panel workflow, the unselected panel is used as the destination. A rename within the same directory is therefore still a filesystem change, even though no data crosses to another panel.

Read collision and overwrite prompts carefully. If the destination already contains a file with the same name, stop and determine whether replacement is intended. For a production deployment, prefer a reversible staging directory and keep the original until the new copy has been verified.

Rank #4
Sale
Vaydeer Wrist Rest for Keyboard and Mouse, Computer Ergonomic Wrist Support Pad, Soft Memory Foam Arm Cushion for Desk, Palm Hand Office Laptop Typing
  • 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
  • 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
  • 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
  • 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
  • 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.

Delete

Deletion can remove individual files or entire directory trees. Select only the intended entries, invoke Delete from the visible action bar, and inspect the confirmation text for the exact path and scope. Do not treat a highlighted directory as a harmless container: recursive deletion can remove everything beneath it.

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.

If you are uncertain, cancel, switch to the internal viewer or a shell listing, and identify the path again. Least-privilege access limits accidental reach, but it does not undo a deletion that your account was authorized to perform.

View, edit and compare content

Midnight Commander includes an internal viewer and editor. Use the viewer first when you only need to inspect a configuration, log or script; it avoids accidentally entering an editing mode. The editor is appropriate when you deliberately need to change a text file and have checked its ownership, syntax and backup status.

The project also documents an internal diff viewer for comparing files. A practical review sequence is:

  1. Open the original and proposed files in the viewer or diff tool.
  2. Check the complete paths, timestamps and sizes.
  3. Only then open the editor for an intentional modification.
  4. Save to a staging or backup copy when the service cannot tolerate an in-place mistake.
  5. Validate the edited file with the application’s own configuration-check command before restarting a service.

Binary files, compressed data and very large logs may not be suitable for an interactive editor. Use the viewer for a quick inspection and a specialized command-line tool when format-aware validation is required.

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

Run shell commands without leaving the panels

The command line near the bottom lets you enter shell commands while keeping the panels visible. Commands execute with the SSH account’s permissions, environment and current working context. A command that needs administrative access should request sudo for that command, not turn the whole file manager into an elevated session.

For operations that change files, quote paths containing spaces or shell metacharacters and confirm the panel selection separately from the command line. The file manager’s visual selection does not make an independently typed shell command safe.

Best Value
Sale
Under Desk Cable Management Tray No Drill, Metal Mesh Cable Management Under Desk with Clamp Mount, 2 Hole Cable Tray with Wire Management and Cord Organizer for Home Office Standing Desk
  • 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
  • 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
  • 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
  • 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
  • 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Use subshell mode and troubleshoot Ctrl+O

Subshell mode lets you temporarily expose a normal shell while keeping the Midnight Commander session available. The manual documents -u (or --nosubshell) to disable concurrent shell support and -U (or --subshell) to enable it when the build supports it. The FAQ identifies bash, tcsh and zsh as the shells that can be used as a subshell.

On a supported build and terminal, Ctrl+O toggles the subshell view. If it appears to do nothing, work through these checks:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Check the login shell for the SSH account. A shell outside the supported set may prevent subshell operation.
  2. Check how the package was built and whether subshell support was disabled. Running mc --version identifies the installed build, while the distribution package documentation can clarify its compile-time options.
  3. Check the terminal emulator or SSH client. Some terminal programs intercept control or function-key sequences before Midnight Commander receives them.
  4. Try the alternate Esc-plus-digit sequences supported by your terminal and version, or test a different terminal configuration.
  5. Start a session explicitly with mc -u when you want to avoid subshell support rather than troubleshoot it.
  6. Use the visible menu and function-key labels for file work even when the toggle is unavailable.

Subshell commands are not sandboxed. They can modify files, stop services or consume resources exactly as commands entered at a normal SSH prompt would, and they inherit the SSH account’s permissions.

Archives, remote locations and background work

The project README documents virtual file systems for archives and remote machines. These features let a panel present a non-local or packaged location in a file-manager-like view, but they do not remove network, permission or format limitations. Authentication failures, unavailable mounts, archive corruption and slow links can all interrupt an operation.

For remote or archive browsing, open the location and inspect a few entries before starting a bulk transfer. Copy a small test file, verify its contents and permissions at the destination, and only then proceed. A background operation can keep the interface usable while a long transfer runs, but it still requires monitoring for errors and sufficient disk space.

Server safety checklist

  • Confirm identity: Check the hostname, SSH account and current directory before touching files.
  • Confirm both panels: Read the full source and destination paths before every copy or move.
  • Limit privileges: Work unprivileged and elevate only the individual command that requires it.
  • Stage changes: Use a temporary or backup location before replacing production data.
  • Test reversibly: Perform a small transfer before a directory-tree operation or remote/archive copy.
  • Watch prompts: Overwrite and recursive-delete confirmations are decisions, not routine progress screens.
  • Validate results: Reopen the destination, inspect representative files and check application-specific integrity.
  • Protect automation: Keep interactive mc out of scripts that parse standard output; use purpose-built non-interactive commands for automation.
  • Remember the shell: Commands entered through the subshell have the same authority and side effects as commands entered directly over SSH.

Common problems and fixes

Symptom Likely cause Action
mc: command not found The package is not installed or the executable is outside the shell’s PATH. Install the distribution package, then run mc --version and check the account’s PATH.
Installation cannot find a package The release’s repositories are unavailable or not enabled. Verify the distribution release and repository configuration with the administrator; do not substitute an unrelated binary.
A directory is visible but cannot be opened The SSH account lacks read or execute permission, or the path is a restricted mount. Inspect permissions with an appropriate shell command and request only the access required for the task.
Copy or move goes to the wrong place The opposite panel was still pointed at an old directory. Cancel, press Tab, navigate to the intended destination and re-check both panel paths.
Ctrl+O has no effect Unsupported login shell, build without subshell support or terminal key interception. Check the shell, build options and terminal configuration; try an alternate Esc-digit sequence or use mc -u.
Function keys show the wrong action or do nothing The terminal emulator or SSH client is translating the keystroke. Follow the on-screen key bar, try the documented alternate sequence and test another terminal configuration.
A remote or archive operation fails partway through Network, authentication, format, permission or storage limits. Repeat with a small reversible transfer, read the error, and verify free space and access before retrying.

Exit cleanly

Use the quit action shown in the function-key bar or menu when you are finished. Confirm that pending background operations have completed and that any edited file has been saved deliberately. You should return to the ordinary SSH shell prompt; close the SSH connection only after checking that no required command remains running.

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

Frequently Asked Questions

Can I start Midnight Commander in two known directories every time?

Yes. Pass both paths in the command, such as mc /var/log /tmp. The first becomes the active panel and the second the other panel.

Does Midnight Commander require a graphical desktop?

No. It is a text-mode application designed for consoles, terminal emulators and SSH sessions.

Why should I avoid running the whole program with sudo?

The panels and subshell inherit the session’s permissions. Running unprivileged and using sudo only for a specific administrative command reduces the scope of an accidental copy, move, edit or delete.

What should I do if I cannot remember a key binding?

Press F1 for context-sensitive help and use the function-key labels visible at the bottom of the screen. Terminal-specific key handling can differ.

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

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.