How to use Midnight Commander

Pre-requisites:

A system with CentOS Stream 9 installed and running
Access to a terminal or command line
Root or sudo privileges

Midnight Commander is a Text User Interface (TUI) visual file manager tool that helps you with file management tasks on the Linux terminal. You can use your mouse to interact with Midnight Commander instead of keyboard shortcuts.

First update your system

dnf update -y

To install mc, use your package manager:

dnf install mc

Launch mc from a terminal:

mc

To switch from the right pane to the left pane, or vice versa, press TAB.

Arrows: Use up and down to select, left to go back, and right to change to the selected directory.

Function keys: All the most important functions are listed at the bottom of your terminal window. Each function is assigned to a function key (F1 to F10.)

Midnight Commander comes with multiple skins by default. You can set the skin in Options > Appearance.

By default, Midnight Commander uses a blue background color. To turn off color:

mc --nocolor

To invoke the directory hotlist

ctrl + backslash key

Once in the hotlist menu, you can select the option to add the current directory to add your current location to the hotlist.

Close Midnight Commander by pressing F10.

For more information:

http://midnight-commander.org

Previous article
Next article

Learn

Related articles

Getting Started with React

In this guide, we will cover the basics of setting up a local development environment, starting a simple React project, and the basics of how it works.

How to Create Bash Aliases

This tutorial demonstrates how to use the alias command to create personalized shortcuts, which can help you save time and feel less frustrated.

Using Git for PHP Development

This guide walks through the fundamentals of Git. In this tutorial, we will show you Git commands. For Linux you can use the built-in terminal.

How to Connect to MySQL with Laravel

In this guide, you will learn how to connect your Laravel application to your MySQL database.

How do you change the default SSH Port on CentOS Stream 9?

Changing the default SSH port adds an extra layer of security by reducing the risk of your password being cracked from a brute force attack.

What is Inheritance in PHP?

In this tutorial we will explain inheritance in PHP, a mechanism that allows a child class to inherit properties and behaviors from a parent class.