Install
sudo apt install mc
Launch
mc
Navigation
Tab- Switch panelsEnter- Enter directory / Execute fileIns- Select/deselect file*- Invert selection+- Select by pattern\- Deselect by pattern
Function keys
F1- HelpF2- User menuF3- View fileF4- Edit fileF5- CopyF6- Move/RenameF7- Create directoryF8- DeleteF9- MenuF10- Exit
Quick commands
Ctrl+O- Show/hide panels (shell)Ctrl+U- Swap panelsCtrl+\- Directory hotlistAlt+,- Switch MC layoutAlt+.- Show hidden filesAlt+Shift+?- Find file
File operations
Copy
- Select files (
Ins) - Press
F5 - Choose destination
- Enter
Move
- Select files
- Press
F6 - Choose destination
- Enter
Delete
- Select files
- Press
F8 - Confirm
View file (F3)
F3again - Raw/Parsed viewF4- EditorF7- SearchF8orq- Quit viewer- Space - Page down
b- Page up
Edit file (F4)
- Uses
mceditby default F2- SaveF6- Save asF10- QuitShift+F3- Mark textF3- CopyF5- Copy to clipboardF6- MoveF8- Delete marked
Panels
Sort order
Ctrl+F3- Sort by nameCtrl+F4- Sort by extensionCtrl+F5- Sort by dateCtrl+F6- Sort by size
Display modes
Alt+T- List modeAlt+F- Full modeAlt+B- Brief mode
Virtual File System (VFS)
Browse archives
Navigate into:
.tar.gz.zip.rpm.deb
Extract files normally with F5/F6
FTP
F9 → Right/Left → FTP link
Or: cd ftp://user@server/path
SSH/SFTP
cd sh://user@server/path
cd sftp://user@server/path
Command line
Ctrl+Enter- Copy filename to command lineAlt+Enter- Copy full path to command lineAlt+Tab- Auto-completeCtrl+X T- Copy selected namesCtrl+X Ctrl+T- Copy opposite panel names
Search
Alt+? or Esc then ?
- By name pattern
- By content
- Set search scope
User menu (F2)
Create ~/.config/mc/menu:
+ t r
1 View file
cat %f | less
+ t r
2 Edit with vim
vim %f
+ t d
3 Compress directory
tar -czf %d.tar.gz %d
Subshell
Ctrl+O - Toggle panels
Run commands, then Ctrl+O to return to mc
Configuration
Files in ~/.config/mc/:
mc.ini- Main configpanels.ini- Panel settingsmenu- User menuhotlist- Directory hotlist
Hotlist
Ctrl+\- Show hotlist- Add current dir to hotlist in menu
Compare
directories
- Both panels showing desired dirs
Ctrl+X D- Compare directories- Shows differences
Tips
# Start in specific directory
mc /var/log
# Start in two directories
mc /etc /var/log
# Disable mouse
mc -d
# Use skin
mc -S <skin-name>
# List skins
ls /usr/share/mc/skins/
Keyboard shortcuts summary
Tab - Switch panels
Ins - Select file
F3 - View
F4 - Edit
F5 - Copy
F6 - Move
F7 - Mkdir
F8 - Delete
F9 - Menu
F10 - Exit
Ctrl+O - Shell
Ctrl+\ - Hotlist
Alt+. - Hidden files
Alt+? - Find file