Show Menu
Cheatography

Midnight Commander Keyboard Shortcuts by

Midnight Commander Keyboard Shortcuts

General

Ctrl+l
Refresh display
Alt+.
Toggle hidden files display
Alt+,
Toggle horizo­nta­l/v­ertical split
Alt+`
Show screen selector
Alt+;/'
Switch to previo­us/next screen

Selected Items

Shift+F5
Copy to current directory
Shift+F6
Rename selected item
Ctrl+x, c
chmod dialog
Ctrl+x, o
chown dialog
Ctrl+x, v
Relative symlink dialog
Ctrl+x, s
Absolute symlink dialog
Ctrl+x, l
Hardlink dialog
Ctrl+x, Ctrl+d
File diff active­/in­active panel selection
Ctrl+x, d
Directory diff active­/in­active panel selection
Selected items are the tagged items or the highli­ghted item. Common actions mapped to F-keys are listed at the bottom of the screen.

Notes

- A capital in a shortcut indicates you need to hold Shift.
- The basic panel navigation shortcuts are not included.
- The shortcuts in bold are non-de­fault (see mc.keymap panel).

Other Resources

 

Active Panel

Alt+j/k/l
Move cursor to top/ce­nte­r/b­ottom of view
Insert / Ctrl+t
Shift+/
Tag/untag focused item and move down/up
+/-
Tag/untag items by pattern
*
Invert tagging of items
Alt+s
Search­/jump to by pattern
Alt+?
Open search dialog
Alt+t
Cycle panel view mode
Ctrl+x, i/q
Toggle other panel to info/quick view mode
Alt+c
Change directory popup
Alt+i
Change other panel to the same directory
Alt+o/L
Change other panel to the selected direct­ory­/link target (or the parent directory if a file is selected + select next item)
Alt+H
Directory history
Alt+y/u
CD to previo­us/next directory in the history
F12
Open directory hotlist
Ctrl+x, h
Add current directory to hotlist
Ctrl+space
Calculate selected item sizes (.. calculates all item sizes)
Ctrl+r
Refresh listing
Ctrl+u
Swap panels
Alt+P
Open Sort dialog
Alt+R
Reverse sort
Alt+N/­E/S/M
Sort by Name/Ext/Size/ModTime
(repeating shortcut reverses sort)
Ctrl+f
Filter (files only)
Alt+!
Filtered view
Shift+/
Scroll left/right
 

Command Line

Alt+h
Open command history
Alt+p/n
Select previo­us/next history entry
Shift+Tab
Complete item name
Ctrl+a/e
Jump to start/end of line
Ctrl+k
Clear to end of line
Alt+/
Jump to start of previo­us/next word
Alt+a/A
Paste active­/in­active panel directory path
Alt+Enter
Paste active panel selected item name
Ctrl+x, t
Paste names of tagged files in active panel
Ctrl+a followed by Ctrl+k clears the full input line

Cmd line variables (activ­e/i­nactive panel)

%d / %D
directory path
%s / %S
selected (focused) item path
%f / %F
selected item name
%b / %B
selected item base name
%x / %X
selected item extension
%t / %T
tagged item name(s)
%%
literal % character
The current directory in the command line always matches the active panel's directory.

Custom mc.keymap entries

[filemanager]
HotList = f12
[panel]
BottomOnScreen = alt-l
MiddleOnScreen = alt-k
TopOnScreen = alt-j
PanelOtherCdLink = alt-shift-l
Sort = alt-shift-p
SortReverse = alt-shift-r
SortByName = alt-shift-n
SortByExt = alt-shift-e
SortBySize = alt-shift-s
SortByMTime = alt-shift-m
ScrollLeft = shift-left
ScrollRight = shift-right
Filter = ctrl-f
ScreenNext = alt-apostrophe
ScreenPrev = alt-semicolon
[input]
Complete = shift-tab
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.