Gaming industry under DDoS attack. Get DDoS protection now. Start onboarding
  1. Home
  2. Developers
  3. How to Install Midnight Commander on Ubuntu

How to Install Midnight Commander on Ubuntu

  • By Gcore
  • October 16, 2023
  • 2 min read
How to Install Midnight Commander on Ubuntu

Midnight Commander, commonly known as MC, is a versatile text-based file manager that offers a dual-pane interface, enabling seamless file operations in the Linux environment. Whether you’re a seasoned system administrator or just delving into the Linux world, installing Midnight Commander on Ubuntu can streamline your file management tasks and elevate your command-line experience. In this article, we’ll walk you through the simple steps to get Midnight Commander up and running on your Ubuntu system.

What is Midnight Commander?

It’s a feature-rich console application that provides a user interface for managing files and directories.

Here are some key points about Midnight Commander:

  1. Text-based Interface. While it operates in the console, it uses a TUI (Text User Interface) which makes it visually appealing and easier to navigate than traditional command-line operations.
  2. Dual-Pane Layout. One of its distinctive features is the two-pane interface, which allows users to view and manage files in two directories simultaneously, facilitating tasks like copying and moving files.
  3. Integrated File Viewer and Editor. MC comes with an integrated file viewer (mcview) and an editor (mcedit), allowing you to preview and edit files without leaving the application.
  4. Extensive Features. Beyond basic file management, MC supports operations like searching, viewing file content in hex mode, and even FTP/SFTP functionality, among others.
  5. Customizable Keybindings. Users can set custom keybindings, making operations even quicker once you’re familiar with the system.
  6. Cross-Platform. While it’s popular on Linux, Midnight Commander is available for a variety of Unix-like systems.

For users who spend a lot of time in the terminal and seek more than just basic command-line tools, Midnight Commander proves to be an invaluable asset. It greatly enhances productivity and simplifies file management tasks. In the next section, let’s take a look at how to install Midnight Commander.

Installing Midnight Commander on Ubuntu

Follow this guide to seamlessly install Midnight Commander, a powerful file manager, on your Ubuntu system. Here are the steps below:

#1 Update the Package List

Before installing any new software, it’s always a good idea to update your system’s package list to ensure you get the latest version.

sudo apt update

#2 Install Midnight Commander

Now, let’s install Midnight Commander using the apt package manager.

sudo apt install mc

Sample Output:

Reading package lists... DoneBuilding dependency tree       Reading state information... DoneThe following additional packages will be installed:  mc-data...Fetched 1,925 kB in 2s (823 kB/s)Selecting previously unselected package mc-data.(Reading database ... 160706 files and directories currently installed.)Preparing to unpack .../mc-data_3:4.8.24-2_all.deb ...Unpacking mc-data (3:4.8.24-2) ...Setting up mc-data (3:4.8.24-2) ...Processing triggers for man-db (2.9.1-1) ...Selecting previously unselected package mc.(Reading database ... 160771 files and directories currently installed.)Preparing to unpack .../mc_3:4.8.24-2_amd64.deb ...Unpacking mc (3:4.8.24-2) ...Setting up mc (3:4.8.24-2) ...Processing triggers for mime-support (3.64ubuntu1) ...

#3 Launch Midnight Commander

With Midnight Commander installed, you can launch it from the terminal.

mc

You’ll be presented with the Midnight Commander’s dual-pane interface, ready to manage files.

That’s it! Now, you’re equipped to use Midnight Commander. Keep in mind that the actual version numbers in the output might differ based on the current state of the Ubuntu repositories at the time of installation. Always ensure you’re using the latest stable version for optimal performance and security.

Conclusion

Want to run Ubuntu in a virtual environment? With Gcore Cloud, you can choose from Basic VM, Virtual Instances, or VPS/VDS suitable for Ubuntu:

Choose an instance

Related articles

What's the difference between multi-cloud and hybrid cloud?

Multi-cloud and hybrid cloud represent two distinct approaches to distributed computing architecture that build upon the foundation of cloud computing to help organizations improve their IT infrastructure.Multi-cloud environments involve us

What is multi-cloud? Strategy, benefits, and best practices

Multi-cloud is a cloud usage model where an organization utilizes public cloud services from two or more cloud service providers, often combining public, private, and hybrid clouds, as well as different service models, such as Infrastructur

What is cloud migration? Benefits, strategy, and best practices

Cloud migration is the process of transferring digital assets, such as data, applications, and IT resources, from on-premises data centers to cloud platforms, including public, private, hybrid, or multi-cloud environments. Organizations can

What is a private cloud? Benefits, use cases, and implementation

A private cloud is a cloud computing environment dedicated exclusively to a single organization, providing a single-tenant infrastructure that improves security, control, and customization compared to public clouds.Private cloud environment

What is a cloud GPU? Definition, types, and benefits

A cloud GPU is a remotely rented graphics processing unit hosted in a cloud provider's data center, accessible over the internet via APIs or virtual machines. These virtualized resources allow users to access powerful computing capabilities

What is cloud networking: benefits, components, and implementation strategies

Cloud networking is the use and management of network resources, including hardware and software, hosted on public or private cloud infrastructures rather than on-premises equipment. Over 90% of enterprises are expected to adopt cloud netwo

Subscribe to our newsletter

Get the latest industry trends, exclusive insights, and Gcore updates delivered straight to your inbox.