After installing Midnight Commander in CentOS 7, I looked for the configuration file in /home/$USER/.mc.ini but didn't find it. I want to change my default skin to another color scheme, but can't find config file.
3 Answers
According to the Save setup section of the man page,
At startup, Midnight Commander tries to load initialization information from the
~/.config/mc/inifile. If this file doesn't exist, the system-wide file
/etc/mc/mc.iniis used. If this file doesn't exist, the system-wide file
/usr/share/mc/mc.iniis used. If this file doesn't exist, MC uses the default settings.
If Midnight commander is properly installed on the system, one of those system-wide ini–files should be available. Just copy it under ~/.config/mc/ini and start customisation from there.
If you have not made any changes, the config file does not yet exist.
The easy way to change from the default skin:
Start Midnight Commander
sudo mcF9, O for Options, or cursor to "Options" and press Enter
A for Appearance, or cursor to Appearance and press Enter
You will see that default is the current skin.
Press Enter to see the other skin choices
Cursor to the skin you want and select it by pressing Enter
Click OK
After you do this, the ini file will exist and can be edited, but it is easier to change skins using the method I described.
- 1There is no Appearance menu under Options.Overmind– Overmind2018-04-23 05:26:31 +00:00Commented Apr 23, 2018 at 5:26
-
- 1why one should use
sudoto runmc?logoff– logoff2024-07-28 16:00:53 +00:00Commented Jul 28, 2024 at 16:00 - Why the downvote? The Appearance menu item is available in
mc, at least in versions4.8.24and4.8.32. The answer author should not be punished for using a different version that a OP, who never specified his.Anton Shepelev– Anton Shepelev2025-06-15 11:44:30 +00:00Commented Jun 15 at 11:44