LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

mc.fm

Midnight Commander's file manager mode

TLDR

Start file manager
$ mc
copy
Open a specific directory in the left panel
$ mc [/path/to/dir]
copy
Open two directories, one per panel
$ mc [left_dir] [right_dir]
copy
View a file in the internal viewer
$ mc -v [file]
copy
Edit a file with the internal editor
$ mc -e [file]
copy
Browse a remote host over SFTP
$ mc sftp://[user]@[host]/[path]
copy
Start without a subshell (faster startup)
$ mc -u
copy
Start in black and white without mouse support
$ mc -b -d
copy
Use a specific skin
$ mc -S [modarin256]
copy

SYNOPSIS

mc [options] [path1 [path2]]

DESCRIPTION

mc is Midnight Commander's file manager mode. It provides a dual-pane, keyboard-driven text-mode file manager in the style of Norton Commander.Function keys drive the main operations: F3 view, F4 edit, F5 copy, F6 move/rename, F7 make directory, F8 delete, F9 menu, F10 quit. The virtual filesystem (VFS) lets you browse archives (tar, zip, rpm, deb and others) and remote systems over SFTP, FTP and the shell protocol (sh://) as if they were local directories.

PARAMETERS

PATH1 PATH2

Directories (or VFS URLs) for the left and right panels.
-v, --view FILE
Launch the internal file viewer on a file.
-e, --edit FILE...
Launch the internal editor on files.
-b, --nocolor
Run in black and white.
-c, --color
Force color mode.
-S, --skin NAME
Use the specified skin.
-d, --nomouse
Disable mouse support.
-a, --stickchars
Use plain ASCII characters to draw lines.
-u, --nosubshell
Disable the concurrent subshell.
-U, --subshell
Enable the concurrent subshell (default).
-P, --printwd FILE
Write the last working directory to FILE on exit (used by the mc-wrapper to cd on exit).
-x, --xterm
Force xterm features.
-X, --no-x11
Disable X11 support.
-K, --keymap FILE
Load key bindings from FILE.
-l, --ftplog FILE
Log the FTP dialog to FILE.
-F, --datadir-info
Print information about the directories mc uses.
-V, --version
Display version information.
-h, --help
Display help information.

CAVEATS

Terminal-based; some terminals intercept function keys, in which case Esc followed by a digit works instead. Same program as mc; this page covers its file manager usage. Not to be confused with the MinIO client, which also installs a binary named mc.

HISTORY

Midnight Commander was started in 1994 by Miguel de Icaza as a Norton Commander clone for Unix. It became part of the GNU project and is still actively maintained, with 4.8.x releases.

SEE ALSO

mc(1), ranger(1), nnn(1)

RESOURCES

Copied to clipboard
Kai