Skip to content

Instantly share code, notes, and snippets.

@samiraguiar
Forked from maciakl/MC Cheat Sheet
Last active November 7, 2025 17:36
Show Gist options
  • Select an option

  • Save samiraguiar/9cd4264445545cfd459d to your computer and use it in GitHub Desktop.

Select an option

Save samiraguiar/9cd4264445545cfd459d to your computer and use it in GitHub Desktop.
Midnight Commander Cheat Sheet / Shortcuts
Shortcut Description
---------------------------------------------------------------
C-o Drop to the console
Insert Select/deselect file
C-t Alias for Insert
* Invert selection on files
+ Specify file selection options (including custom pattern)
- The same as above, but for deselecting
F5/F6 Copy/move selected files
A-s Incremental search (A-s again to jump to next occurence)
A-. Toggle "Show Hidden Files" feature
A-Enter Put name of the highlighted file on command line
C-r Refresh current pane
TAB Jump from one panel to the other
A-i Make the other panel show the same directory as the current
C-u Swap panels
A-c Quick cd dialog
A-? Search dialog
A-h Show history
C-x c Chmod dialog
C-x o Chown dialog
C-x s Create symlink dialog
C-x l Create hard link dialog
C-x d Compare directories
F2 @ unzip Unzip selected file
F2 @ zip -r foo.zip Zip current directory as foo.zip
F2 @ 7za x Extract selected file with 7zip
F2 @ 7za a foo.7z 7zip current directory as foo.7z
@daviderestivo
Copy link

An alias for "Insert" is C-t. You might want to add it :)

@samiraguiar
Copy link
Author

@daviderestivo thanks for the suggestion! Just added it.

@jaepetto
Copy link

you may also want to add F9 to select the top menu. :-)

@samiraguiar
Copy link
Author

@jaepetto done. Thanks!

@MarkSetchell
Copy link

You might want to add "Ctrl-X A" to list Active VFS connections.

@samiraguiar
Copy link
Author

@MarkSetchell added to the list. Thanks for the suggestion.

@dagolinuxoid
Copy link

"ESC" "ESC" - double escape to dismiss menus/popups

@samiraguiar
Copy link
Author

@dagolinuxoid thanks, added to the list

@geolr
Copy link

geolr commented Oct 19, 2023

being annoyed by the GNOME-Terminal stealing F10 (close mc), I tried typing exit => seemingly works
This could help newcomers in the same situation

edit: Actually, just found how to deactivate this: Preferences => General
so maybe not that relevant still

editedit: This almost the same for the default terminal in XFCE (xubuntu in my case)

@edrozenberg
Copy link

Thanks for the list!

Shift - F6 renames current item in place.

@edrozenberg
Copy link

"ESC" "ESC" - double escape to dismiss menus/popups

In menu (F9) -> Options -> Configuration..., toggling Esc key mode to "Single press" enabled, makes it so that only a single Esc is needed, better than needing to press Esc twice every time.

@samiraguiar
Copy link
Author

Thanks @edrozenberg , gist updated

@danddinh
Copy link

I only wish F2 is a template to put file name in the middle of command, but MC always append it to tail of command

@derxe
Copy link

derxe commented Oct 13, 2024

If anyone is interested I converted this text file to PDF ready to be printed :)

https://github.com/derxe/pdf_mc_cheatsheet/blob/main/mc_cheatsheet.pdf

@effizientest
Copy link

effizientest commented Jan 11, 2025

An alias for "Insert" is C-t. You might want to add it :)

does not work for me using WSL Ubuntu-on W11 - instead right mouse click works - still searching to select *.png or clicking start and end of the list,

@wlcif
Copy link

wlcif commented Mar 15, 2025

"F2-@" this is a wrong notation, should be "F2 @".

@h8uthemost
Copy link

Thank you for this! That 7z extraction is gonna be handy right inside the app.

@Helix751
Copy link

Helix751 commented Nov 2, 2025

Is there a synonym for A-Enter? This action is used all the time. This combination is stealt by Windows Terminal (it toggles full-screen).

For the time being I'm usinx 'C-x t' but it's far from ideal (3 key presses instead of 2 and it puts many marked files instead of the actively selected one)

Edit: I could actually circumvent this issue using 'Esc' instead of 'Alt'. Weird but it just works.

Maybe this could be also added to line 6 "...on Macbooks, Windows Terminal or when Alt- shortcuts are already globally taken by the OS or other programs."

Edit 2: The 'Esc' replacement for 'Alt' doesn't work with 'C-Shift-Esc' as an alternative to 'C-Shift-Enter' for copying full path to selected file. It just opens TaskMannager.

@samiraguiar
Copy link
Author

@Helix751 does C-enter work?

If not you can remap the keys in midnight commander by editing the keymap file. Not sure where this file is on Windows but in WSL it should be under /etc/mc.

You can also change the Windows Terminal shortcut for going fullscreen:
https://learn.microsoft.com/en-us/windows/terminal/customize-settings/actions#toggle-full-screen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment