Table of Contents
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
Key | Explanation | Remark |
---|---|---|
^o | Show the terminal panel | This is a toggle |
^x ^d | Compare two files side by side | |
^- | Decrease the font size. More info on the screen | This is a command of the xfce4-terminal emulator |
^+ | Increase the font size. Less info on the screen | This is a command of the xfce4-terminal emulator |
^0 | Restore to the default font size | This is a command of the xfce4-terminal emulator |
ALT-h | Show the command line history | |
ATL-H | Displays the directory history | |
ALT-i | Go into the other panel to the same directory as in the current panel | |
ALT-o | Opens the directory one level up from where you are in the other panel | |
ALT-t | Toggle, in the pane, between 4 different views | |
ATL-u | Moves to the next directory in the history | |
ALT-y | Moves 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
Useful links
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.