What is MC? With the popularity of gnome and KDE graphic interfaces, the file browser derived from GNU, known as Swiss Army knife # Debian, is increasingly unknown.
First:
Wolf @ Debian :~ $ Man MC <br/> name <br/> Mc-Visual shell for Unix-like systems. <br/> usage <br/> Mc [-abccdfhpstuuvx] [-l log] [dir1 [dir2] [-E] [-V file] <br/> description <br/> GNU midnight commander is a directory Browser/File Manager for Unix-like operating systems. <br/>
From the online documentation, you can get a rough idea of its surface. ^_^.
We can see that the MC text interface is divided into four parts:
* The top menu bar (whatever it is ). You can click on the virtual terminal and console (you need to install GPM # aptitude install GPM in the console) or press F9 to activate it.
* There are two windows in the middle, one of which is the activation window at work and the other is in the inactive state. Of course, you can use the tab key to switch between them (change the activation status ).
* The second-to-last column contains the command line (CRF ). We can execute corresponding shell commands in this row.
* Some function key labels (function key Label [s]) are located at the bottom. For example, "10" means to exit. You can press F10.
There are several basic actions to grasp:
* You can use the arrow keys (arrow key) to move up and down, highlighting the current file to be moved (common files, directories, compressed files ).
* Enter the current file (, common file, directory, compressed file), and press Enter.
* To switch to the parent directory, use arry key to move to the/.. directory and press Enter.
The following describes the features of MC.
* Operation files (text files)
MC has built-in document reader and editor. You can directly access the two from the command line, or press F3 (viewer) and F4 (editor) after entering MC.
1) enter the following command line:
Mc-V filename # enter the reader <br/> Mc-e filename # enter the editor
2. Open MC and enter:
Assume that the file name is filename.
Press F4 (F3) to enter edit mode (read mode) <br/> note some function keys at the bottom. This can be used at will.
The following are the commands for F1-F10 in different modes. (Most of them can be found on the function key tag at the bottom)
|
Browse Mode |
View Mode |
Edit mode |
F1 |
Displays the main help screen |
Displays the viewer help screen |
Displays the editor help screen |
F2 |
Activates the user menu |
Wrap/unwraps the text |
Saves the file |
F3 |
View the selected file |
Exits View Mode |
Selects text |
F4 |
Edit the selected file |
Toggles ASCII/Hex View Mode |
Find and replace |
F5 |
Copy the selected file |
Opens the Goto line Dialog |
Copy selected text to cursor position |
F6 |
Rename/move the selected file |
Regexp search |
Move selected text to cursor position |
F7 |
Creates a new directory in the active panel |
Search |
Search |
F8 |
Deletes the selected file |
Toggle raw/parsed Mode |
Delete the current line or selection |
F9 |
Displays the top menu |
Toggles format/unformat View |
Displays editor's top menu |
F10 |
Exits MC |
Exits View Mode |
Exits edit mode |
* Operate VFS (Virtual File System ).
Supported VFS include FTP, fish (SSH and other remote connections) and SMB.
Direct:
Command Line skills in MC
The CD command can change the directory location in the focus screen.
Control-enter or Alt-enter
You can copy the file name to the command line. When editing a command line, you can
Use the CP or MV command in combination.
Alt-tab displays the file name of the file or directory to which the focus file belongs.
You can specify the start directory of the two Mc directory windows, for example, MC/etc.
/Root.
ESC + numberkey = FN (for example, ESC + '1' = F1, etc.; ESC +
'0' = F10)
ESC-Key = alt-Key (= Meta, M-); for example, ESC + 'C' is equivalent to alt-C
Reference:
1. http://www.linux.com/archive/feature/113 736
2. Debian official documentation