~/.netrc option string added
[midnight-commander.git] / doc / mc.1.in
blob2fff4792888399329da49eaf476fcf219e691210
1 .TH mc 1 "30 October 1998"
2 .\"SKIP_SECTION"
3 .SH "NAME"
4 mc \- Visual shell for Unix-like systems.
5 .\"SKIP_SECTION"
6 .SH "USAGE"
7 .B mc
8 [\-abcCdfhPstuUVx?] [\-l log] [dir1 [dir2]] [-v file]
9 .SH "DESCRIPTION"
10 .LP
11 The Midnight Commander is a directory browser/file manager for
12 Unix-like operating systems.  
13 .\".\"DONT_SPLIT"
14 .SH "OPTIONS"
15 .TP
16 .I "\-a"
17 Disables the usage of graphic characters for line drawing.
18 .TP
19 .I "\-b"
20 Forces black and white display.
21 .TP
22 .I "\-c"
23 Force color mode, please check the section
24 .\"LINK2"
25 Colors
26 .\"Colors"
27 for more information.
28 .TP
29 .I "\-C arg"
30 Used to specify a different color set in the command line.  The format
31 of arg is documented in the
32 .\"LINK2"
33 Colors
34 .\"Colors"
35 section.
36 .TP
37 .I "\-d"
38 Disables mouse support.
39 .TP
40 .I "\-f"
41 Displays the compiled-in search paths for Midnight Commander files.
42 .TP
43 .I "\-k"
44 Reset softkeys to their default from the termcap/terminfo
45 database. Only useful on HP terminals when the function keys don't work.
46 .TP
47 .I "-l file" 
48 Save the ftpfs dialog with the server in file.
49 .TP
50 .I "\-P"
51 At program end, the Midnight Commander will print the last working
52 directory. This function should not be used directly, instead, it should
53 be used from a special shell function that will automatically change the
54 current directory of the shell to the last directory the Midnight
55 Commander was in (thanks to Torben Fjerdingstad and Sergey for
56 contributing this function and the code implementing this option).
57 Source the files
58 .B @prefix@/lib/mc/bin/mc.sh
59 (bash and zsh users) respectively
60 .B @prefix@/lib/mc/bin/mc.csh
61 (tcsh users) in order to have this function defined.
62 .TP
63 .I "\-s"
64 Turns on the slow terminal mode, in this mode the program will not
65 draw expensive line drawing characters and will toggle verbose mode
66 off.
67 .TP
68 .I "\-t"
69 Used only if the code was compiled with Slang and terminfo: it makes
70 the Midnight Commander use the value of the 
71 .B TERMCAP
72 variable for the terminal information instead of the information on
73 the system wide terminal database
74 .TP
75 .I "\-u"
76 Disables the use of a concurrent shell (only makes sense if the
77 Midnight Commander has been built with concurrent shell support).
78 .TP
79 .I "\-U"
80 Enables the use of the concurrent shell support (only makes sense if
81 the Midnight Commander was built with the subshell support set as an
82 optional feature).
83 .TP
84 .I "\-v file"
85 Enters the internal viewer to view the file specified.
86 .TP
87 .I "\-V"
88 Displays the version of the program.
89 .TP
90 .I "\-x"
91 Forces xterm mode.  Used when running on xterm-capable terminals (two
92 screen modes, and able to send mouse escape sequences).
93 .PP
94 If specified, the first path name is the directory to show in the
95 selected panel; the second path name is the directory to be shown in
96 the other panel.
97 .PP
98 .SH "Overview"
99 The screen of the Midnight Commander is divided into four parts.
100 Almost all of the screen space is taken up by two directory panels.
101 By default, the second line from the bottom of the screen is the
102 shell command line, and the bottom line shows the function key labels.
103 The topmost line is the
104 .\"LINK2"
105 menu bar line.
106 .\"Menu Bar"
107 The menu bar line may not be visible, but appears if you click the
108 topmost line with the mouse or press the F9 key.
110 The Midnight Commander provides a view of two directories at the same
111 time. One of the panels is the current panel (a selection bar is in
112 the current panel). Almost all operations take place on the current
113 panel. Some file operations like Rename and Copy by default use the
114 directory of the unselected panel as a destination (don't worry, they
115 always ask you for confirmation first). For more information, see the
116 sections on the
117 .\"LINK2"
118 Directory Panels,
119 .\"Directory Panels"
121 .\"LINK2"
122 Left and Right Menus
123 .\"Left and Right Menus"
124 and the
125 .\"LINK2"
126 File Menu.
127 .\"File Menu"
129 You can execute system commands from the Midnight Commander by simply
130 typing them. Everything you type will appear on the shell command line,
131 and when you press Enter the Midnight Commander will execute the
132 command line you typed; read the
133 .\"LINK2"
134 Shell Command Line
135 .\"Shell Command Line"
137 .\"LINK2"
138 Input Line Keys
139 .\"Input Line Keys"
140 sections to learn more about the command line.
142 .SH "Mouse Support"
143 The Midnight Commander comes with mouse support.  It is activated
144 whenever you are running on an
145 .B xterm(1)
146 terminal (it even works if you take a telnet, ssh or rlogin connection to
147 another machine from the xterm) or if you are running on a Linux
148 console and have the
149 .B gpm
150 mouse server running.
152 When you left click on a file in the directory panels, that file is
153 selected; if you click with the right button, the file is marked (or
154 unmarked, depending on the previous state).
156 Double-clicking on a file will try to execute the command if it is
157 an executable program; and if the
158 .\"LINK2"
159 extension file
160 .\"Extension File Edit"
161 has a program specified for the file's extension, the specified
162 program is executed.
164 Also, it is possible to execute the commands assigned to the function
165 key labels by clicking on them.
167 If a mouse button is clicked on the top frame line of the directory panel,
168 it is scrolled one page up.  Likewise, a click on the bottom frame line
169 will cause scrolling one page down.  This frame line method works also
170 in the
171 .\"LINK2"
172 Help Viewer
173 .\"Contents"
174 and the
175 .\"LINK2"
176 Directory Tree.
177 .\"Directory Tree"
179 The default auto repeat rate for the mouse buttons is 400
180 milliseconds. This may be changed to other values by editing the
181 .\"LINK2"
182 \&~/.mc/ini
183 .\"Save Setup"
184 file and changing the 
185 .I mouse_repeat_rate
186 parameter.
188 If you are running the Commander with the mouse support, you can bypass
189 the Commander and get the default mouse behavior (cutting and pasting
190 text) by holding down the Shift key.
191 .SH ""
192 .SH "Keys"
193 Some commands in the Midnight Commander involve the use of the
194 .I Control
195 (sometimes labeled CTRL or CTL) and the 
196 .I Meta
197 (sometimes labeled ALT or even Compose) keys. In this manual we will
198 use the following abbreviations:
200 C-<chr> means hold the Control key while typing the character
201 <chr>. Thus C-f would be: hold the Control key and type f.
203 M-<chr> means hold the Meta or Alt key down while typing <chr>. If
204 there is no Meta or Alt key, type ESC, release it, then type the
205 character <chr>. 
207 All input lines in the Midnight Commander use an approximation to
208 the GNU Emacs editor's key bindings.
210 There are many sections which tell about the keys. The following are
211 the most important.
214 .\"LINK2"
215 File Menu
216 .\"File Menu"
217 section documents the keyboard shortcuts for the commands appearing in
218 the File menu. This section includes the function keys. Most of these
219 commands perform some action, usually on the selected file or the
220 tagged files.
223 .\"LINK2"
224 Directory Panels
225 .\"Directory Panels"
226 section documents the keys which select a file or tag files as a
227 target for a later action (the action is usually one from the file
228 menu).
231 .\"LINK2"
232 Shell Command Line
233 .\"Shell Command Line"
234 section list the keys which are used for entering and editing command
235 lines. Most of these copy file names and such from the directory
236 panels to the command line (to avoid excessive typing) or access the
237 command line history.
239 .\"LINK2"
240 Input Line Keys
241 .\"Input Line Keys"
242 are used for editing input lines. This means both the command line and
243 the input lines in the query dialogs.
245 .SH "  Miscellaneous Keys"
246 Here are some keys which don't fall into any of the other categories:
248 .B Enter.
249 If there is some text in the command line (the one at the bottom of
250 the panels), then that command is executed. If there is no text in the
251 command line then if the selection bar is over a directory the
252 Midnight Commander does a 
253 .B chdir(2)
254 to the selected directory and reloads the information on the panel;
255 if the selection is an executable file then it is executed. Finally,
256 if the extension of the selected file name matches one of the
257 extensions in the
258 .\"LINK2"
259 extensions file
260 .\"Extension File Edit"
261 then the corresponding command is executed.
263 .B C-l.
264 Repaint all the information in the Midnight Commander.
266 .B C-x c.
267 Run the
268 .\"LINK2"
269 Chmod
270 .\"Chmod"
271 command on a file or on the tagged files.
273 .B C-x o.
274 Run the
275 .\"LINK2"
276 Chown
277 .\"Chown"
278 command on the current file or on the tagged files.
280 .B C-x l.
281 Run the link command.
283 .B C-x s.
284 Run the symbolic link command.
286 .B C-x i.
287 Set the other panel display mode to information.
289 .B C-x q.
290 Set the other panel display mode to quick view.
292 .B C-x !.
293 Execute the 
294 .\"LINK2"
295 External panelize
296 .\"External panelize"
297 command.
299 .B C-x h
300 Run the 
301 .\"LINK2"
302 add directory to hotlist
303 .\"Hotlist"
304 command.
306 .B M-!,
307 Executes the Filtered view command, described in the
308 .\"LINK2"
309 view command.
310 .\"Internal File Viewer"
312 .B M-?,
313 Executes the 
314 .\"LINK2"
315 Find file
316 .\"Find File"
317 command.
319 .B M-c,
320 Pops up the
321 .\"LINK2"
322 quick cd
323 .\"Quick cd"
324 dialog.
326 .B C-o,
327 When the program is being run in the Linux or SCO console or under an xterm,
328 it will show you the output of the previous command.  When ran on the
329 Linux console, the Midnight Commander uses an external program
330 (cons.saver) to handle saving and restoring of information on the
331 screen.
333 When the subshell support is compiled in, you can type C-o at any time
334 and you will be taken back to the Midnight Commander main screen, to
335 return to your application just type C-o.  If you have an application
336 suspended by using this trick, you won't be able to execute other
337 programs from the Midnight Commander until you terminate the suspended
338 application. 
340 .SH "  Directory Panels"
341 This section lists the keys which operate on the directory panels. If
342 you want to know how to change the appearance of the panels take a
343 look at the section on
344 .\"LINK2"
345 Left and Right Menus.
346 .\"Left and Right Menus"
348 .B Tab, C-i.
349 Change the current panel. The old other panel becomes the new current
350 panel and the old current panel becomes the new other panel. The
351 selection bar moves from the old current panel to the new current
352 panel.
354 .B Insert, C-t.
355 To tag files you may use the Insert key (the kich1 terminfo sequence)
356 or the C-t (Control-t) sequence. To untag files, just retag a tagged
357 file.
359 .B M-g, M-h (or M-r), M-j.
360 Used to select the top file in a panel, the middle file and the bottom one,
361 respectively. 
363 .B C-s, M-s.
364 Start a filename search in the directory listing. When the search is
365 active, the user input will be added to the search string instead of
366 the command line. If the
367 .I "Show mini-status"
368 option is enabled the search string is shown on the mini-status
369 line. When typing, the selection bar will move to the next file
370 starting with the typed letters. The
371 .I "backspace"
373 .I DEL 
374 keys can be used to correct typing mistakes. If C-s is pressed
375 again, the next match is searched for.
377 .B M-t
378 Toggle the current display listing to show the next display listing
379 mode.  With this it is possible to quickly switch from long listing
380 to regular listing and the user defined listing mode.
382 .B C-\\\\ (control-backslash).
383 Show the 
384 .\"LINK2"
385 directory hotlist
386 .\"Hotlist"
387 and change to the selected directory.
389 .B + \ (plus).
390 This is used to select (tag) a group of files. The Midnight Commander
391 will prompt for a regular expression describing the group. When
392 .I Shell Patterns 
393 are enabled, the regular expression is much like the regular
394 expressions in the shell (* standing for zero or more characters and ?
395 standing for one character). If
396 .I Shell Patterns
397 is off, then the tagging of files is done with normal regular
398 expressions (see ed (1)).
400 If the expression starts or ends with a slash (/), then it will select
401 directories instead of files.
403 .B \\\\ (backslash).
404 Use the "\\" key to unselect a group of files. This is the opposite of
405 the Plus key.
407 .B up-key, C-p.
408 Move the selection bar to the previous entry in the panel.
410 .B down-key, C-n.
411 Move the selection bar to the next entry in the panel.
413 .B home, a1, M-<.
414 Move the selection bar to the first entry in the panel.
416 .B end, c1, M->.
417 Move the selection bar to the last entry in the panel.
419 .B next-page, C-v.
420 Move the selection bar one page down.
422 .B prev-page, M-v.
423 Move the selection bar one page up.
425 .B M-o,
426 If the other panel is a listing panel and you are standing on a
427 directory in the current panel, then the other panel contents are set
428 to the contents of the currently selected directory (like Emacs' dired
429 C-o key) otherwise the other panel contents are set to the parent dir
430 of the current dir.
432 .B C-PageUp, C-PageDown
433 Only when ran on the Linux console: does a chdir to ".." and to the
434 currently selected directory respectively.
436 .B M-y
437 Moves to the previous directory in the history, equivalent 
438 to depressing the '<' with the mouse.
440 .B M-u
441 Moves to the next directory in the history, equivalent 
442 to depressing the '>' with the mouse.
444 .B M-S-h, M-H
445 Displays the directory history, equivalent to depressing the 'v' with
446 the mouse.
448 .SH "  Shell Command Line"
449 This section lists keys which are useful to avoid excessive typing when
450 entering shell commands.
452 .B M-Enter.
453 Copy the currently selected file name to the command line.
455 .B C-Enter.
456 Same a M-Enter, this one only works on the Linux console.
458 .B M-Tab.
459 Does the filename, command, variable, username and hostname
460 .\"LINK2"
461 completion
462 .\"Completion"
463 for you.
465 .B C-x t, C-x C-t.
466 Copy the tagged files (or if there are no tagged files, the selected
467 file) of the current panel (C-x t) or of the other panel (C-x C-t) to
468 the command line.
470 .B C-x p, C-x C-p. 
471 The first key sequence copies the current path name to the command
472 line, and the second one copies the unselected panel's path name to
473 the command line.
475 .B C-q.
476 The quote command can be used to insert characters that are otherwise
477 interpreted by the Midnight Commander (like the '+' symbol)
479 .B M-p, M-n.
480 Use these keys to browse through the command history. M-p takes you
481 to the last entry, M-n takes you to the next one.
483 .B M-h.
484 Displays the history for the current input line. 
486 .SH "  General Movement Keys"
487 The help viewer, the file viewer and the directory tree use common
488 code to handle moving. Therefore they accept exactly the same
489 keys. Each of them also accepts some keys of its own.
491 Other parts of the Midnight Commander use some of the same movement
492 keys, so this section may be of use for those parts too.
494 .B Up, C-p.
495 Moves one line backward.
497 .B Down, C-n.
498 Moves one line forward.
500 .B Prev Page, Page Up, M-v.
501 Moves one page up.
503 .B Next Page, Page Down, C-v.
504 Moves one page down.
506 .B Home, A1.
507 Moves to the beginning.
509 .B End, C1.
510 Move to the end.
512 The help viewer and the file viewer accept the following keys in
513 addition the to ones mentioned above:
515 .B b, C-b, C-h, Backspace, Delete.
516 Moves one page up.
518 .B Space bar.
519 Moves one page down.
521 .B u, d.
522 Moves one half of a page up or down.
524 .B g, G.
525 Moves to the beginning or to the end.
527 .SH "  Input Line Keys"
528 The input lines (they are used for the
529 .\"LINK2"
530 command line
531 .\"Shell Command Line"
532 and for the query dialogs in the program) accept these keys:
534 .B C-a
535 puts the cursor at the beginning of line.
537 .B C-e
538 puts the cursor at the end of the line.
540 .B C-b, move-left
541 move the cursor one position left.
543 .B C-f, move-right
544 move the cursor one position right.
546 .B M-f
547 moves one word forward.
549 .B M-b
550 moves one word backward.
552 .B C-h, backspace
553 delete the previous character.
555 .B C-d, Delete
556 delete the character in the point (over the cursor).
558 .B C-@
559 sets the mark for cutting.
561 .B C-w
562 copies the text between the cursor and the mark to a kill buffer and
563 removes the text from the input line.
565 .B M-w
566 copies the text between the cursor and the mark to a kill buffer.
568 .B C-y
569 yanks back the contents of the kill buffer.
571 .B C-k
572 kills the text from the cursor to the end of the line.
574 .B M-p, M-n
575 Use these keys to browse through the command history. M-p takes you
576 to the last entry, M-n takes you to the next one.
578 .B M-C-h, M-Backspace
579 delete one word backward.
581 .B M-Tab
582 does the filename, command, variable, username and hostname
583 .\"LINK2"
584 completion
585 .\"Completion"
586 for you.
588 .SH ""
589 .SH "Menu Bar"
590 The menu bar pops up when you press F9 or click the mouse on the top
591 row of the screen. The menu bar has five menus: "Left", "File",
592 "Command", "Options" and "Right".
595 .\"LINK2"
596 Left and Right Menus
597 .\"Left and Right Menus"
598 allow you to modify the appearance of the left and right directory
599 panels.
602 .\"LINK2"
603 File Menu
604 .\"File Menu"
605 lists the actions you can perform on the currently selected file or
606 the tagged files.
609 .\"LINK2"
610 Command Menu
611 .\"Command Menu"
612 lists the actions which are more general and bear no relation to the
613 currently selected file or the tagged files.
616 .\"LINK2"
617 Options Menu
618 .\"Options Menu"
619 lists the actions which allow you to customize the Midnight Commander.
621 .SH "  Left and Right Menus"
622 The outlook of the directory panels can be changed from the
623 .B "Left"
625 .B "Right"
626 menus.
628 .SH "    Listing Mode..."
629 The listing mode view is used to display a listing of files, there are
630 four different listing modes available:
631 .B Full,
632 .B Brief,
633 .B Long
635 .B User.
636 The full directory view shows the file name, the size of the file and
637 the modification time. 
639 The brief view shows only the file name and it has two columns
640 (therefore showing twice as many files as other views). The long view
641 is similar to the output of
642 .B "ls -l"
643 command. The long view takes the whole screen width.
645 If you choose the "User" display format, then you have to specify
646 the display format.
648 The user display format must start with a panel size specifier.  This
649 may be "half" or "full", and they specify a half screen panel and a
650 full screen panel respectively.
652 After the panel size, you may specify the two columns mode on the
653 panel, this is done by adding the number "2" to the user format
654 string. 
656 After this you add the name of the fields with an optional size
657 specifier.  This are the available fields you may display:
659 .B name,
660 displays the file name.
662 .B size,
663 displays the file size.
665 .B bsize,
666 is an alternative form of the
667 .B size
668 format. It displays the size of the files and for directories it just
669 shows SUB-DIR or UP--DIR.
671 .B type,
672 displays a one character field type.  This character is similar to
673 what is displayed by ls with the -F flag -
674 .B *
675 for executable files,
676 .B /
677 for directories,
678 .B @
679 for links,
680 .B =
681 for sockets,
682 .B -
683 for character devices,
684 .B +
685 for block devices,
686 .B |
687 for pipes,
688 .B ~
689 for symbolic links to directories and
690 .B !
691 for stalled symlinks (links that point nowhere).
693 .B mtime,
694 file's last modification time.
696 .B atime,
697 file's last access time.
699 .B ctime,
700 file's creation time.
702 .B perm,
703 a string representing the current permission bits of the file.
705 .B mode,
706 an octal value with the current permission bits of the file.
708 .B nlink,
709 the number of links to the file.
711 .B ngid,
712 the GID (numeric).
714 .B nuid,
715 the UID (numeric).
717 .B owner,
718 the owner of the file.
720 .B group,
721 the group of the file.
723 .B inode,
724 the inode of the file.
726 Also you may use these field names for arranging the display:
728 .B space,
729 a space in the display format.
731 .B mark,
732 An asterisk if the file is tagged, a space if it's not.
734 .B |,
735 This character is used to add a vertical line to the display format.
737 To force one field to a fixed size (a size specifier), you just add
738 a ':' and then the number of characters you want the field to have, if
739 the number is followed by the symbol '+', then the size specifies the
740 minimum field size, if the program finds out that there is more space
741 on the screen, it will then expand this field.
743 For example, the 
744 .B Full
745 display corresponds to this format:
747 half type,name,|,size,|,mtime
749 And the 
750 .B Long
751 display corresponds to this format:
753 full perm,space,nlink,space,owner,space,group,space,size,space,
754 mtime,space,name
756 This is a nice user display format:
758 half name,|,size:7,|,type,mode:3
760 Panels may also be set to the following modes:
762 .B "Info"
763 The info view display information related to the currently
764 selected file and if possible information about the current file
765 system.
767 .B "Tree" 
768 The tree view is quite similar to the
769 .\"LINK2"
770 directory tree
771 .\"Directory Tree"
772 feature. See the section about it for more information.
773 .TP 
774 .B "Quick View"
775 In this mode, the panel will switch to a reduced 
776 .\"LINK2"
777 viewer
778 .\"Internal File Viewer"
779 that displays the contents of the currently selected file, if you
780 select the panel (with the tab key or the mouse), you will have access
781 to the usual viewer commands.
783 .SH "    Sort Order..."
784 The eight sort orders are by name, by extension, by modification time,
785 by access time, and by inode information modification time, by size,
786 by inode and unsorted.  In the Sort order dialog box you can choose
787 the sort order and you may also specify if you want to sort in reverse
788 order by checking the reverse box.
790 By default directories are sorted before files but this can be changed
791 from the
792 .\"LINK2"
793 Options menu
794 .\"Options Menu"
795 (option 
796 .B "Mix all files"
799 .SH "    Filter..."
800 The filter command allows you to specify a shell pattern (for example
801 .B "*.tar.gz"
802 ) which the files must match to be shown. Regardless
803 of the filter pattern, the directories and the links to directories
804 are always shown in the directory panel.
806 .SH "    Reread"
807 The reread command reload the list of files in the directory. It is
808 useful if other processes have created or removed files.  If you
809 have panelized file names in a panel this will reload the directory
810 contents and remove the panelized information (See the section
811 .\"LINK2"
812 External panelize
813 .\"External panelize"
814 for more information).
816 .SH "  File Menu"
817 The Midnight Commander uses the F1 - F10 keys as keyboard shortcuts
818 for commands appearing in the file menu.  The escape sequences for the
819 function keys are terminfo capabilities kf1 trough kf10.  On terminals
820 without function key support, you can achieve the same functionality by
821 pressing the ESC key and then a number in the range 1 through 9 and 0
822 (corresponding to F1 to F9 and F10 respectively).
824 The File menu has the following commands (keyboard shortcuts in parentheses):
826 .B Help (F1)
828 Invokes the built-in hypertext help viewer. Inside the
829 .\"LINK2"
830 help viewer,
831 .\"Contents"
832 you can use the Tab key to select the next link and the Enter key to
833 follow that link. The keys Space and Backspace are used to move
834 forward and backward in a help page. Press F1 again to get the full
835 list of accepted keys.
837 .B Menu (F2)
839 Invoke the
840 .\"LINK2"
841 user menu.
842 .\"Menu File Edit"
843 The user menu provides an easy way to provide users with a menu and
844 add extra features to the Midnight Commander.
846 .B View (F3, Shift-F3)
848 View the currently selected file. By default this invokes the
849 .\"LINK2"
850 Internal File Viewer
851 .\"Internal File Viewer"
852 but if the option "Use internal view" is off, it invokes an external
853 file viewer specified by the 
854 .B PAGER 
855 environment variable. If 
856 .B PAGER
857 is undefined, the "view" command is invoked.  If you use Shift-F3
858 instead, the viewer will be invoked without doing any formatting or
859 preprocessing to the file.
861 .B Filtered View (M-!)
863 this command prompts for a command
864 and it's arguments (the argument defaults to the currently selected
865 file name), the output from such command is shown in the internal file
866 viewer.
868 .B Edit (F4)
870 Currently it invokes the 
871 .B vi 
872 editor, or the editor specified in the
873 .B EDITOR
874 environment variable, or the 
875 .\"LINK2"
876 Internal File Editor
877 .\"Internal File Editor"
878 if the use_internal_edit option is on.
880 .B Copy (F5)
882 Pop up an input dialog with destination that defaults to the directory
883 in the non-selected panel and copies the currently selected file (or
884 the tagged files, if there is at least one file tagged) to the
885 directory specified by the user in the input dialog. During this
886 process, you can press C-c or ESC to abort the operation. For details
887 about source mask (which will be usually either * or ^\\(.*\\)$ depending
888 on setting of Use shell patterns) and possible wildcards in the destination
889 see 
890 .\"LINK2"
891 Mask copy/rename.
892 .\"Mask Copy/Rename"
894 On some systems, it is possible to do the copy in the background by
895 clicking on the background button (or pressing M-b in the dialog
896 box).  The 
897 .\"LINK2"
898 Background Jobs
899 .\"Background jobs"
900 is used to control the background process.
902 .B Link (C-x l)
904 Create a hard link to the current file.
906 .B SymLink (C-x s)
908 Create a symbolic link to the current file. To those of you who don't
909 know what links are: creating a link to a file is a bit like copying
910 the file, but both the source filename and the destination filename
911 represent the same file image. For example, if you edit one of these
912 files, all changes you make will appear in both files. Some people call
913 links aliases or shortcuts.
915 A hard link appears as a real file. After making it, there is no way of
916 telling which one is the original and which is the link. If you delete
917 either one of them the other one is still intact. It is very difficult
918 to notice that the files represent the same image. Use hard links when
919 you don't even want to know.
921 A symbolic link is a reference to the name of the original file. If
922 the original file is deleted the symbolic link is useless. It is quite
923 easy to notice that the files represent the same image. The Midnight
924 Commander shows an "@"-sign in front of the file name if it is a
925 symbolic link to somewhere (except to directory, where it shows a tilde (~)).
926 The original file which the link points to is shown on mini-status line if the
927 .I "Show mini-status"
928 option is enabled. Use symbolic links when you want to avoid the
929 confusion that can be caused by hard links.
931 .B Rename/Move (F6)
933 Pop up an input dialog that defaults to the directory in the
934 non-selected panel and moves the currently selected file (or the
935 tagged files if there is at least one tagged file) to the directory
936 specified by the user in the input dialog. During the process, you
937 can press C-c or ESC to abort the operation. For more details look at Copy
938 operation above, most of the things are quite similar.
940 On some systems, it is possible to do the copy in the background by
941 clicking on the background button (or pressing M-b in the dialog
942 box). The 
943 .\"LINK2"
944 Background Jobs
945 .\"Background jobs"
946 is used to control the background process.
948 .B Mkdir (F7)
950 Pop up an input dialog and creates the directory specified.
952 .B Delete (F8)
954 Delete the currently selected file or the tagged files in the
955 currently selected panel. During the process, you can press C-c or
956 ESC to abort the operation.
958 .B Quick cd (M-c)
959 Use the
960 .\"LINK2"
961 quick cd
962 .\"Quick cd"
963 command if you have full command line and want to cd somewhere.
965 .B Select group (+)
967 This is used to select (tag) a group of files. The Midnight Commander
968 will prompt for a regular expression describing the group. When
969 .I Shell Patterns 
970 are enabled, the regular expression is much like the filename globbing
971 in the shell (* standing for zero or more characters and ?  standing
972 for one character). If
973 .I Shell Patterns
974 is off, then the tagging of files is done with normal regular
975 expressions (see ed (1)).
977 To mark directories instead of files, the expression must start or end
978 with a '/'.
980 .B Unselect group (\\\\)
982 Used to unselect a group of files. This is the opposite of the
983 .I "Select group"
984 command.
986 .B Quit (F10, Shift-F10)
988 Terminate the Midnight Commander.  Shift-F10 is used when you want to
989 quit and you are using the shell wrapper.  Shift-F10 will not take you
990 to the last directory you visited with the Midnight Commander, instead
991 it will stay at the directory where you started the Midnight Commander.
993 .SH "    Quick cd"
994 This command is useful if you have a full command line and want to 
995 .\"LINK2"
997 .\"The cd internal command"
998 somewhere without having to yank and paste the command line. This command
999 pops up a small dialog, where you enter everything you would enter after
1000 .B cd 
1001 on the command line and then you press enter. This features all the things
1002 that are already in the 
1003 .\"LINK2"
1004 internal cd command.
1005 .\"The cd internal command"
1007 .SH "  Command Menu"
1009 .\"LINK2"
1010 Directory tree
1011 .\"Directory Tree"
1012 command shows a tree figure of the directories.
1015 .\"LINK2"
1016 Find file
1017 .\"Find File"
1018 command allows you to search for a specific file. The "Swap panels"
1019 command swaps the contents of the two directory panels. 
1021 The "Panels on/off" command shows the output of the last shell
1022 command. This works only on xterm and on Linux and SCO console.
1024 The Compare directories (C-x d) command compares the directory
1025 panels with each other. You can then use the Copy (F5) command to make
1026 the panels identical. There are three compare methods. The quick method
1027 compares only file size and file date. The thorough method makes a
1028 full byte-by-byte compare. The thorough method is not available if the
1029 machine does not support the mmap(2) system call.  The size-only
1030 compare method just compares the file sizes and does not check the
1031 contents or the date times, it just checks the file size.
1033 The Command history command shows a list of typed commands. The
1034 selected command is copied to the command line. The command history
1035 can also be accessed by typing M-p or M-n. 
1037 The 
1038 .\"LINK2"
1039 Directory hotlist (C-\\)
1040 .\"Hotlist"
1041 command makes changing of the current directory to often used directories
1042 faster.
1044 The 
1045 .\"LINK2"
1046 External panelize
1047 .\"External panelize"
1048 allows you to execute an external program, and
1049 make the output of that program the contents of the current panel.
1051 .\"LINK2"
1052 Extension file edit
1053 .\"Extension File Edit"
1054 command allows you to specify programs to executed when you try to
1055 execute, view, edit and do a bunch of other thing on files
1056 with certain extensions (filename endings). The
1057 .\"LINK2"
1058 Menu file edit
1059 .\"Menu File Edit"
1060 command may be used for editing the user menu (which appears by
1061 pressing F2).
1063 .SH "    Directory Tree"
1064 The Directory Tree command shows a tree figure of the directories. You
1065 can select a directory from the figure and the Midnight Commander will
1066 change to that directory.
1068 There are two ways to invoke the tree. The real directory tree command
1069 is available from Commands menu. The other way is to select tree view
1070 from the Left or Right menu.
1072 To get rid of long delays the Midnight Commander creates the tree
1073 figure by scanning only a small subset of all the directories. If the
1074 directory which you want to see is missing, move to its parent
1075 directory and press C-r (or F2).
1077 You can use the following keys:
1079 .\"LINK2"
1080 General movement keys
1081 .\"General Movement Keys"
1082 are accepted.
1084 .B Enter.
1085 In the directory tree, exits the directory tree and changes to this
1086 directory in the current panel. In the tree view, changes to this
1087 directory in the other panel and stays in tree view mode in the
1088 current panel.
1090 .B C-r, F2 (Rescan).
1091 Rescan this directory. Use this when the tree figure is out of date:
1092 it is missing subdirectories or shows some subdirectories which don't
1093 exist any more.
1095 .B F3 (Forget).
1096 Delete this directory from the tree figure. Use this to remove clutter
1097 from the figure. If you want the directory back to the tree figure
1098 press F2 in its parent directory. 
1100 .B F4 (Static/Dynamic).
1101 Toggle between the dynamic navigation mode (default) and the static
1102 navigation mode.
1104 In the static navigation mode you can use the Up and Down keys to
1105 select a directory. All known directories are shown.
1107 In the dynamic navigation mode you can use the Up and Down keys to
1108 select a sibling directory, the Left key to move to the parent
1109 directory, and the Right key to move to a child directory. Only the
1110 parent, sibling and children directories are shown, others are left
1111 out. The tree figure changes dynamically as you traverse.
1113 .B F5 (Copy).
1114 Copy the directory.
1116 .B F6 (RenMov).
1117 Move the directory.
1119 .B F7 (Mkdir).
1120 Make a new directory below this directory.
1122 .B F8 (Delete).
1123 Delete this directory from the file system.
1125 .B C-s, M-s.
1126 Search the next directory matching the search string. If there is
1127 no such directory these keys will move one line down.
1129 .B C-h, Backspace.
1130 Delete the last character of the search string.
1132 .B Any other character.
1133 Add the character to the search string and move to the next directory
1134 which starts with these characters. In the tree view you must first
1135 activate the search mode by pressing C-s. The search string is shown
1136 in the mini status line.
1138 The following actions are available only in the directory tree. They
1139 aren't supported in the tree view.
1141 .B F1 (Help).
1142 Invoke the help viewer and show this section.
1144 .B Esc, F10.
1145 Exit the directory tree. Do not change the directory.
1147 The mouse is supported. A double-click behaves like Enter. See
1148 also the section on
1149 .\"LINK2"
1150 mouse support.
1151 .\"Mouse Support"
1153 .SH "    Find File"
1154 The Find File feature first asks for the start directory for the
1155 search and the filename to be searched for. By pressing the Tree
1156 button you can select the start directory from the
1157 .\"LINK2"
1158 directory tree
1159 .\"Directory Tree"
1160 figure. 
1162 The contents field accepts regular expressions similar to egrep(1). That
1163 means you have to escape characters with a special meaning to egrep with "\\", 
1164 e.g. if you search for "strcmp (" you will have to input "strcmp \\(" 
1165 (without the double quotes).
1167 You can start the search by pressing the Ok button.
1168 During the search you can stop from the Stop button and continue from
1169 the Start button.
1171 You can browse the filelist with the up and down arrow keys. The Chdir
1172 button will change to the directory of the currently selected
1173 file. The Again button will ask for the parameters for a new
1174 search. The Quit button quits the search operation. The Panelize
1175 button will place the found files to the current directory panel so
1176 that you can do additional operations on them (view, copy, move,
1177 delete and so on). After panelizing you can press C-r to return to the
1178 normal file listing.
1180 It is possible to have a list of directories that the Find File
1181 command should skip during the search (for example, you may want to
1182 avoid searches on a CDROM or on a NFS directory that is mounted across
1183 a slow link).
1185 Directories to be skipped should be set on the variable
1186 .B find_ignore_dirs 
1187 in the 
1188 .B Misc 
1189 section of your ~/.mc/ini file.
1191 Directory components should be separated with a colon, here is an
1192 example: 
1195 [Misc]
1196 find_ignore_dirs=/cdrom:/nfs/wuarchive:/afs
1199 You may consider using the
1200 .\"LINK2"
1201 External panelize
1202 .\"External panelize"
1203 command for some operations. Find file command is for simple queries
1204 only, while using External panelize you can do as mysterious searches
1205 as you would like.  
1207 .SH "    External panelize"
1208 The External panelize allows you to execute an external program, and
1209 make the output of that program the contents of the current panel.
1211 For example, if you want to manipulate in one of the panels all the
1212 symbolic links in the current directory, you can use external
1213 panelization to run the following command:
1216 find . -type l -print
1218 Upon command completion, the directory contents of the panel will no
1219 longer be the directory listing of the current directory, but all the
1220 files that are symbolic links.
1222 If you want to panelize all of the files that have been downloaded
1223 from your ftp server, you can use this awk command to extract the file
1224 name from the transfer log files:
1227 awk '$9 ~! /incoming/ { print $9 }' < /usr/adm/xferlog
1230 You may want to save often used panelize commands under a descriptive name,
1231 so that you can recall them quickly. You do this by typing the command on
1232 the input line and pressing Add new button. Then you enter a name under
1233 which you want the command to be saved. Next time, you just choose that
1234 command from the list and do not have to type it again.
1236 .SH "    Hotlist"
1237 The Directory hotlist command shows the labels of the directories
1238 in the directory hotlist.  The Midnight Commander will change to the
1239 directory corresponding to the selected label.  From the hotlist dialog,
1240 you can remove already created label/directory pairs and add new ones.
1241 To add new directories quickly, you can use the Add to hotlist command
1242 (C-x h), which adds the current directory into the directory hotlist,
1243 asking just for the label for the directory.
1245 This makes cd to often used directories faster. You may consider using the
1246 CDPATH variable as described in
1247 .\"LINK2"
1248 internal cd command
1249 .\"The cd internal command"
1250 description.
1252 .SH "    Extension File Edit"
1253 This will invoke your editor on the file ~/.mc/bindings. The format of this
1254 file is as follows (the format has changed with version 3.0):
1256 All lines starting with # or empty lines are thrown away.
1258 Lines starting in the first column should have following format:
1260 .I keyword/descNL,
1261 i.e. everything after 
1262 .I keyword/
1263 until new line is 
1264 .I desc
1266 keyword can be: 
1268 .I shell
1270 (desc is then any extension (no wildcards), i.e. matches all the files 
1271 *desc . Example: .tar matches *.tar)
1273 .I regex
1275 (desc is a regular expression)
1277 .I type
1279 (file matches this if `file %f` matches regular expression desc
1280 (the filename: part from `file %f` is removed))
1282 .I default
1284 (matches any file no matter what desc is)
1286 Other lines should start with a space or tab and should be of the format:
1288 .I keyword=commandNL
1289 (with no spaces around =), where 
1290 .I keyword
1291 should be: 
1293 .I Open
1294 (if the user presses Enter or doubleclicks it), 
1295 .I View
1296 (F3), 
1297 .I Edit
1298 (F4), 
1299 .I Drop
1300 (user drops some files on it) or any other
1301 user defined name (those will be listed in the extension dependent pop-up
1302 menu). 
1303 .I Icon
1304 name is reserved for future use by mc.
1306 .I command
1307 is any one-line shell command, with the simple 
1308 .\"LINK2"
1309 macro substitution.
1310 .\"Macro Substitution"
1312 Target are evaluated from top to bottom (order is thus important).
1313 If some actions are missing, search continues as if this target didn't
1314 match (i.e. if a file matches the first and second entry and View action
1315 is missing in the first one, then on pressing F3 the View action from
1316 the second entry will be used. default should catch all the actions.
1318 .\"NODE "    Background jobs"
1319 .SH "    Background Jobs"
1320 This lets you control the state of any background Midnight Commander
1321 process (only copy and move files operations can be done in the
1322 background).  You can stop, restart and kill a background job from
1323 here. 
1325 .SH "    Menu File Edit"
1326 The user menu is a menu of useful actions that can be customized by
1327 the user. When you access the user menu, the
1328 file .mc.menu from the current directory is used if it exists,
1329 but only if it is owned by user or root and is not world-writable.
1330 If no such file found, ~/.mc/menu is tried in the same way, 
1331 and otherwise mc uses the default system-wide menu
1332 @prefix@/lib/mc/mc.menu.
1334 The format of the menu file is very simple. Lines that start with
1335 anything but space or tab are considered entries for the menu (in
1336 order to be able to use it like a hot key, the first character should
1337 be a letter). All the lines that start with a space or a tab are the
1338 commands that will be executed when the entry is selected.
1340 When an option is selected all the command lines of the option are
1341 copied to a temporary file in the temporary directory (usually
1342 /usr/tmp) and then that file is executed. This allows the user to put
1343 normal shell constructs in the menus. Also simple macro substitution
1344 takes place before executing the menu code. For more information, see
1345 .\"LINK2"
1346 macro substitution.
1347 .\"Macro Substitution"
1349 Here is a sample mc.menu file:
1352 A       Dump the currently selected file
1353         od -c %f
1355 B       Edit a bug report and send it to root
1356         vi /tmp/mail.$$
1357         mail -s "Midnight Commander bug" root < /tmp/mail.$$
1359 M       Read mail
1360         emacs -f rmail
1362 N       Read Usenet news
1363         emacs -f gnus
1365 H       Call the info hypertext browser
1366         info
1368 J       Copy current directory to other panel recursively
1369         tar cf - . | (cd %D && tar xvpf -)
1371 K       Make a release of the current subdirectory
1372         echo -n "Name of distribution file: "
1373         read tar
1374         ln -s %d `dirname %d`/$tar 
1375         cd ..
1376         tar cvhf ${tar}.tar $tar
1378 = f *.tar.gz | f *.tgz & t n
1379 X       Extract the contents of a compressed tar file
1380         tar xzvf %f
1383 .B Default Conditions
1385 Each menu entry may be preceded by a condition. The condition must
1386 start from the first column with a '=' character. If the condition is
1387 true, the menu entry will be the default entry.
1390 Condition syntax:       = <sub-cond>
1391   or:                   = <sub-cond> | <sub-cond> ...
1392   or:                   = <sub-cond> & <sub-cond> ... 
1394 Sub-condition is one of following:
1396   y <pattern>           syntax of current file matching pattern?
1397                         for edit menu only.
1398   f <pattern>           current file matching pattern?
1399   F <pattern>           other file matching pattern?
1400   d <pattern>           current directory matching pattern?
1401   D <pattern>           other directory matching pattern?
1402   t <type>              current file of type?
1403   T <type>              other file of type?
1404   x <filename>          is it executable filename?
1405   ! <sub-cond>          negate the result of sub-condition
1408 Pattern is a normal shell pattern or a regular expression, according
1409 to the shell patterns option. You can override the global value of
1410 the shell patterns option by writing "shell_patterns=x" on the first
1411 line of the menu file (where "x" is either 0 or 1).
1414 Type is one or more of the following characters:
1416   n     not directory
1417   r     regular file
1418   d     directory
1419   l     link
1420   c     char special
1421   b     block special
1422   f     fifo (pipe)
1423   s     socket
1424   x     executable
1425   t     tagged
1428 For example 'rlf' means either regular file, link or fifo. The 't'
1429 type is a little special because it acts on the panel instead of the
1430 file. The condition '=t t' is true if there are tagged files in the
1431 current panel and false if not.
1433 If the condition starts with '=?' instead of '=' a debug trace will be
1434 shown whenever the value of the condition is calculated.
1436 The conditions are calculated from left to right. This means
1438         = f *.tar.gz | f *.tgz & t n
1440 is calculated as
1442         ( (f *.tar.gz) | (f *.tgz) ) & (t n)
1445 Here is a sample of the use of conditions:
1448 = f *.tar.gz | f *.tgz & t n
1449 L       List the contents of a compressed tar-archive
1450         gzip -cd %f | tar xvf -
1453 .B Addition Conditions
1455 If the condition begins with '+' (or '+?') instead of '=' (or '=?') it
1456 is an addition condition. If the condition is true the menu entry will
1457 be included in the menu. If the condition is false the menu entry will
1458 not be included in the menu.
1460 You can combine default and addition conditions by starting condition
1461 with '+=' or '=+' (or '+=?' or '=+?' if you want debug trace). If you
1462 want to use two different conditions, one for adding and another for
1463 defaulting, you can precede a menu entry with two condition lines, one
1464 starting with '+' and another starting with '='.
1466 Comments are started with '#'. The additional comment lines must start
1467 with '#', space or tab.
1469 .SH "  Options Menu"
1470 The Midnight Commander has some options that may be toggled on and
1471 off in several dialogs which are accessible from this menu. Options 
1472 are enabled if they have an asterisk or "x" in front of them. 
1475 .\"LINK2"
1476 Configuration
1477 .\"Configuration"
1478 command pops up a dialog from which you can change most of settings of
1479 the Midnight Commander.
1482 .\"LINK2"
1483 Display bits
1484 .\"Display bits"
1485 command pops up a dialog from which you may select which characters is your
1486 terminal able to display.
1489 .\"LINK2"
1490 Confirmation
1491 .\"Confirmation"
1492 command pops up a dialog from which you specify which actions you want to
1493 confirm.
1496 .\"LINK2"
1497 Learn keys
1498 .\"Learn keys"
1499 command pops up a dialog from which you test some keys which are not working
1500 on some terminals and you may fix them.
1503 .\"LINK2"
1504 Virtual FS
1505 .\"Virtual FS"
1506 command pops up a dialog from which you specify some VFS related options.
1509 .\"LINK2"
1510 Layout
1511 .\"Layout"
1512 command pops up a dialog from which you specify a bunch of options how mc
1513 looks like on the screen.
1516 .\"LINK2"
1517 Save setup
1518 .\"Save Setup"
1519 command saves the current settings of the Left, Right and Options
1520 menus. A small number of other settings is saved, too.
1522 .SH "    Configuration"
1523 The options in this dialog are divided into three groups:
1524 Panel Options, Pause after run and Other Options.
1526 .B Panel Options
1528 .I Show Backup Files.
1529 If enabled, the Midnight Commander will show files ending with a tilde.
1530 Otherwise, they won't be shown (like GNU's ls option -B).
1532 .I Show Hidden Files.
1533 If enabled, the Midnight Commander will show all files that start with
1534 a dot (like ls -a).
1536 .I Mark moves down.
1537 If enabled, the selection bar will move down when you mark a file (with
1538 either C-t or the Insert key).
1540 .I Drop down menus.
1541 When this option is enabled, the pull down menus will be activated as
1542 soon as you press the 
1543 .B F9
1544 key.  Otherwise, you will only get the menu title, and you will have
1545 to activate the menu either with the arrow keys or with the hotkeys.
1546 It is recommended if you are using hotkeys.
1548 .I Mix all files.
1549 If this option is enabled, all files and directories are shown mixed
1550 together.  If the option is off, directories (and links to directories)
1551 are shown at the beginning of the listing, and other files below.
1553 .I Fast directory reload.
1554 If this option is enabled, the Midnight Commander will use a trick to
1555 determine if the directory contents have changed.  The trick is to reload
1556 the directory only if the i-node of the directory has changed; this means
1557 that reloads only happen when files are created or deleted.  If what
1558 changes is the i-node for a file in the directory (file size changes,
1559 mode or owner changes, etc) the display is not updated.  In these cases,
1560 if you have the option on, you have to rescan the directory manually
1561 (with C-r).
1563 .B Pause after run
1565 After executing your commands, the Midnight Commander can pause, so
1566 that you can examine the output of the command.  There are three
1567 possible settings for this variable:
1569 .I Never
1570 Means that you do not want to see the output of your command.  If you
1571 are using the Linux or SCO console or an xterm, you will be able to see the
1572 output of the command by typing C-o.
1574 .I "On dumb terminals"
1575 You will get the pause message on terminals that are not capable of
1576 showing the output of the last command executed (any terminal that is
1577 not an xterm or the Linux console).
1579 .I Always
1580 The program will pause after executing all of your commands.
1582 .B Other Options
1584 .I Verbose operation.
1585 This toggles whether the file Copy, Rename and Delete operations are
1586 verbose (i.e., display a dialog box for each operation). If you have a
1587 slow terminal, you may wish to disable the verbose operation. It is
1588 automatically turned off if the speed of your terminal is less than
1589 9600 bps.
1591 .I Compute totals.
1592 If this option is enabled, the Midnight
1593 Commander computes total byte sizes and total number of files
1594 prior to any Copy, Rename and Delete operations. This will
1595 provide you with a more accurate progress bar at the expense
1596 of some speed. This option has no effect, if 
1597 .I Verbose operation
1598 is disabled.
1600 .I Shell Patterns.
1601 By default the Select, Unselect and Filter commands will use shell-like
1602 regular expressions. The following conversions are performed to achieve
1603 this: the '*' is replaced by '.*' (zero or more characters); the '?'
1604 is replaced by '.' (exactly one character) and '.' by the literal
1605 dot. If the option is disabled, then the regular expressions are the
1606 ones described in ed(1).
1608 .I Auto Save Setup.
1609 If this option is enabled, when you exit the Midnight Commander the
1610 configurable options of the Midnight Commander are saved in the
1611 ~/.mc/ini file.
1613 .I Auto menus.
1614 If this option is enabled, the user menu will be invoked at startup.
1615 Useful for building menus for non-unixers.
1617 .I Use internal editor.
1618 If this option is enabled, the built-in file editor is used to edit
1619 files. If the option is disabled, the editor specified in the
1620 .B EDITOR
1621 environment variable is used.
1622 If no editor is specified, 
1623 .B vi
1624 is used.  See the section on the
1625 .\"LINK2"
1626 internal file editor.
1627 .\"Internal File Editor"
1629 .I Use internal viewer.
1630 If this option is enabled, the built-in file viewer is used to view
1631 files. If the option is disabled, the pager specified in the
1632 .B PAGER
1633 environment variable is used.
1634 If no pager is specified, the 
1635 .B view
1636 command is used.  See the section on the
1637 .\"LINK2"
1638 internal file viewer.
1639 .\"Internal File Viewer"
1641 .I Complete: show all.
1642 By default the Midnight Commander
1643 pops up all possible 
1644 .\"LINK2"
1645 completions
1646 .\"Completion"
1647 if the completion is
1648 ambiguous if you press 
1649 .B M-Tab
1650 for the second time, for the
1651 first time it just completes as much as possible and in
1652 the case of ambiguity beeps. If you want to see all the
1653 possible completions already after the first
1654 .B M-Tab
1655 pressing, enable this option.
1657 .I Rotating dash.
1658 If this option is enabled, the 
1659 Midnight Commander shows a rotating dash in the upper right corner
1660 as a work in progress indicator.
1662 .I Lynx-like motion.
1663 If this option is enabled, 
1664 you may use the arrows keys to automatically chdir if the
1665 current selection is a subdirectory and the shell command
1666 line is empty. By default, this setting is off.
1668 .I Advanced chown.
1669 If this option is enabled, the 
1670 .\"LINK2"
1671 Advanced Chown
1672 .\"Advanced Chown"
1673 command will be invoked if you run the 
1674 .\"LINK2"
1675 Chmod
1676 .\"Chmod"
1677 or 
1678 .\"LINK2"
1679 Chown
1680 .\"Chown"
1681 command.
1683 .I Cd follows links.
1684 This option, if set, causes the Midnight Commander to follow the
1685 logical chain of directories when changing current directory
1686 either in the panels, or using the cd command. This is the default
1687 behavior of bash. When unset, the Midnight Commander follows the
1688 real directory structure, so cd .. if you've entered that directory
1689 through a link will move you to the current directory's real parent
1690 and not to the directory where the link was present.
1692 .I Safe delete.
1693 If this option is enabled, deleting files 
1694 unintentionally will get more difficult. The default
1695 selection in the confirmation dialog changes from the "Yes"
1696 to the "No" button and deletion of non empty directories has to be 
1697 confirmed by entering the word 
1698 .I yes
1699 \&. 
1700 By default this option is disabled.
1702 .SH "    Display bits"
1703 This is used to configure the range of visible characters on the
1704 screen.  This setting may be 7-bits if your terminal/curses supports
1705 only seven output bits, ISO-8859-1 displays all the characters in the
1706 ISO-8859-1 map and full 8 bits is for those terminals that can display
1707 full 8 bit characters.
1709 .SH "    Confirmation"
1710 In this menu you configure the confirmation options for file deletion,
1711 overwriting, execution by pressing enter and quitting the program.
1713 .SH "    Learn keys"
1714 This dialog allows you to test and redefine functional keys, cursor
1715 arrows and some other keys to make them work properly on your terminal.
1716 They often don't, since many terminal databases are incomplete or broken.
1718 You can move around with the Tab key and with the vi moving keys ('h'
1719 left, 'j' down, 'k' up and 'l' right).  Once you press any cursor movement
1720 key and it is recognized, you can use that key as well.
1722 You can test keys just by pressing each of them.  When you press a
1723 key and it is recognized properly, OK should appear next to the name
1724 of that key.  Once a key is marked OK it starts working as usually,
1725 e.g. F1 pressed the first time will just check that the F1 key works,
1726 but after that it will show help.  The same applies to the arrow keys.
1727 The Tab key should be working always.
1729 If some keys do not work properly then you won't see OK appear after
1730 pressing that key.  Then you may want to redefine it.  Do it by pressing
1731 the button with the name of that key (either by the mouse or by Enter
1732 or Space after selecting the button with Tab or arrows).  Then a message
1733 box will appear asking you to press that key.  Do it and wait until the
1734 message box disappears.  If you want to abort, just press Escape once
1735 and wait.
1737 When you finish with all the keys, you can Save them.  The definitions
1738 for the keys you have redefined will be written into the [terminal:TERM]
1739 section of your ~/.mc/ini file (where TERM is the name of your current
1740 terminal).  The definitions of the keys that were already working properly
1741 are not saved.
1743 .SH "    Virtual FS"
1744 This option gives you control over the settings of the 
1745 .\"LINK2"
1746 Virtual File System 
1747 .\"Virtual File System"
1748 information cache.  
1750 The Midnight Commander keeps in memory the information
1751 related to some of the virtual file systems to speed up
1752 the access to the files in the file system (for example,
1753 directory listings fetched from ftp servers). 
1755 Moreover in order to access the contents of compressed files 
1756 (for example, compressed tar files) the Midnight Commander 
1757 has to create a temporary uncompressed file on your disk.
1759 Since both the information in memory and the temporary files on
1760 disk take up resources, you may want to tune the parameters of 
1761 the cached information to decrease your resource usage or to maximize
1762 the speed of access to frequently used file systems.
1764 The Tar file system is quite clever about how it handles
1765 tar files: it just loads the directory entries and when it
1766 needs to use the information contained in the tar file, it
1767 goes and grab it.
1769 In the wild, tar files are usually kept compressed (plain
1770 tar files are species in extinction), and because of the
1771 nature of those files (the directory entries for the tar
1772 files is not there waiting for us to be loaded), the tar
1773 file system has to uncompress the file
1774 on the disk in a temporary location and then access the
1775 uncompressed file as a regular tar file.
1777 Now, since we all love to browse files and tar files all
1778 over the disk, it's common that you will leave a tar file
1779 and the re-enter it later. Since uncompression is slow,
1780 the Midnight Commander will cache the information in
1781 memory for a limited amount of time, after you hit the
1782 timeout, all of the resources associated with the
1783 file system will be freed. The default timeout is set to
1784 one minute.
1786 The 
1787 .\"LINK2"
1788 FTP File System
1789 .\"FTP File System"
1790 keeps the directory listing it fetches from a ftp server
1791 in a cache.  The cache
1792 expire time is configurable with the 
1793 .I ftpfs directory cache timeout
1794 option.  
1795 A low value for this
1796 option may slow down every operation on the ftp file System
1797 because every operation is accompanied by a query of the
1798 ftp server. 
1800 Moreover you can define a proxy host for doing ftp transfers 
1801 and configure the Midnight Commander to always use the proxy host. 
1803 the section on
1804 .\"LINK2"
1805 FTP File System
1806 .\"FTP File System"
1807 for more information.
1809 .SH "    Layout"
1810 The layout dialog gives you a possibility to change the general layout
1811 of screen. You can specify whether the menubar, the command prompt,
1812 the hintbar and the function keybar are visible. On the Linux or SCO console
1813 you can specify how many lines are shown in the output window.
1815 The rest of the screen area is used for the two directory panels. You
1816 can specify whether the area is split to the panels in vertical or
1817 horizontal direction. The split can be equal or you can specify an
1818 unequal split.
1820 By default all contents of the directory panels are displayed with 
1821 the same color, but you can specify whether 
1822 .I permissions 
1823 and 
1824 .I file types
1825 are highlighted with special 
1826 .\"LINK2"
1827 Colors.
1828 .\"Colors"
1829 If permission highlighting is enabled, the parts of the 
1830 .I perm
1832 .I mode
1833 .\"LINK2"
1834 display fields
1835 .\"Listing Mode..."
1836 which are valid for the user running Midnight Commander
1837 are highlighted with the color defined with the
1838 .I selected
1839 keyword. If file type highlighting is enabled, files are colored according
1840 to their file type (e.g. directory, core file, executable, ...). 
1842 If the 
1843 .I Show Mini-Status
1844 option is enabled, one line of status
1845 information about the currently selected item is showed at the bottom 
1846 of the panels.
1848 .SH "    Save Setup"
1849 At startup the Midnight Commander will try to load initialization
1850 information from the ~/.mc/ini file. If this file doesn't exist,
1851 it will load the information from the system-wide configuration file,
1852 located in @prefix@/lib/mc/mc.ini. If the system-wide configuration
1853 file doesn't exist, MC uses the default settings.
1856 .I Save Setup
1857 command creates the ~/.mc/ini file by saving the current settings
1858 of the
1859 .\"LINK2"
1860 Left, Right
1861 .\"Left and Right Menus"
1863 .\"LINK2"
1864 Options
1865 .\"Options Menu"
1866 menus.
1868 If you activate the
1869 .I auto save setup
1870 option, MC will always save the current settings when exiting.
1872 There also exist settings which can't be changed from the menus. To
1873 change these settings you have to edit the setup file with your
1874 favorite editor. See the section on
1875 .\"LINK2"
1876 Special Settings
1877 .\"Special Settings"
1878 for more information.
1880 .SH ""
1881 .SH "Executing operating system commands"
1882 You may execute commands by typing them directly in the Midnight
1883 Commander's input line, or by selecting the program you want to
1884 execute with the selection bar in one of the panels and hitting Enter.
1886 If you press Enter over a file that is not executable, the Midnight
1887 Commander checks the extension of the selected file against the
1888 extensions in the
1889 .\"LINK2"
1890 Extensions File.
1891 .\"Extension File Edit"
1892 If a match is found then the code associated with that extension is
1893 executed. A very simple
1894 .\"LINK2"
1895 macro expansion
1896 .\"Macro Substitution"
1897 takes place before executing the command.
1899 .SH "  The cd internal command"
1900 The 
1901 .I cd
1902 command is interpreted by the Midnight Commander, it is not passed to
1903 the command shell for execution.  Thus it may not handle all of the
1904 nice macro expansion and substitution that your shell does, although it
1905 does some of them:
1907 .I Tilde substitution
1908 The (~) will be substituted with your home directory, if you append a
1909 username after the tilde, then it will be substituted with the login
1910 directory of the the specified user.
1912 For example, ~guest is the home directory for the user guest, while
1913 ~/guest is the directory guest in your home directory.
1915 .I Previous directory
1916 You can jump to the directory you were previously by using the special
1917 directory name '-' like this:
1918 .B cd -
1920 .I CDPATH directories
1921 If the directory specified to the 
1922 .B cd 
1923 command is not in the current directory, then The Midnight Commander
1924 uses the value in the environment variable 
1925 .B CDPATH
1926 to search for the directory in any of the named directories.
1928 For example you could set your
1929 .B CDPATH
1930 variable to ~/src:/usr/src, allowing you to change your directory to
1931 any of the directories inside the ~/src and /usr/src directories, from
1932 any place in the file system by using it's relative name (for example
1933 cd linux could take you to /usr/src/linux).
1935 .SH "  Macro Substitution"
1937 When accessing a
1938 .\"LINK2"
1939 user menu, 
1940 .\"Menu File Edit"
1941 or executing an
1942 .\"LINK2"
1943 extension dependent command,
1944 .\"Extension File Edit"
1945 or running a command from the command line input,
1946 a simple macro substitution takes place.
1948 The macros are:
1950 .I "%i"
1952 The indent of blank space, equal the cursor column
1953 position. For edit menu only.
1955 .I "%y"
1957 The syntax type of current file. For edit menu only.
1959 .I "%k"
1961 The block file name.
1963 .I "%e"
1965 The error file name.
1967 .I "%m"
1969 The current menu name.
1971 .I "%f"
1973 .I "%p"
1975 The current file name.
1977 .I "%x"
1979 The extension of current file name.
1981 .I "%b"
1983 The current file name without extension.
1985 .I "%d"
1987 The current directory name.
1989 .I "%F"
1991 The current file in the unselected panel.
1993 .I "%D"
1995 The directory name of the unselected panel.
1997 .I "%t"
1999 The currently tagged files.
2001 .I "%T"
2003 The tagged files in the unselected panel.
2005 .I "%u"
2007 .I "%U"
2009 Similar to the %t and %T macros, but in addition the files are
2010 untagged. You can use this macro only once per menu file entry or
2011 extension file entry, because next time there will be no tagged
2012 files.
2014 .I "%s"
2016 .I "%S"
2018 The selected files: The tagged files if there are any. Otherwise the
2019 current file.
2021 .I "%q"
2023 Dropped files. In all places except in the Drop action of the
2024 .\"LINK2"
2025 mc.ext file,
2026 .\"Extension File Edit"
2027 this will become a null string, in the Drop action it will be replaced
2028 with a space separated list of files that were dropped on the file.
2030 .I "%cd"
2032 This is a special macro that is used to change the current directory
2033 to the directory specified in front of it.  This is used primarily as
2034 an interface to the
2035 .\"LINK2"
2036 Virtual File System.
2037 .\"Virtual File System"
2039 .I "%view"
2041 This macro is used to invoke the internal viewer.  This macro can be
2042 used alone, or with arguments.  If you pass any arguments to this
2043 macro, they should be enclosed in brackets.
2045 The arguments are: 
2046 .I ascii
2047 to force the viewer into ascii mode;
2048 .I hex
2049 to force the viewer into hex mode;
2050 .I nroff
2051 to tell the viewer that it should interpret the bold and underline
2052 sequences of nroff; 
2053 .I unformatted
2054 to tell the viewer to not interpret nroff commands for making the text
2055 bold or underlined.
2057 .I "%%"
2059 The % character
2061 .I "%{some text}"
2063 Prompt for the substitution. An input box is shown and the text inside
2064 the braces is used as a prompt. The macro is substituted by the text
2065 typed by the user. The user can press ESC or F10 to cancel. This macro
2066 doesn't work on the command line yet.
2068 .I "%var{ENV:default}"
2070 If environment variable
2071 .I ENV
2072 is unset, the 
2073 .I default
2074 is substituted.  Otherwise, the value of
2075 .I ENV
2076 is substituted.
2078 .SH "  The subshell support"
2079 The subshell support is a compile time option, that works with the
2080 shells: bash, tcsh and zsh.  
2082 When the subshell code is activated the Midnight Commander will
2083 spawn a concurrent copy of your shell (the one defined in the 
2084 .B SHELL
2085 variable and if it is not defined, then the one in the /etc/passwd
2086 file) and run it in a pseudo terminal, instead of invoking a new shell
2087 each time you execute a command, the command will be passed to the
2088 subshell as if you had typed it.  This also allows you to change the
2089 environment variables, use shell functions and define aliases that are
2090 valid until you quit the Midnight Commander.
2092 If you are using 
2093 .B bash
2094 you can specify startup
2095 commands for the subshell in your ~/.mc/bashrc file and
2096 special keyboard maps in the ~/.mc/inputrc file.
2097 .B tcsh 
2098 users may specify startup commands in the ~/.mc/tcshrc file.
2100 When the subshell code is used, you can suspend applications at any
2101 time with the sequence C-o and jump back to the Midnight Commander, if
2102 you interrupt an application, you will not be able to run other
2103 external commands until you quit the application you interrupted.
2105 An extra added feature of using the subshell is that the prompt
2106 displayed by the Midnight Commander is the same prompt that you are
2107 currently using in your shell.
2110 .\"LINK2"
2111 OPTIONS
2112 .\"OPTIONS"
2113 section has more information on how you can control the subshell code.
2115 .SH "  Controlling Midnight Commander"
2116 The Midnight Commander defines an environment variable
2117 MC_CONTROL_FILE. The commands executed by MC may give instructions to
2118 MC by writing to the file specified by this variable.  This is only
2119 available if you compiled your copy of the Midnight Commander with the
2120 WANT_PARSE option.
2122 The following instructions are supported.
2125 clear_tags              Clear all tags.
2126 tag <filename>          Tag specified file.
2127 untag <filename>        Untag specified file.
2128 select <filename>       Move pointer to file.
2129 change_panel            Switch between panels.
2130 cd <path>               Change directory.
2133 If the first letter of the instruction is in lower case it operates on
2134 the current panel. If the letter is in upper case the instruction
2135 operates on the other panel. The additional letters must be in lower
2136 case. Instructions must be separated by exactly one space, tab or
2137 newline. The instructions don't work in the Info, Tree and Quick
2138 views. The first error causes the rest to be ignored.
2140 .SH "Chmod"
2141 The Chmod window is used to change the attribute bits in a group of
2142 files and directories.  It can be invoked with the C-x c key combination.
2144 The Chmod window has two parts -
2145 .I Permissions
2146 and 
2147 .I File
2149 In the File section are displayed the name of the file or directory
2150 and its permissions in octal form, as well as its owner and group.
2152 In the Permissions section there is a set of check buttons which
2153 correspond to the file attribute bits.  As you change the attribute
2154 bits, you can see the octal value change in the File section.
2156 To move between the widgets (buttons and check buttons) use the
2157 .I arrow keys
2158 or the
2159 .I Tab
2160 key.  To change the state of the check buttons or to select a button
2162 .I Space.
2163 You can also use the hotkeys on the buttons to quickly activate them.
2164 Hotkeys are shown as highlighted letters on the buttons.
2166 To set the attribute bits, use the Enter key.
2168 When working with a group of files or directories, you just click on
2169 the bits you want to set or clear.  Once you have selected the bits
2170 you want to change, you select one of the action buttons (Set marked
2171 or Clear marked).
2173 Finally, to set the attributes exactly to those specified, you can use
2175 .B [Set all]
2176 button, which will act on all the tagged files.
2178 .B [Marked all]
2179 set only marked attributes to all selected files
2181 .B [Set marked]
2182 set marked bits in attributes of all selected files
2184 .B [Clean marked]
2185 clear marked bits in attributes of all selected files
2187 .B [Set]
2188 set the attributes of one file
2190 .B [Cancel]
2191 cancel the Chmod command
2193 .SH "Chown"
2194 The Chown command is used to change the owner/group of a file. The hot
2195 key for this command is C-x o.
2197 .SH "Advanced Chown"
2198 The Advanced Chown command is the 
2199 .\"LINK2"
2200 Chmod
2201 .\"Chmod"
2202 and 
2203 .\"LINK2"
2204 Chown
2205 .\"Chown"
2206 command combined into one window. You can change the permissions and 
2207 owner/group of files at once.
2209 .SH "File Operations"
2210 When you copy, move or delete files the Midnight Commander shows the
2211 file operations dialog. It shows the files currently being operated on
2212 and there are at most three progress bars. The file bar tells how big
2213 part of the current file has been copied so far. The count bar tells
2214 how many of tagged files have been handled so far. The bytes bar tells
2215 how big part of total size of the tagged files has been handled so
2216 far. If the verbose option is off the file and bytes bars are not
2217 shown.
2219 There are two buttons at the bottom of the dialog. Pressing the Skip
2220 button will skip the rest of the current file. Pressing the Abort
2221 button will abort the whole operation, the rest of the files are
2222 skipped.
2224 There are three other dialogs which you can run into during the file
2225 operations.
2227 The error dialog informs about error conditions and has three
2228 choices. Normally you select either the Skip button to skip the file
2229 or the Abort button to abort the operation altogether. You can also
2230 select the Retry button if you fixed the problem from another
2231 terminal.
2233 The replace dialog is shown when you attempt to copy or move a file on
2234 the top of an existing file. The dialog shows the dates and sizes of
2235 the both files. Press the Yes button to overwrite the file, the No
2236 button to skip the file, the alL button to overwrite all the files,
2237 the nonE button to never overwrite and the Update button to overwrite
2238 if the source file is newer than the target file. You can abort the
2239 whole operation by pressing the Abort button.
2241 The recursive delete dialog is shown when you try to delete a
2242 directory which is not empty. Press the Yes button to delete the
2243 directory recursively, the No button to skip the directory, the alL
2244 button to delete all the directories and the nonE button to skip all
2245 the non-empty directories. You can abort the whole operation by
2246 pressing the Abort button. If you selected the Yes or alL button you
2247 will be asked for a confirmation. Type "yes" only if you are really
2248 sure you want to do the recursive delete.
2250 If you have tagged files and perform an operation on them only the
2251 files on which the operation succeeded are untagged. Failed and
2252 skipped files are left tagged.
2254 .SH "Mask Copy/Rename"
2255 The copy/move operations lets you translate the names of files in an easy
2256 way. To do it, you have to specify the correct source mask and usually in
2257 the trailing part of the destination specify some wildcards.
2258 All the files matching the source mask are copied/renamed according to
2259 the target mask. If there are tagged files, only the tagged files
2260 matching the source mask are renamed.
2262 There are other option which you can set: 
2264 Follow links tells whether make the symlinks and hardlinks in the source 
2265 directory (recursively in subdirectories) new links in the target 
2266 directory or whether would you like to copy their content.
2268 Dive into subdirs tells what to do if in the target
2269 directory exists a directory with the same name as the
2270 file/directory being copied. The default action is to copy
2271 it's content into that directory, by enabling this 
2272 you can copy the source directory into that directory. 
2273 Perhaps an example will help:
2275 You want to copy content of a directory foo to /bla/foo,
2276 which is an already existing directory. Normally (when
2277 Dive is not set), mc would copy it exactly into /bla/foo. 
2278 By enabling this option you will copy the content into /bla/foo/foo,
2279 because the directory already exists.
2281 Preserve attributes tells whether to preserve the original files' 
2282 permissions, timestamps and if you are root whether to preserve 
2283 the original files' UID and GID. If this option is not set the current 
2284 value of the umask will be respected.
2286 .B "Use shell patterns on"
2288 When the shell patterns option is on you can use the '*' and '?'
2289 wildcards in the source mask. They work like they do in the shell. In
2290 the target mask only the '*' and '\\<digit>' wildcards are allowed. The
2291 first '*' wildcard in the target mask corresponds to the first
2292 wildcard group in the source mask, the second '*' corresponds to the
2293 second group and so on. The '\\1' wildcard corresponds to the first
2294 wildcard group in the source mask, the '\\2' wildcard corresponds to
2295 the second group and so on all the way up to '\\9'. The '\\0' wildcard
2296 is the whole filename of the source file.
2298 Two examples:
2300 If the source mask is "*.tar.gz", the destination is "/bla/*.tgz" and the
2301 file to be copied is "foo.tar.gz", the copy will be "foo.tgz" in "/bla".
2303 Let's suppose you want to swap basename and extension so that "file.c"
2304 will become "c.file" and so on. The source mask for this is "*.*" and
2305 the destination is "\\2.\\1".
2307 .B "Use shell patterns off"
2309 When the shell patterns option is off the MC doesn't do automatic
2310 grouping anymore. You must use '\\(...\\)' expressions in the source
2311 mask to specify meaning for the wildcards in the target mask. This is
2312 more flexible but also requires more typing. Otherwise target masks
2313 are similar to the situation when the shell patterns option is on.
2315 Two examples:
2317 If the source mask is "^\\(.*\\)\\.tar\\.gz$", the destination is
2318 "/bla/*.tgz" and the file to be copied is "foo.tar.gz", the copy
2319 will be "/bla/foo.tgz".
2321 Let's suppose you want to swap basename and extension so that "file.c"
2322 will become "c.file" and so on. The source mask for this is
2323 "^\\(.*\\)\\.\\(.*\\)$" and the destination is "\\2.\\1".
2325 .B "Case Conversions"
2327 You can also change the case of the filenames.  If you use '\\u'
2328 or '\\l' in the target mask, the next character will be converted to
2329 uppercase or lowercase correspondingly.
2331 If you use '\\U' or '\\L' in the target mask, the next characters will
2332 be converted to uppercase or lowercase correspondingly up to the
2333 next '\\E' or next '\\U', '\\L' or the end of the file name.
2335 The '\\u' and '\\l' are stronger than '\\U' and '\\L'.
2337 For example, if the source mask is '*' (shell patterns on) or '^\\(.*\\)$'
2338 (shell patterns off) and the target mask is '\\L\\u*' the file names
2339 will be converted to have initial upper case and otherwise lower case.
2341 You can also use '\\' as a quote character. For example, '\\\\' is 
2342 a backslash and '\\*' is an asterisk.
2344 .SH "Internal File Viewer"
2345 The internal file viewer provides two display modes: ASCII and hex.
2346 To toggle between modes, use the F4 key.  If you have the GNU gzip
2347 program installed, it will be used to automatically decompress the
2348 files on demand.
2350 The viewer will try to use the best method provided by your system or
2351 the file type to display the information.  The internal file viewer
2352 will interpret some string sequences to set the bold and underline
2353 attributes, thus making a pretty display of your files.  
2355 When in hex mode, the search function accepts text in quotes and
2356 constant numbers.  Text in quotes is matched exactly after removing
2357 the quotes.  Each number matches one byte.  You can mix quoted text
2358 with constants like this:
2361 "String" -1 0xBB 012 "more text"
2364 Note that 012 is an octal number.  -1 is converted to 0xFF.
2366 Some internal details about the viewer: On systems that provide the
2367 mmap(2) system call, the program maps the file instead of loading it;
2368 if the system does not provide the mmap(2) system call or the file
2369 matches an action that requires a filter, then the viewer will use
2370 it's growing buffers, thus loading only those parts of the file that
2371 you actually access (this includes compressed files).
2373 Here is a listing of the actions associated with each key that the
2374 Midnight Commander handles in the internal file viewer.
2376 .B F1
2377 Invoke the builtin hypertext help viewer.
2379 .B F2
2380 Toggle the wrap mode.
2382 .B F4
2383 Toggle the hex mode.
2385 .B F5
2386 Goto line.  This will prompt you for a line number and will display
2387 that line.
2389 .B F6, /. 
2390 Regular expression search.
2392 .B ?,
2393 Reverse regular expression search.
2395 .B F7
2396 Normal search / hex mode search.
2398 .B C-s, F17, n.
2399 Start normal search if there was no previous search expression else
2400 find next match.
2402 .B C-r.
2403 Start reverse search if there was no previous search expression else
2404 find next match.
2406 .B F8
2407 Toggle Raw/Parsed mode: This will show the file as found on disk or if
2408 a processing filter has been specified in the mc.ext file, then the
2409 output from the filter. Current mode is always the other than written
2410 on the button label, since on the button is the mode which you enter
2411 by that key.
2413 .B F9
2414 Toggle the format/unformat mode: when format mode is on the viewer
2415 will interpret some string sequences to show bold and underline with
2416 different colors. Also, on button label is the other mode than current.
2418 .B F10, Esc.
2419 Exit the internal file viewer.
2421 .B next-page, space, C-v.
2422 Scroll one page forward.
2424 .B prev-page, M-v, C-b, backspace.
2425 Scroll one page backward.
2427 .B down-key
2428 Scroll one line forward.
2430 .B up-key
2431 Scroll one line backward.
2433 .B C-l
2434 Refresh the screen.
2436 .B C-o
2437 Switch to the subshell and show the command screen.
2439 .B !
2440 Like C-o, but run a new shell if the subshell is not running.
2442 .B "[n] m"
2443 Set the mark n.
2445 .B "[n] r"
2446 Jump to the mark n.
2448 .B C-f
2449 Jump to the next file.
2451 .B C-b 
2452 Jump to the previous file.
2454 .B M-r 
2455 Toggle the ruler.
2457 It's possible to instruct the file viewer how to display a file, look
2458 at the 
2459 .\"LINK2"
2460 Extension File Edit section
2461 .\"Extension File Edit"
2462 .SH "Internal File Editor"
2463 The internal file editor provides most of the features of
2464 common full screen editors. It is invoked using 
2465 .B F4
2466 provided
2467 the 
2468 .I use_internal_edit
2469 option is set in the initialization file. It has an extendable file size
2470 limit of sixteen megabytes and edits binary files flawlessly.
2472 The features it presently supports are: Block
2473 copy, move, delete, cut, paste; 
2474 .I "key for key undo"; 
2475 pull-down
2476 menus; file insertion; macro definition; regular expression
2477 search and replace (and our own scanf-printf search and
2478 replace); shift-arrow MSW-MAC text highlighting (for the
2479 linux console only); insert-overwrite toggle; and an option
2480 to pipe text blocks through shell commands like indent.
2482 The editor is very easy to use and requires no tutoring.
2483 To see what keys do what, just consult the appropriate
2484 pull-down menu. Other keys are: Shift movement
2485 keys do text highlighting. 
2486 .B Ctrl-Ins
2487 copies to the file
2488 .B cooledit.clip and 
2489 .B Shift-Ins
2490 pastes from cooledit.clip.
2491 .B Shift-Del 
2492 cuts to 
2493 .B cooledit.clip, 
2494 and 
2495 .B Ctrl-Del
2496 deletes highlighted text. The completion key also does a Return
2497 with an automatic indent. Mouse highlighting also works, and you
2498 can override the mouse as usual by holding down the shift key
2499 while dragging the mouse to let normal terminal mouse highlighting
2500 work.
2502 To define a macro, press 
2503 .B Ctrl-R
2504 and then type out the key
2505 strokes you want to be executed. Press 
2506 .B Ctrl-R
2507 again when finished. You can then assign the macro to any key you
2508 like by pressing that key. The macro is executed when you press
2509 .B Ctrl-A and then the assigned key. The macro is also executed if
2510 you press Meta, Ctrl, or Esc and the assigned key, provided that the
2511 key is not used for any other function. Once defined, the macro
2512 commands go into the file 
2513 .B .mc/cedit/cooledit.macros
2514 in your home directory. You can delete a macro by deleting the
2515 appropriate line in this file.
2517 .B F19
2518 will format the currently highlighted block (plain text or
2519 .B C
2521 .B C++
2522 code or another). This is controlled by the
2523 file
2524 .B @prefix@/lib/mc/edit.indent.rc
2525 which is copied to
2526 .B .mc/cedit/edit.indent.rc
2527 in your home directory the first time you use it.
2529 You can use scanf search and replace to search and replace
2530 a C format string. First take a look at the 
2531 .B sscanf
2532 and 
2533 .B sprintf
2534 man pages to see what a format string
2535 is and how it works. An example is as follows: Suppose you want
2536 to replace all occurrences of say, an open bracket, three
2537 comma separated numbers, and a close bracket, with the
2538 word 
2539 .I apples, 
2540 the third number, the word 
2541 .I oranges
2542 and then the second number, I would fill in the Replace dialog
2543 box as follows:
2546  Enter search string
2547 (%d,%d,%d)
2548  Enter replace string
2549 apples %d oranges %d
2550  Enter replacement argument order
2554 The last line specifies that the third and then the second
2555 number are to be used in place of the first and second.
2557 It is advisable to use this feature with Prompt on replace on, because
2558 a match is thought to be found whenever the number of arguments found
2559 matches the number given, which is not always a real match. Scanf also
2560 treats whitespace as being elastic.  Note that the scanf format % is
2561 very useful for scanning strings, and whitespace.
2563 The editor also displays non-us characters (160+). When editing
2564 binary files, you should set 
2565 .B display bits
2566 to 7 bits in the options menu to keep the spacing clean.
2568 See also the file 
2569 .B README.edit
2570 in the source tree for some more info.
2572 .SH "Completion"
2573 Let the Midnight Commander type for you.
2575 Attempt to perform completion on the text before current position. MC
2576 attempts completion treating the text as variable (if the text begins with
2577 .B $
2578 ), username (if the text begins with 
2579 .B ~
2580 ), hostname (if the text
2581 begins with 
2582 .B @
2583 ) or command (if you are on the command line in the
2584 position where you might type a command, possible completions then include
2585 shell reserved words and shell builtin commands as well) in turn. If none
2586 of these produces a match, filename completion is attempted.
2588 Filename, username, variable and hostname completion works on all input
2589 lines, command completion is command line specific.
2590 If the completion is ambiguous (there are more different possibilities),
2591 MC beeps and the following action depends on the setting of the
2592 .I Complete: show all
2593 option in the
2594 .\"LINK2"
2595 Configuration
2596 .\"Configuration"
2597 dialog. If it is enabled, a list of all
2598 possibilities pops up next to the current position and you can select with
2599 the arrow keys and
2600 .B Enter
2601 the correct entry. You can also type the first letters in which the
2602 possibilities differ to move to a subset of all possibilities and complete
2603 as much as possible. If you press
2604 .B M-Tab
2605 again, only the subset will be shown in the listbox, otherwise the first
2606 item which matches all the previous characters will be highlighted. As soon
2607 as there is no ambiguity, dialog disappears, but you can hide it by
2608 canceling keys 
2609 .B Esc,
2610 .B F10
2611 and left and right arrow keys. If
2612 .\"LINK2"
2613 Complete: show all
2614 .\"Configuration"
2615 is disabled, the dialog pops up only if you press
2616 .B M-Tab
2617 for the second time, for the first time MC just beeps.
2619 .SH "Virtual File System"
2620 The Midnight Commander is provided with a code layer to access the
2621 file system; this code layer is known as the virtual file system
2622 switch.  The virtual file system switch allows the Midnight Commander
2623 to manipulate files not located on the Unix file system.
2625 Currently the Midnight Commander is packaged with some Virtual File
2626 Systems (VFS): the local file system, used for accessing the regular
2627 Unix file system; the ftpfs, used to manipulate files on remote
2628 systems with the FTP protocol; the tarfs, used to manipulate tar and
2629 compressed tar files; the undelfs, used to recover deleted files on
2630 ext2 file systems (the default file system for Linux systems), fish
2631 (for manipulating files over shell connections such as rsh and ssh) and
2632 finally the mcfs (Midnight Commander file system), a network based
2633 file system.  If the code was compiled with smbfs support, you can
2634 manipulate files on remote systems with the SMB (CIFS) protocol.
2636 The VFS switch code will interpret all of the path names used and will
2637 forward them to the correct file system, the formats used for each one
2638 of the file systems is described later in their own section.
2640 .SH "  FTP File System"
2641 The ftpfs allows you to manipulate files on remote machines, to
2642 actually use it, you may try to use the panel command FTP link
2643 (accessible from the menubar) or you may directly change your current
2644 directory to it using the cd command to a path name that looks like this:
2646 .I /#ftp:[!][user[:pass]@]machine[:port][remote-dir]
2649 .I user, port
2651 .I remote-dir
2652 elements are optional.  If you specify the
2653 .I user
2654 element, then the Midnight Commander will try to logon on the remote
2655 machine as that user, otherwise it will use your login name.  The
2656 optional 
2657 .I pass
2658 element, if present is the password used for the connection.  This is not
2659 recommended (nor keeping the password in your hotlist, unless you set the
2660 appropriate permissions there, and even then it may not be entirely safe).
2662 Examples:
2665     /#ftp:ftp.nuclecu.unam.mx/linux/local
2666     /#ftp:tsx-11.mit.edu/pub/linux/packages
2667     /#ftp:!behind.firewall.edu/pub
2668     /#ftp:guest@remote-host.com:40/pub
2669     /#ftp:miguel:xxx@server/pub
2672 To connect to sites behind a firewall, you will need to use the prefix
2673 ftp://! (i.e., with a bang character after the double slash) to make
2674 the Midnight Commander use a proxy host for doing the ftp transfer.
2675 You can define the proxy host in the
2676 .\"LINK2"
2677 Virtual File System
2678 .\"Virtual FS"
2679 dialog box.  
2681 Another option to set is the 
2682 .I Always use ftp proxy
2683 option in the 
2684 .\"LINK2"
2685 Virtual File System
2686 .\"Virtual FS"
2687 dialog box.  This will configure the program
2688 to always use the proxy host.  If this variable is set, the program
2689 will do two things: consult the @prefix@/lib/mc/mc.no_proxy file for
2690 lines containing host names that are local (if the host name starts
2691 with a dot, it is assumed to be a domain) and to assume that any
2692 hostnames without dots in their names are directly accessible.
2694 If you are using the ftpfs code with a filtering packet router that
2695 does not allow you to use the regular mode of opening files, you may
2696 want to force the program to use the passive-open mode.  To use this,
2697 set the ftpfs_use_passive_connections option in the initialization file.
2699 The Midnight Commander keeps the directory listing in a cache.  The cache
2700 expire time is configurable in the
2701 .\"LINK2"
2702 Virtual File System 
2703 .\"Virtual FS"
2704 dialog box.  This has the funny behavior that even if you make changes to a
2705 directory, they will not be reflected in the directory listing until you
2706 force a cache reload with the C-r key.  This is a feature (when you think
2707 it's a bug, think about manipulating files on the other side of the Atlantic
2708 with ftpfs).
2710 .SH "  Tar File System"
2711 The tar file system provides you with read-only access to your tar
2712 files and compressed tar files by using the chdir command.  To change
2713 your directory to a tar file, you change your current directory to the
2714 tar file by using the following syntax:
2716 .I /filename.tar#utar/[dir-inside-tar]
2718 The mc.ext file already provides a shortcut for tar files, this means
2719 that usually you just point to a tar file and press return to enter
2720 into the tar file, see the 
2721 .\"LINK2"
2722 Extension File Edit 
2723 .\"Extension File Edit"
2724 section for details on how this is done.
2726 Examples:
2729     mc-3.0.tar.gz#utar/mc-3.0/vfs
2730     /ftp/GCC/gcc-2.7.0.tar#utar
2733 The latter specifies the full path of the tar archive.
2734 .SH "  FIle transfer over SHell filesystem"
2736 The fish file system is a network based file system that allows you to
2737 manipulate the files in a remote machine as if they were local. To use
2738 this, the other side has to either run fish server, or has to have
2739 bash-compatible shell.
2741 To connect to a remote machine, you just need to chdir
2742 into a special directory which name is in the following
2743 format:
2746 /#sh:[user@]machine[:options]/[remote-dir]
2748 The 
2749 .I user, 
2750 .I options
2751 and 
2752 .I remote-dir
2753 elements are optional. If
2754 you specify the 
2755 .I user
2756 element then the Midnight Commander
2757 will try to logon on the remote machine as that user,
2758 otherwise it will use your login name.
2760 The 
2761 .I options
2762 are 'C' - use compression and 'rsh' use rsh instead
2763 of ssh. If the 
2764 .I remote-dir
2765 element is present, your current directory on the remote machine will
2766 be set to this one.
2768 Examples:
2771     /#sh:onlyrsh.mx:r/linux/local
2772     /#sh:joe@want.compression.edu:C/private
2773     /#sh:joe@noncompressed.ssh.edu/private
2776 .SH "  Network File System"
2777 The Midnight Commander file system is a network base file system that
2778 allows you to manipulate the files in a remote machine as if they
2779 were local.  To use this, the remote machine must be running the
2780 mcserv(8) server program.
2782 To connect to a remote machine, you just need to chdir into a special
2783 directory which name is in the following format:
2785 .I /#mc:[user@]machine[:port][remote-dir]
2788 .I user, port
2790 .I remote-dir
2791 elements are optional.  If you specify the 
2792 .I user
2793 element then the Midnight Commander will try to logon on the remote
2794 machine as that user, otherwise it will use your login name.
2796 The 
2797 .I port
2798 element is used when the remote machine running on a special port
2799 (see the mcserv(8) manual page for more information about ports);
2800 finally, if the
2801 .I remote-dir
2802 element is present, your current directory on the remote machine will
2803 be set to this one.
2805 Examples:
2808     /#mc:ftp.nuclecu.unam.mx/linux/local
2809     /#mc:joe@foo.edu:11321/private
2812 .SH "  Undelete File System"
2813 On Linux systems, if you asked configure to use the ext2fs undelete
2814 facilities, you will have the undelete file system available.
2815 Recovery of deleted files is only available on ext2 file systems.  The
2816 undelete file system is just an interface to the ext2fs library to:
2817 retrieve all of the deleted files names on an ext2fs and provides and
2818 to extract the selected files into a regular partition.
2820 To use this file system, you have to chdir into the special file name
2821 formed by the "/#undel" prefix and the file name where the actual
2822 file system resides.
2824 For example, to recover deleted files on the second partition of the
2825 first SCSI disk on Linux, you would use the following path name:
2828     /#undel:sda2
2831 It may take a while for the undelfs to load the required information
2832 before you start browsing files there. 
2834 .SH "  SMB File System"
2835 The smbfs allows you to manipulate files on remote machines with SMB
2836 (or CIFS) protocol.  These include Windows for Workgroups, 
2837 Windows 9x, Windows NT, Windows 2000 and Samba.
2838 To actually use it, you may try 
2839 to use the panel command "SMB link..."
2840 (accessible from the menubar) or you may directly change your current
2841 directory to it using the cd command to a path name that looks like this:
2843 .I /#smb:machine[/service][/remote-dir]
2846 .I service
2848 .I remote-dir
2849 elements are optional.
2851 .I username, domain
2853 .I password 
2854 can be specified in input dialog.
2856 Examples:
2859     /#smb:machine/Share
2860     /#smb:other_machine
2863 .SH "Colors"
2864 The Midnight Commander will try to detect if your terminal supports
2865 color using the terminal database and your terminal name.  Sometimes
2866 it gets confused, so you may force color mode or disable color mode
2867 using the -c and -b flag respectively.  
2869 If the program is compiled with the Slang screen manager instead of
2870 ncurses, it will also check the variable 
2871 .B COLORTERM,
2872 if it is set, it has the same effect as the -c flag.
2874 You may specify terminals that always force color mode
2875 by adding the 
2876 .I color_terminals
2877 variable to the Colors
2878 section of the initialization file. This will prevent the
2879 Midnight Commander from trying to detect if your terminal
2880 supports color. Example:
2882 [Colors]
2883 color_terminals=linux,xterm
2886 color_terminals=terminal-name1,terminal-name2...
2889 The program can be compiled with both ncurses and slang, ncurses does
2890 not provide a way to force color mode: ncurses uses just the
2891 information in the terminal database.
2893 The Midnight Commander provides a way to change the default colors.
2894 Currently the colors are configured using the environment variable
2895 .B MC_COLOR_TABLE 
2896 or the Colors section in the initialization file.
2898 In the Colors section, the default color map is loaded from the 
2899 .I base_color 
2900 variable.  You can specify an alternate color map for a terminal by
2901 using the terminal name as the key in this section.  Example:
2904 [Colors]
2905 base_color=
2906 xterm=menu=magenta:marked=,magenta:markselect=,red
2909 The format for the color definition is:
2912   <keyword>=<foregroundcolor>,<backgroundcolor>:<keyword>= ...
2915 The colors are optional, and the keywords are: normal,
2916 selected, marked, markselect, errors, input, reverse, gauge;
2917 Menu colors are: menu, menusel, menuhot, menuhotsel;  Dialog colors
2918 are: dnormal, dfocus, dhotnormal, dhotfocus;  Help colors
2919 are: helpnormal, helpitalic, helpbold, helplink, helpslink;  
2920 Viewer color is: viewunderline; Special highlighting colors are: 
2921 executable, directory, link, device, special, core; Editor colors
2922 are: editnormal, editbold, editmarked.
2924 .I input 
2925 determines the color of input lines used in query dialogs.
2927 .I gauge 
2928 determines the color of the filled part of the progress bar
2929 (gauge), which shows how many percent of files were copied
2930 etc. in a graphical way.
2932 The dialog boxes use the following colors:
2933 .I dnormal 
2934 is used for the normal text,
2935 .I dfocus
2936 is the color used for the currently selected component,
2937 .I dhotnormal
2938 is the color used to differentiate the hotkey color in normal
2939 components, whereas the
2940 .I dhotfocus
2941 color is used for the highlighted color in the currently selected
2942 component.
2944 Menus use the same scheme but uses the menu, menusel, menuhot and
2945 menuhotsel tags instead.
2947 Help uses the following colors:
2948 .I helpnormal
2949 is used for normal text,
2950 .I helpitalic
2951 is used for text which is emphasized in italic in the manual page,
2952 .I helpbold
2953 is used for text which is emphasized in bold in the manual page,
2954 .I helplink
2955 is used for not selected hyperlinks and
2956 .I helpslink
2957 is used for selected hyperlink.
2959 Special highlight colors determine how files are displayed 
2960 when file highlighting is enabled (see the section on
2961 .\"LINK2"
2962 Layout).
2963 .\"Layout
2964 .I directory
2965 is used for directories or symbolic links to directories; 
2966 .I executable
2967 for executable files;
2968 .I link
2969 is used for symbolic links which are neither stalled nor linked
2970 to a directory; 
2971 .I stalledlink
2972 is used for stalled symbolic links; 
2973 .I device
2974 - character and block devices; 
2975 .I special
2976 is used for special files, such as pipes and sockets; 
2977 .I core
2978 is for core files.
2980 The possible colors are: black, gray, red, brightred, green,
2981 brightgreen, brown, yellow, blue, brightblue, magenta, brightmagenta,
2982 cyan, brightcyan, lightgray and white. And there is a special keyword
2983 for transparent background. It is 'default'. The 'default' can only be
2984 used for background color. Example:
2986 [Colors]
2987 base_color=normal=white,default:marked=magenta,default
2990 .SH "Special Settings"
2991 Most of the settings of the Midnight Commander can be changed from the
2992 menus. However, there are a small number of settings which can only be
2993 changed by editing the setup file.
2995 These variables may be set in your ~/.mc/ini file:
2997 .I clear_before_exec.
2999 By default the Midnight Commander clears the screen before executing a
3000 command. If you would prefer to see the output of the command at the
3001 bottom of the screen, edit your ~/.mc/ini file and change the value of
3002 the field clear_before_exec to 0.
3004 .I confirm_view_dir.
3006 If you press F3 on a directory, normally MC enters that directory. If
3007 this flag is set to 1, then MC will ask for confirmation before
3008 changing the directory if you have files tagged.
3010 .I ftpfs_retry_seconds.
3012 This value is the number of seconds the Midnight Commander will wait
3013 before attempting to reconnect to an ftp server that has denied the login.
3014 If the value is zero, the login will no be retried.
3016 .I ftpfs_use_passive_connections.
3018 This option is off by default.  This makes the ftpfs code use the
3019 passive open mode for transferring files.  This is used by people that
3020 are behind a filtering packet router.  This option just works if you
3021 are not using an ftp proxy.
3023 .I max_dirt_limit.
3025 Specifies how many screen updates can be skipped at most in the internal
3026 file viewer.  Normally this value is not significant, because the code
3027 automatically adjusts the number of updates to skip according to the rate
3028 of incoming keystrokes.  However, on very slow machines or terminals
3029 with a fast keyboard auto repeat, a big value can make screen updates
3030 too jumpy.
3032 It seems that setting max_dirt_limit to 10 causes the best behavior,
3033 and that is the default value.
3035 .I mouse_move_pages.
3037 Controls whenever scrolling with the mouse is done by pages or line by
3038 line on the panels.
3040 .I mouse_move_pages_viewer.
3042 Controls if scrolling with the mouse is done by pages or line by line
3043 on the internal file viewer.
3045 .I old_esc_mode
3047 By default the Midnight Commander treats the ESC key as a key prefix
3048 (old_esc_mode=0), if you set this option (old_esc_mode=1), then the
3049 ESC key will act as a prefix key for one second, and if no extra keys
3050 have arrived, then the ESC key is interpreted as a cancel key (ESC
3051 ESC).
3054 .I only_leading_plus_minus
3056 set special treatment for '+', '-', '*' in command line (select,
3057 unselect, reverse selection) only if command line is empty. No need to
3058 quote this characters in the middle of the command line. But we can not
3059 change selection when command line is not empty.
3060 .I panel_scroll_pages
3062 If set (the default), panel will scroll by half the display when the
3063 cursor reaches the end or the beginning of the panel, otherwise it
3064 will just scroll a file at a time.
3066 .I preserve_uidgid
3068 If this option is set (the default), when logged in as root the
3069 default will be to preserve the UID and the GID of files.  Some users
3070 prefer to disable this option, so that's why it's configurable.
3072 .I show_output_starts_shell
3074 This variable only works if you are not using the subshell support.
3075 When you use the C-o keystroke to go back to the user screen, if this
3076 one is set, you will get a fresh shell.  Otherwise, pressing any key
3077 will bring you back to the Midnight Commander.
3079 .I torben_fj_mode
3081 If this flag is set, then the home and end keys will work slightly
3082 different on the panels, instead of moving the selection to the first
3083 and last files in the panels, they will act as follows:
3085 The home key will: Go up to the middle line, if below it; else go to
3086 the top line unless it is already on the top line, in this case it
3087 will go to the first file in the panel.
3089 The end key has a similar behavior: Go down to the middle line, if
3090 over it; else go to the bottom line unless you already are at the
3091 bottom line, in such case it will move the selection to the last file
3092 name in the panel.
3094 .I use_file_to_guess_type
3096 If this variable is on (the default) it will spawn the file command to
3097 match the file types listed on the
3098 .\"LINK2"
3099 mc.ext file.
3100 .\"Extension File Edit"
3102 .I xterm_mode
3104 If this variable is on (default is off) when you browse the file
3105 system on a Tree panel, it will automatically reload the other panel
3106 with the contents of the selected directory.
3108 .SH "Terminal databases"
3109 The Midnight Commander provides a way to fix your system terminal
3110 database without requiring root privileges.  The Midnight Commander
3111 searches in the system initialization file (the mc.lib file located in
3112 the Midnight Commander library directory) and in the ~/.mc/ini file
3113 for the section "terminal:your-terminal-name" and then for the section
3114 "terminal:general", each line of the section contains a key symbol
3115 that you want to define, followed by an equal sign and the definition
3116 for the key.  You can use the special \\e form to represent the escape
3117 character and the ^x to represent the control-x character.
3119 The possible key symbols are:
3122 f0 to f20     Function keys f0-f20
3123 bs            backspace
3124 home          home key
3125 end           end key
3126 up            up arrow key
3127 down          down arrow key
3128 left          left arrow key
3129 right         right arrow key
3130 pgdn          page down key
3131 pgup          page up key
3132 insert        the insert character
3133 delete        the delete character
3134 complete      to do completion
3137 For example, to define the key insert to be the Escape + [ + O + p, you
3138 set this in the ini file:
3141 insert=\\e[Op
3144 The 
3145 .I complete
3146 key symbol represents the escape sequences used to invoke the
3147 completion process, this is invoked with M-tab, but you can define
3148 other keys to do the same work (on those keyboard with tons of nice
3149 and unused keys everywhere).
3151 .SH ""
3152 .SH "FILES"
3154 The program will retrieve all of its information relative to the
3155 MC_LIBDIR environment variable, if this variable is not set, then it will
3156 fall back to the @prefix@/lib/mc directory.
3158 @prefix@/lib/mc/mc.hlp
3160 The help file for the program.
3162 @prefix@/lib/mc/mc.ext
3164 The default system-wide extensions file.
3166 ~/.mc/bindings
3168 User's own extension, view configuration and edit configuration
3169 file.  They override the contents of the system wide files if present.
3171 @prefix@/lib/mc/mc.ini
3173 The default system-wide setup for the Midnight Commander, used only if
3174 the user doesn't have his own ~/.mc/ini file.
3176 @prefix@/lib/mc/mc.lib
3178 Global settings for the Midnight Commander.  Settings in this file
3179 affect all users, whether they have ~/.mc/ini or not.  Currently, only
3180 .\"LINK2"
3181 terminal settings
3182 .\"Terminal databases"
3183 are loaded from mc.lib.
3185 ~/.mc/ini
3187 User's own setup. If this file is present then the setup is loaded
3188 from here instead of the system-wide startup file.
3190 @prefix@/lib/mc/mc.hint
3192 This file contains the hints (cookies) displayed by the program.
3194 @prefix@/lib/mc/mc.menu
3196 This file contains the default system-wide applications menu.
3198 ~/.mc/menu
3200 User's own application menu. If this file is present it is used
3201 instead of the system-wide applications menu.
3203 ~/.mc/Tree
3205 The directory list for the directory tree and tree view features.
3207 \&./.mc.menu
3209 Local user-defined menu. If this file
3210 is present it is used instead of the home or system-wide
3211 applications menu.
3213 .\"SKIP_SECTION"
3214 .SH "LICENSE"
3215 This program is distributed under the terms of the GNU General Public
3216 License as published by the Free Software Foundation. See the built-in
3217 help for details on the License and the lack of warranty.
3218 .SH "AVAILABILITY"
3219 The latest version of this program can be found at 
3220 ftp://ftp.gnome.org/mirror/gnome.org/stable/sources/mc/ and on the
3221 mirrors listed on the GNOME site http://www.gnome.org/.
3222 .SH "SEE ALSO"
3223 ed(1), gpm(1), mcserv(8), terminfo(1), view(1), sh(1), bash(1),
3224 tcsh(1), zsh(1).
3227 The Midnight Commander page on the World Wide Web:
3228         http://www.gnome.org/mc/
3231 .SH "AUTHORS"
3232 Miguel de Icaza (miguel@ximian.com), Janne Kukonlehto
3233 (jtklehto@paju.oulu.fi), Radek Doulik (rodo@ucw.cz), Fred
3234 Leeflang (fredl@nebula.ow.org), Dugan Porter (dugan@b011.eunet.es),
3235 Jakub Jelinek (jj@sunsite.mff.cuni.cz), Ching Hui
3236 (mr854307@cs.nthu.edu.tw), Andrej Borsenkow (borsenkow.msk@sni.de),
3237 Norbert Warmuth (nwarmuth@privat.circular.de), 
3238 Mauricio Plaza (mok@roxanne.nuclecu.unam.mx), Paul Sheer
3239 (psheer@icon.co.za), Pavel Machek (pavel@ucw.cz) and Pavel Roskin
3240 (proski@gnu.org) are the developers of this package.
3241 Alessandro Rubini (rubini@ipvvis.unipv.it) has been especially helpful
3242 debugging and enhancing the program's mouse support, John Davis
3243 (davis@space.mit.edu) also made his S-Lang library available to us
3244 under the GPL and answered my questions about it, and the following
3245 people have contributed code and many bug fixes (in alphabetical
3246 order):
3248 Adam Tla/lka (atlka@sunrise.pg.gda.pl),
3249 alex@bcs.zp.ua (Alex I. Tkachenko), Antonio Palama,
3250 DOS port (palama@posso.dm.unipi.it), Erwin van Eijk
3251 (wabbit@corner.iaf.nl), Gerd Knorr (kraxel@cs.tu-berlin.de),
3252 Jean-Daniel Luiset (luiset@cih.hcuge.ch), Jon Stevens
3253 (root@dolphin.csudh.edu), Juan Francisco Grigera, Win32 port
3254 (j-grigera@usa.net), Juan Jose Ciarlante (jjciarla@raiz.uncu.edu.ar),
3255 Ilya Rybkin (rybkin@rouge.phys.lsu.edu), Marcelo Roccasalva
3256 (mfroccas@raiz.uncu.edu.ar), Massimo Fontanelli (MC8737@mclink.it),
3257 Sergey Ya. Korshunoff (root@seyko.msk.su), Thomas Pundt
3258 (pundtt@math.uni-muenster.de), Timur Bakeyev
3259 (timur@goff.comtat.kazan.su), Tomasz Cholewo
3260 (tjchol01@mecca.spd.louisville.edu), Torben Fjerdingstad
3261 (torben.fjerdingstad@uni-c.dk), Vadim Sinolitis (vvs@nsrd.npi.msu.su)
3262 and Wim Osterholt (wim@djo.wtm.tudelft.nl).
3264 .SH "BUGS"
3265 See the file TODO in the distribution for information on what
3266 remains to be done.
3268 If you want to report a problem with the program, please send mail to
3269 this address: mc-devel@gnome.org.
3271 Provide a detailed description of the bug, the version of the program
3272 you are running (mc -V display this information), the operating system
3273 you are running the program on and if the program crashes, we would
3274 appreciate a stack trace.