← 返回命令列表

Linux command

mc 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Start Midnight Commander

mc

Start with two directories in panels

mc [dir1] [dir2]

Black and white mode

mc -b

View a file using the internal viewer

mc -v [file]

Edit a file using the internal editor

mc -e [file]

Disable mouse support

mc -d

说明

mc (Midnight Commander) is a visual file manager with a dual-pane interface. It provides file operations like copying, moving, renaming, and deleting through function keys and menus. Supports browsing archives (tar, zip, rpm, etc.) as virtual filesystems, remote connections via FTP, SFTP, and SMB, and a built-in text editor and file viewer. The subshell integration (Ctrl+O) allows switching between the file manager and a full command line without leaving mc.

参数

-a, --stickchars
Disable graphic characters for line drawing.
-b, --nocolor
Force black and white display.
-c, --color
Force color mode.
-C _arg_, --colors=_arg_
Specify a different color set.
-d, --nomouse
Disable mouse support.
-e _FILE_
Start the internal editor on the specified file.
-v _FILE_
Start the internal viewer on the specified file.
-s, --slow
Slow terminal mode.
-u, --nosubshell
Disable concurrent subshell.
-S _arg_, --skin=_arg_
Specify skin name.
-P _FILE_, --printwd=_FILE_
Write the last working directory of the panel to _FILE_ on exit (used by the mc wrapper script so that quitting with F10 cd's the outer shell).
-F, --datadir-info
Print the compiled-in data-directory paths and exit.
-g, --oldmouse
Use "normal tracking" mouse mode (for terminals that do not support the modern protocol).
-X, --no-x11
Do not use X11 to query modifier-key state.
--help
Display help information.

FAQ

What is the mc command used for?

mc (Midnight Commander) is a visual file manager with a dual-pane interface. It provides file operations like copying, moving, renaming, and deleting through function keys and menus. Supports browsing archives (tar, zip, rpm, etc.) as virtual filesystems, remote connections via FTP, SFTP, and SMB, and a built-in text editor and file viewer. The subshell integration (Ctrl+O) allows switching between the file manager and a full command line without leaving mc.

How do I run a basic mc example?

Run `mc` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -a, --stickchars do in mc?

Disable graphic characters for line drawing.