Midnight Commander
common commands
tab
: switch panelctrl-o
: switch to shellins
: select multiple items (mac user can usectrl-t
)ctrl-r
: refreshalt-?
: find filealt-s
orctrl-s
: quick searchctrl-\
: hot listctrl-x c
: chmodctrl-x o
: chownctrl-x s
: symbolic linkalt-c
: quick cd+
: group select base on pattern (you can enter*.jpg
for example)\
: group unselect base on pattern*
: reverse selectctrl-x ctrl-d
: diff filesshift F5
: copy file within same directory
command line, enter su
, it will ask you password and relaunch as root
shell
esc-tab
: for shell autocompletion (sincetab
is already used as panel switch)alt-p
andalt-n
: to navigate historyctrl-enter
oralt-enter
: copy current filename to the shellctrl-shift enter
copy current filename to the shell (full path)
panels
alt-,
: switch panel horizontally or verticallyalt-t
: change list modealt-i
: sync current directory to another panel (both panel under same directory now)ctrl-u
: swap panelsalt-o
: open directory on another panel<-
: parent directory
tip: set another skin for root, so its easier know you are using root
mc-wrapper
use this wrapper if you want mc
exit to the directory you were in.
simply add alias mc='. /usr/lib/mc/mc-wrapper.sh'
to .bashrc
.