User Tools

Site Tools


midnight_commander_-_mc

If you want to send us your comments, please do so. Thanks
More on comments


Midnight Commander - mc

Warnings

If you do CTRL-x-d and the result is that no differences are found check if you are not comparing the directory with itself. Check the paths on the top of the window.

When copying and using “dive in to subdir if exists” the full directory will be copied as a subdirectory of the existing directory. So if /home/user/something exists. The directory something will be copied into the directory something which looks then like this: /home/user/something/something

- always pops up Unselect window

A dash always invokes the “Unselect window”. This can be prevented by setting in /home/user/.config/mc/ini

only_leading_plus_minus=true

Set the default editor

  • Start mc
  • On its command line type select-editor
  • Select the editor of your choice and press enter
  • In F9 > Options > Configuration set “Use internal edit” and “Use internal view” to your needs. Click on OK. F9 > Options > “Save setup”.
  • mcview is the internal file viewer of GNU Midnight Commander

ini file

ini file options
The ini file can be found at

/home/user/.config/mc/ini

Settings

Preserve attributes on by default. Set

copymove_persistent_attr

to

copymove_persistent_attr = true

Tab

Set the tab to 2:

  • Edit /home/user/.config/mc/ini
    • [Midnight-Commander] editor_tab_spacing=2
    • [DiffView] tab_size=2

Keybindings

^o means CTRL+o key at the same time
ALT-o means ALT+o key at the same time

KeyExplanationRemark
^oShow the terminal panelThis is a toggle
^x ^dCompare two files side by side
^-Decrease the font size. More info on the screenThis is a command of the xfce4-terminal emulator
^+Increase the font size. Less info on the screenThis is a command of the xfce4-terminal emulator
^0Restore to the default font sizeThis is a command of the xfce4-terminal emulator
ALT-hShow the command line history
ATL-HDisplays the directory history
ALT-iGo into the other panel to the same directory as in the current panel
ALT-oOpens the directory one level up from where you are in the other panel
ALT-tToggle, in the pane, between 4 different views
ATL-uMoves to the next directory in the history
ALT-yMoves to the previous directory in the history
ALT-,Toggle horizontal - vertical view

Issues

Long startup time

I can take some time for Midnight Commander to start up
Checking with

strace -r -tt -o mc.strace.log mc

did not helping us much Running

mc --nosubshell

solved the issue. But now there is no sub shell so CTRL-o works but after hitting a key you are back in the Midnight Commander panes
Check in /etc/profile , /etc/bash.bashrc and /home/user/.bashrc for any sleep commands. Comment them out and start Midnight Commander again

Midnight Commander Advanced
Cheat Sheet
Midnight Commander / MC Tutorial
Midnight Commander Tips and Tricks
Use Midnight Commander like a pro


Main subjects on this wiki: Linux, Debian, HTML, Microcontrollers, Privacy

RSS
Disclaimer
Privacy statement
Bugs statement
Cookies
Copyright © : 2014 - 2024 Webevaluation.nl and the authors
Changes reserved.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
midnight_commander_-_mc.txt · Last modified: 17-08-2023 12:37 by wim