Tutorial details | |
---|---|
Difficulty | Easy (rss) |
Root privileges | No |
Requirements | None |
Time | 5m |
Install Midnight Commander (mc) On Centos / RHEL / Fedora Linux
Open the Terminal or login to remote server using ssh client. Type the following yum command to install mc:
# yum install mc
Sample outputs:
Loaded plugins: product-id, rhnplugin, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. This system is receiving updates from RHN Classic or RHN Satellite. Setting up Remove Process Resolving Dependencies --> Running transaction check ---> Package mc.x86_64 1:4.7.0.2-3.el6 will be erased --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Removing: mc x86_64 1:4.7.0.2-3.el6 @rhel-x86_64-server-6 5.4 M Transaction Summary ================================================================================ Remove 1 Package(s) Installed size: 5.4 M Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Erasing : 1:mc-4.7.0.2-3.el6.x86_64 1/1 Verifying : 1:mc-4.7.0.2-3.el6.x86_64 1/1 Removed: mc.x86_64 1:4.7.0.2-3.el6 Complete! {root@cyberciti.biz }# {root@cyberciti.biz }# yum install mc Loaded plugins: product-id, rhnplugin, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. This system is receiving updates from RHN Classic or RHN Satellite. Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package mc.x86_64 1:4.7.0.2-3.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: mc x86_64 1:4.7.0.2-3.el6 rhel-x86_64-server-6 1.6 M Transaction Summary ================================================================================ Install 1 Package(s) Total download size: 1.6 M Installed size: 0 Is this ok [y/N]: y Downloading Packages: mc-4.7.0.2-3.el6.x86_64.rpm | 1.6 MB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : 1:mc-4.7.0.2-3.el6.x86_64 1/1 Verifying : 1:mc-4.7.0.2-3.el6.x86_64 1/1 Installed: mc.x86_64 1:4.7.0.2-3.el6 Complete!
How do I use mc?
Simply type the following command:
$ mc
Sample outputs:
As you can see the screen of the Midnight Commander is divided into four parts. Almost all of the screen space is taken up by two directory panels. By default, the second line from the bottom of the screen is the shell command line, and the bottom line shows the function key labels. The topmost line is the menu bar line. The menu bar line may not be visible, but appears if you click the topmost line with the mouse or press the F9 key.
mc syntax and command examples
Here are some useful examples and syntax:
Force black and white display for mc
$ mc -b
Force color mode for mc
$ mc -c
Disable mouse support for mc
$ mc -d
Start mc with the internal editor
$ mc -e
$ mc -e /path/to/file.txt
mc Command Installation and Usage demo
This tutorial is also available in a video format:
(Video 01: RHEL / CentOS Linux Install GNU Midnight Commander Tutorial)
For more information see mc(1) command man page and the official GNU midnight commander home page.
🐧 4 comments so far... add one ↓
Category | List of Unix and Linux commands |
---|---|
File Management | cat |
Firewall | Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04 |
Network Utilities | dig • host • ip • nmap |
OpenVPN | CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04 |
Package Manager | apk • apt |
Processes Management | bg • chroot • cron • disown • fg • jobs • killall • kill • pidof • pstree • pwdx • time |
Searching | grep • whereis • which |
User Information | groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w |
WireGuard VPN | Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04 |
Nice Article and I get the latest info here, thanks nixcraft. Also I would like to share the new things if I come to know so that i would be helpful for others, again thanks nixcraft.
Just to note my sympathy and dependence on this old-school interface. It is of daily use for me on this and other Linux platforms, and the Windows look-alike FAR (not that popular afaik) also makes the filesystem administration there a pleasure.
NIce Article. It looks like NC longtime ago :). Thank you.
How do install LFM (the file manager) on CentOS ? yum lfm said no package lfm available.