title: Midnight Commander Keys tags: linux mc file-manager See [this cheatography](https://cheatography.com/brechtm/cheat-sheets/midnight-commander/) for mc. ```csv sep=, cols=2 vert shadow csvhead: Key,Action C-I,Refresh display A-dot,Toggle hidden files A-comma,Toggle horizontal/vertical split A-backtick,Show screen selector A-semicolon/quote,Prev/Next screen A-s,Search/jump by pattern C-S-=,Select via pattern (use * to select all) ``` # 1 ## General ```csv sep=| cols=2 vert shadow csvhead: Key|Action 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 ```csv sep=| cols=2 vert shadow csvhead: Key|Action 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 ``` ## Active Panel ```csv sep=| cols=2 vert shadow csvhead: Key|Action 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 ```csv sep=| cols=2 vert shadow csvhead: Key|Action 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 ``` ## Cmd line variables (active/inactive panel) ```csv sep=| cols=2 vert shadow csvhead: Key|Action %d / %D|directory path %s / %S|tagged or focused item name(s) %f / %F|focused item name(s) %b / %B|focused item base name(s) %x / %X|focused item extension %t / %T|tagged item name(s) %%|literal % character ```