help link marks escaped in (I hope) all the document.
[midnight-commander.git] / doc / mc.1.in
blobeeda0baec4c5ef59091134072bd9b6b013509311
1 .\"TOPICS "Topics:"
2 .TH mc 1 "30 October 1998"
3 .\"SKIP_SECTION"
4 .SH "NAME"
5 mc \- Visual shell for Unix-like systems.
6 .\"SKIP_SECTION"
7 .SH "USAGE"
8 .B mc
9 [\-abcCdfhPstuUVx] [\-l log] [dir1 [dir2]] [-v file]
10 .\"NODE "DESCRIPTION"
11 .SH "DESCRIPTION"
12 The Midnight Commander is a directory browser/file manager for
13 Unix-like operating systems.
14 .\"NODE "OPTIONS"
15 .\".\"DONT_SPLIT"
16 .SH "OPTIONS"
17 .TP
18 .I "\-a"
19 Disables the usage of graphic characters for line drawing.
20 .TP
21 .I "\-b"
22 Forces black and white display.
23 .TP
24 .I "\-c"
25 Force color mode, please check the section
26 .\"LINK2"
27 Colors
28 .\"Colors"
29 for more information.
30 .TP
31 .I "\-C arg"
32 Used to specify a different color set in the command line.  The format
33 of arg is documented in the
34 .\"LINK2"
35 Colors
36 .\"Colors"
37 section.
38 .TP
39 .I "\-d"
40 Disables mouse support.
41 .TP
42 .I "\-f"
43 Displays the compiled-in search paths for Midnight Commander files.
44 .TP
45 .I "\-k"
46 Reset softkeys to their default from the termcap/terminfo
47 database. Only useful on HP terminals when the function keys don't work.
48 .TP
49 .I "-l file"
50 Save the ftpfs dialog with the server in file.
51 .TP
52 .I "\-P"
53 At program end, the Midnight Commander will print the last working
54 directory. This function should not be used directly, instead, it should
55 be used from a special shell function that will automatically change the
56 current directory of the shell to the last directory the Midnight
57 Commander was in (thanks to Torben Fjerdingstad and Sergey for
58 contributing this function and the code implementing this option).
59 Source the files
60 .B @prefix@/share/mc/bin/mc.sh
61 (bash and zsh users) respectively
62 .B @prefix@/share/mc/bin/mc.csh
63 (tcsh users) in order to have this function defined.
64 .TP
65 .I "\-s"
66 Turns on the slow terminal mode, in this mode the program will not
67 draw expensive line drawing characters and will toggle verbose mode
68 off.
69 .TP
70 .I "\-t"
71 Used only if the code was compiled with Slang and terminfo: it makes
72 the Midnight Commander use the value of the
73 .B TERMCAP
74 variable for the terminal information instead of the information on
75 the system wide terminal database
76 .TP
77 .I "\-u"
78 Disables the use of a concurrent shell (only makes sense if the
79 Midnight Commander has been built with concurrent shell support).
80 .TP
81 .I "\-U"
82 Enables the use of the concurrent shell support (only makes sense if
83 the Midnight Commander was built with the subshell support set as an
84 optional feature).
85 .TP
86 .I "\-v file"
87 Enters the internal viewer to view the file specified.
88 .TP
89 .I "\-V"
90 Displays the version of the program.
91 .TP
92 .I "\-x"
93 Forces xterm mode.  Used when running on xterm-capable terminals (two
94 screen modes, and able to send mouse escape sequences).
95 .PP
96 If specified, the first path name is the directory to show in the
97 selected panel; the second path name is the directory to be shown in
98 the other panel.
99 .\"NODE "Overview"
100 .SH "Overview"
101 The screen of the Midnight Commander is divided into four parts.
102 Almost all of the screen space is taken up by two directory panels.
103 By default, the second line from the bottom of the screen is the
104 shell command line, and the bottom line shows the function key labels.
105 The topmost line is the
106 .\"LINK2"
107 menu bar line\&.
108 .\"Menu Bar"
109 The menu bar line may not be visible, but appears if you click the
110 topmost line with the mouse or press the F9 key.
112 The Midnight Commander provides a view of two directories at the same
113 time. One of the panels is the current panel (a selection bar is in
114 the current panel). Almost all operations take place on the current
115 panel. Some file operations like Rename and Copy by default use the
116 directory of the unselected panel as a destination (don't worry, they
117 always ask you for confirmation first). For more information, see the
118 sections on the
119 .\"LINK2"
120 Directory Panels\&,
121 .\"Directory Panels"
123 .\"LINK2"
124 Left and Right Menus
125 .\"Left and Right Menus"
126 and the
127 .\"LINK2"
128 File Menu\&.
129 .\"File Menu"
131 You can execute system commands from the Midnight Commander by simply
132 typing them. Everything you type will appear on the shell command line,
133 and when you press Enter the Midnight Commander will execute the
134 command line you typed; read the
135 .\"LINK2"
136 Shell Command Line
137 .\"Shell Command Line"
139 .\"LINK2"
140 Input Line Keys
141 .\"Input Line Keys"
142 sections to learn more about the command line.
143 .\"NODE "Mouse Support"
144 .SH "Mouse Support"
145 The Midnight Commander comes with mouse support.  It is activated
146 whenever you are running on an
147 .B xterm(1)
148 terminal (it even works if you take a telnet, ssh or rlogin connection to
149 another machine from the xterm) or if you are running on a Linux
150 console and have the
151 .B gpm
152 mouse server running.
154 When you left click on a file in the directory panels, that file is
155 selected; if you click with the right button, the file is marked (or
156 unmarked, depending on the previous state).
158 Double-clicking on a file will try to execute the command if it is
159 an executable program; and if the
160 .\"LINK2"
161 extension file
162 .\"Extension File Edit"
163 has a program specified for the file's extension, the specified
164 program is executed.
166 Also, it is possible to execute the commands assigned to the function
167 key labels by clicking on them.
169 If a mouse button is clicked on the top frame line of the directory panel,
170 it is scrolled one page up.  Likewise, a click on the bottom frame line
171 will cause scrolling one page down.  This frame line method works also
172 in the
173 .\"LINK2"
174 Help Viewer
175 .\"Contents"
176 and the
177 .\"LINK2"
178 Directory Tree\&.
179 .\"Directory Tree"
181 The default auto repeat rate for the mouse buttons is 400
182 milliseconds. This may be changed to other values by editing the
183 .\"LINK2"
184 \&~/.mc/ini
185 .\"Save Setup"
186 file and changing the
187 .I mouse_repeat_rate
188 parameter.
190 If you are running the Midnight Commander with the mouse support, you
191 can get the default mouse behavior (cutting and pasting text) by holding
192 down the Shift key.
193 .SH ""
194 .\"NODE "Keys"
195 .SH "Keys"
196 Some commands in the Midnight Commander involve the use of the
197 .I Control
198 (sometimes labeled CTRL or CTL) and the
199 .I Meta
200 (sometimes labeled ALT or even Compose) keys. In this manual we will
201 use the following abbreviations:
203 C-<chr> means hold the Control key while typing the character
204 <chr>. Thus C-f would be: hold the Control key and type f.
206 M-<chr> means hold the Meta or Alt key down while typing <chr>. If
207 there is no Meta or Alt key, type ESC, release it, then type the
208 character <chr>.
210 All input lines in the Midnight Commander use an approximation to
211 the GNU Emacs editor's key bindings.
213 There are many sections which tell about the keys. The following are
214 the most important.
217 .\"LINK2"
218 File Menu
219 .\"File Menu"
220 section documents the keyboard shortcuts for the commands appearing in
221 the File menu. This section includes the function keys. Most of these
222 commands perform some action, usually on the selected file or the
223 tagged files.
226 .\"LINK2"
227 Directory Panels
228 .\"Directory Panels"
229 section documents the keys which select a file or tag files as a
230 target for a later action (the action is usually one from the file
231 menu).
234 .\"LINK2"
235 Shell Command Line
236 .\"Shell Command Line"
237 section list the keys which are used for entering and editing command
238 lines. Most of these copy file names and such from the directory
239 panels to the command line (to avoid excessive typing) or access the
240 command line history.
242 .\"LINK2"
243 Input Line Keys
244 .\"Input Line Keys"
245 are used for editing input lines. This means both the command line and
246 the input lines in the query dialogs.
247 .\"NODE "  Miscellaneous Keys"
248 .SH "  Miscellaneous Keys"
249 Here are some keys which don't fall into any of the other categories:
251 .B Enter.
252 If there is some text in the command line (the one at the bottom of
253 the panels), then that command is executed. If there is no text in the
254 command line then if the selection bar is over a directory the
255 Midnight Commander does a
256 .B chdir(2)
257 to the selected directory and reloads the information on the panel;
258 if the selection is an executable file then it is executed. Finally,
259 if the extension of the selected file name matches one of the
260 extensions in the
261 .\"LINK2"
262 extensions file
263 .\"Extension File Edit"
264 then the corresponding command is executed.
266 .B C-l.
267 Repaint all the information in the Midnight Commander.
269 .B C-x c.
270 Run the
271 .\"LINK2"
272 Chmod
273 .\"Chmod"
274 command on a file or on the tagged files.
276 .B C-x o.
277 Run the
278 .\"LINK2"
279 Chown
280 .\"Chown"
281 command on the current file or on the tagged files.
283 .B C-x l.
284 Run the link command.
286 .B C-x s.
287 Run the symbolic link command.
289 .B C-x i.
290 Set the other panel display mode to information.
292 .B C-x q.
293 Set the other panel display mode to quick view.
295 .B C-x !.
296 Execute the
297 .\"LINK2"
298 External panelize
299 .\"External panelize"
300 command.
302 .B C-x h
303 Run the
304 .\"LINK2"
305 add directory to hotlist
306 .\"Hotlist"
307 command.
309 .B M-!,
310 Executes the Filtered view command, described in the
311 .\"LINK2"
312 view command\&.
313 .\"Internal File Viewer"
315 .B M-?,
316 Executes the
317 .\"LINK2"
318 Find file
319 .\"Find File"
320 command.
322 .B M-c,
323 Pops up the
324 .\"LINK2"
325 quick cd
326 .\"Quick cd"
327 dialog.
329 .B C-o,
330 When the program is being run in the Linux or SCO console or under an xterm,
331 it will show you the output of the previous command.  When ran on the
332 Linux console, the Midnight Commander uses an external program
333 (cons.saver) to handle saving and restoring of information on the
334 screen.
336 When the subshell support is compiled in, you can type C-o at any time
337 and you will be taken back to the Midnight Commander main screen, to
338 return to your application just type C-o.  If you have an application
339 suspended by using this trick, you won't be able to execute other
340 programs from the Midnight Commander until you terminate the suspended
341 application.
342 .\"NODE "  Directory Panels"
343 .SH "  Directory Panels"
344 This section lists the keys which operate on the directory panels. If
345 you want to know how to change the appearance of the panels take a
346 look at the section on
347 .\"LINK2"
348 Left and Right Menus\&.
349 .\"Left and Right Menus"
351 .B Tab, C-i.
352 Change the current panel. The old other panel becomes the new current
353 panel and the old current panel becomes the new other panel. The
354 selection bar moves from the old current panel to the new current
355 panel.
357 .B Insert, C-t.
358 To tag files you may use the Insert key (the kich1 terminfo sequence)
359 or the C-t (Control-t) sequence. To untag files, just retag a tagged
360 file.
362 .B M-g, M-r, M-j.
363 Used to select the top file in a panel, the middle file and the bottom one,
364 respectively.
366 .B C-s, M-s.
367 Start a filename search in the directory listing. When the search is
368 active, the user input will be added to the search string instead of
369 the command line. If the
370 .I Show mini-status
371 option is enabled the search string is shown on the mini-status
372 line. When typing, the selection bar will move to the next file
373 starting with the typed letters. The
374 .I backspace
376 .I DEL
377 keys can be used to correct typing mistakes. If C-s is pressed
378 again, the next match is searched for.
380 .B M-t
381 Toggle the current display listing to show the next display listing
382 mode.  With this it is possible to quickly switch from long listing
383 to regular listing and the user defined listing mode.
385 .B C-\\\\ (control-backslash).
386 Show the
387 .\"LINK2"
388 directory hotlist
389 .\"Hotlist"
390 and change to the selected directory.
392 .B + \ (plus).
393 This is used to select (tag) a group of files. The Midnight Commander
394 will prompt for a regular expression describing the group. When
395 .I Shell Patterns
396 are enabled, the regular expression is much like the regular
397 expressions in the shell (* standing for zero or more characters and ?
398 standing for one character). If
399 .I Shell Patterns
400 is off, then the tagging of files is done with normal regular
401 expressions (see ed (1)).
403 If the expression starts or ends with a slash (/), then it will select
404 directories instead of files.
406 .B \\\\ (backslash).
407 Use the "\\" key to unselect a group of files. This is the opposite of
408 the Plus key.
410 .B up-key, C-p.
411 Move the selection bar to the previous entry in the panel.
413 .B down-key, C-n.
414 Move the selection bar to the next entry in the panel.
416 .B home, a1, M-<.
417 Move the selection bar to the first entry in the panel.
419 .B end, c1, M->.
420 Move the selection bar to the last entry in the panel.
422 .B next-page, C-v.
423 Move the selection bar one page down.
425 .B prev-page, M-v.
426 Move the selection bar one page up.
428 .B M-o,
429 If the other panel is a listing panel and you are standing on a
430 directory in the current panel, then the other panel contents are set
431 to the contents of the currently selected directory (like Emacs' dired
432 C-o key) otherwise the other panel contents are set to the parent dir
433 of the current dir.
435 .B C-PageUp, C-PageDown
436 Only when ran on the Linux console: does a chdir to ".." and to the
437 currently selected directory respectively.
439 .B M-y
440 Moves to the previous directory in the history, equivalent
441 to depressing the '<' with the mouse.
443 .B M-u
444 Moves to the next directory in the history, equivalent
445 to depressing the '>' with the mouse.
447 .B M-S-h, M-H
448 Displays the directory history, equivalent to depressing the 'v' with
449 the mouse.
450 .\"NODE "  Shell Command Line"
451 .SH "  Shell Command Line"
452 This section lists keys which are useful to avoid excessive typing when
453 entering shell commands.
455 .B M-Enter.
456 Copy the currently selected file name to the command line.
458 .B C-Enter.
459 Same a M-Enter, this one only works on the Linux console.
461 .B M-Tab.
462 Does the filename, command, variable, username and hostname
463 .\"LINK2"
464 completion
465 .\"Completion"
466 for you.
468 .B C-x t, C-x C-t.
469 Copy the tagged files (or if there are no tagged files, the selected
470 file) of the current panel (C-x t) or of the other panel (C-x C-t) to
471 the command line.
473 .B C-x p, C-x C-p.
474 The first key sequence copies the current path name to the command
475 line, and the second one copies the unselected panel's path name to
476 the command line.
478 .B C-q.
479 The quote command can be used to insert characters that are otherwise
480 interpreted by the Midnight Commander (like the '+' symbol)
482 .B M-p, M-n.
483 Use these keys to browse through the command history. M-p takes you
484 to the last entry, M-n takes you to the next one.
486 .B M-h.
487 Displays the history for the current input line.
488 .\"NODE "  General Movement Keys"
489 .SH "  General Movement Keys"
490 The help viewer, the file viewer and the directory tree use common
491 code to handle moving. Therefore they accept exactly the same
492 keys. Each of them also accepts some keys of its own.
494 Other parts of the Midnight Commander use some of the same movement
495 keys, so this section may be of use for those parts too.
497 .B Up, C-p.
498 Moves one line backward.
500 .B Down, C-n.
501 Moves one line forward.
503 .B Prev Page, Page Up, M-v.
504 Moves one page up.
506 .B Next Page, Page Down, C-v.
507 Moves one page down.
509 .B Home, A1.
510 Moves to the beginning.
512 .B End, C1.
513 Move to the end.
515 The help viewer and the file viewer accept the following keys in
516 addition the to ones mentioned above:
518 .B b, C-b, C-h, Backspace, Delete.
519 Moves one page up.
521 .B Space bar.
522 Moves one page down.
524 .B u, d.
525 Moves one half of a page up or down.
527 .B g, G.
528 Moves to the beginning or to the end.
529 .\"NODE "  Input Line Keys"
530 .SH "  Input Line Keys"
531 The input lines (they are used for the
532 .\"LINK2"
533 command line
534 .\"Shell Command Line"
535 and for the query dialogs in the program) accept these keys:
537 .B C-a
538 puts the cursor at the beginning of line.
540 .B C-e
541 puts the cursor at the end of the line.
543 .B C-b, move-left
544 move the cursor one position left.
546 .B C-f, move-right
547 move the cursor one position right.
549 .B M-f
550 moves one word forward.
552 .B M-b
553 moves one word backward.
555 .B C-h, backspace
556 delete the previous character.
558 .B C-d, Delete
559 delete the character in the point (over the cursor).
561 .B C-@
562 sets the mark for cutting.
564 .B C-w
565 copies the text between the cursor and the mark to a kill buffer and
566 removes the text from the input line.
568 .B M-w
569 copies the text between the cursor and the mark to a kill buffer.
571 .B C-y
572 yanks back the contents of the kill buffer.
574 .B C-k
575 kills the text from the cursor to the end of the line.
577 .B M-p, M-n
578 Use these keys to browse through the command history. M-p takes you
579 to the last entry, M-n takes you to the next one.
581 .B M-C-h, M-Backspace
582 delete one word backward.
584 .B M-Tab
585 does the filename, command, variable, username and hostname
586 .\"LINK2"
587 completion
588 .\"Completion"
589 for you.
590 .SH ""
591 .\"NODE "Menu Bar"
592 .SH "Menu Bar"
593 The menu bar pops up when you press F9 or click the mouse on the top
594 row of the screen. The menu bar has five menus: "Left", "File",
595 "Command", "Options" and "Right".
598 .\"LINK2"
599 Left and Right Menus
600 .\"Left and Right Menus"
601 allow you to modify the appearance of the left and right directory
602 panels.
605 .\"LINK2"
606 File Menu
607 .\"File Menu"
608 lists the actions you can perform on the currently selected file or
609 the tagged files.
612 .\"LINK2"
613 Command Menu
614 .\"Command Menu"
615 lists the actions which are more general and bear no relation to the
616 currently selected file or the tagged files.
619 .\"LINK2"
620 Options Menu
621 .\"Options Menu"
622 lists the actions which allow you to customize the Midnight Commander.
623 .\"NODE "  Left and Right Menus"
624 .SH "  Left and Right (Above and Below) Menus"
625 The outlook of the directory panels can be changed from the
626 .B Left
628 .B Right
629 menus (they are named
630 .B Above
632 .B Below
633 when the horizontal panel split is chosen from the
634 .\"LINK2"
635 Layout
636 .\"Layout"
637 options dialog).
638 .\"NODE "    Listing Mode..."
639 .SH "    Listing Mode..."
640 The listing mode view is used to display a listing of files, there are
641 four different listing modes available:
642 .BR Full ,
643 .BR Brief ,
644 .B Long
646 .BR User .
647 The full directory view shows the file name, the size of the file and
648 the modification time.
650 The brief view shows only the file name and it has two columns
651 (therefore showing twice as many files as other views). The long view
652 is similar to the output of
653 .B "ls -l"
654 command. The long view takes the whole screen width.
656 If you choose the "User" display format, then you have to specify
657 the display format.
659 The user display format must start with a panel size specifier.  This
660 may be "half" or "full", and they specify a half screen panel and a
661 full screen panel respectively.
663 After the panel size, you may specify the two columns mode on the
664 panel, this is done by adding the number "2" to the user format
665 string.
667 After this you add the name of the fields with an optional size
668 specifier.  This are the available fields you may display:
670 .B name
671 displays the file name.
673 .B size
674 displays the file size.
676 .B bsize
677 is an alternative form of the
678 .B size
679 format. It displays the size of the files and for directories it just
680 shows SUB-DIR or UP--DIR.
682 .B type
683 displays a one character field type.  This character is similar to
684 what is displayed by ls with the -F flag -
685 .B *
686 for executable files,
687 .B /
688 for directories,
689 .B @
690 for links,
691 .B =
692 for sockets,
693 .B -
694 for character devices,
695 .B +
696 for block devices,
697 .B |
698 for pipes,
699 .B ~
700 for symbolic links to directories and
701 .B !
702 for stale symlinks (links that point nowhere).
704 .B mark
705 an asterisk if the file is tagged, a space if it's not.
707 .B mtime
708 file's last modification time.
710 .B atime
711 file's last access time.
713 .B ctime
714 file's creation time.
716 .B perm
717 a string representing the current permission bits of the file.
719 .B mode
720 an octal value with the current permission bits of the file.
722 .B nlink
723 the number of links to the file.
725 .B ngid
726 the GID (numeric).
728 .B nuid
729 the UID (numeric).
731 .B owner
732 the owner of the file.
734 .B group
735 the group of the file.
737 .B inode
738 the inode of the file.
740 Also you can use following keywords to define the panel layout:
742 .B space
743 a space in the display format.
745 .B |
746 add a vertical line to the display format.
748 To force one field to a fixed size (a size specifier), you just add
749 .B :
750 followed by the number of characters you want the field to have.  If the
751 number is followed by the symbol
752 .BR + ,
753 then the size specifies the minimal field size - if the program finds
754 out that there is more space on the screen, it will then expand that
755 field.
757 For example, the
758 .B Full
759 display corresponds to this format:
761 half type name | size | mtime
763 And the
764 .B Long
765 display corresponds to this format:
767 full perm space nlink space owner space group space size space mtime
768 space name
770 This is a nice user display format:
772 half name | size:7 | type mode:3
774 Panels may also be set to the following modes:
776 .B "Info"
777 The info view display information related to the currently
778 selected file and if possible information about the current file
779 system.
781 .B "Tree"
782 The tree view is quite similar to the
783 .\"LINK2"
784 directory tree
785 .\"Directory Tree"
786 feature. See the section about it for more information.
788 .B "Quick View"
789 In this mode, the panel will switch to a reduced
790 .\"LINK2"
791 viewer
792 .\"Internal File Viewer"
793 that displays the contents of the currently selected file, if you
794 select the panel (with the tab key or the mouse), you will have access
795 to the usual viewer commands.
796 .\"NODE "    Sort Order..."
797 .SH "    Sort Order..."
798 The eight sort orders are by name, by extension, by modification time,
799 by access time, and by inode information modification time, by size,
800 by inode and unsorted.  In the Sort order dialog box you can choose
801 the sort order and you may also specify if you want to sort in reverse
802 order by checking the reverse box.
804 By default directories are sorted before files but this can be changed
805 from the
806 .\"LINK2"
807 Options menu
808 .\"Options Menu"
809 (option
810 .BR "Mix all files" ).
811 .\"NODE "    Filter..."
812 .SH "    Filter..."
813 The filter command allows you to specify a shell pattern (for example
814 .BR "*.tar.gz" )
815 which the files must match to be shown. Regardless
816 of the filter pattern, the directories and the links to directories
817 are always shown in the directory panel.
818 .\"NODE "    Reread"
819 .SH "    Reread"
820 The reread command reload the list of files in the directory. It is
821 useful if other processes have created or removed files.  If you
822 have panelized file names in a panel this will reload the directory
823 contents and remove the panelized information (See the section
824 .\"LINK2"
825 External panelize
826 .\"External panelize"
827 for more information).
828 .\"NODE "  File Menu"
829 .SH "  File Menu"
830 The Midnight Commander uses the F1 - F10 keys as keyboard shortcuts
831 for commands appearing in the file menu.  The escape sequences for the
832 function keys are terminfo capabilities kf1 trough kf10.  On terminals
833 without function key support, you can achieve the same functionality by
834 pressing the ESC key and then a number in the range 1 through 9 and 0
835 (corresponding to F1 to F9 and F10 respectively).
837 The File menu has the following commands (keyboard shortcuts in parentheses):
839 .B Help (F1)
841 Invokes the built-in hypertext help viewer. Inside the
842 .\"LINK2"
843 help viewer\&,
844 .\"Contents"
845 you can use the Tab key to select the next link and the Enter key to
846 follow that link. The keys Space and Backspace are used to move
847 forward and backward in a help page. Press F1 again to get the full
848 list of accepted keys.
850 .B Menu (F2)
852 Invoke the
853 .\"LINK2"
854 user menu\&.
855 .\"Menu File Edit"
856 The user menu provides an easy way to provide users with a menu and
857 add extra features to the Midnight Commander.
859 .B View (F3, Shift-F3)
861 View the currently selected file. By default this invokes the
862 .\"LINK2"
863 Internal File Viewer
864 .\"Internal File Viewer"
865 but if the option "Use internal view" is off, it invokes an external
866 file viewer specified by the
867 .B PAGER
868 environment variable.  If
869 .B PAGER
870 is undefined, the "view" command is invoked.  If you use Shift-F3
871 instead, the viewer will be invoked without doing any formatting or
872 preprocessing to the file.
874 .B Filtered View (M-!)
876 this command prompts for a command
877 and it's arguments (the argument defaults to the currently selected
878 file name), the output from such command is shown in the internal file
879 viewer.
881 .B Edit (F4)
883 Currently it invokes the
884 .B vi
885 editor, or the editor specified in the
886 .B EDITOR
887 environment variable, or the
888 .\"LINK2"
889 Internal File Editor
890 .\"Internal File Editor"
891 if the use_internal_edit option is on.
893 .B Copy (F5)
895 Pop up an input dialog with destination that defaults to the directory
896 in the non-selected panel and copies the currently selected file (or
897 the tagged files, if there is at least one file tagged) to the
898 directory specified by the user in the input dialog. During this
899 process, you can press C-c or ESC to abort the operation. For details
900 about source mask (which will be usually either * or ^\\(.*\\)$ depending
901 on setting of Use shell patterns) and possible wildcards in the destination
903 .\"LINK2"
904 Mask copy/rename\&.
905 .\"Mask Copy/Rename"
907 On some systems, it is possible to do the copy in the background by
908 clicking on the background button (or pressing M-b in the dialog
909 box).  The
910 .\"LINK2"
911 Background Jobs
912 .\"Background jobs"
913 is used to control the background process.
915 .B Link (C-x l)
917 Create a hard link to the current file.
919 .B SymLink (C-x s)
921 Create a symbolic link to the current file. To those of you who don't
922 know what links are: creating a link to a file is a bit like copying
923 the file, but both the source filename and the destination filename
924 represent the same file image. For example, if you edit one of these
925 files, all changes you make will appear in both files. Some people call
926 links aliases or shortcuts.
928 A hard link appears as a real file. After making it, there is no way of
929 telling which one is the original and which is the link. If you delete
930 either one of them the other one is still intact. It is very difficult
931 to notice that the files represent the same image. Use hard links when
932 you don't even want to know.
934 A symbolic link is a reference to the name of the original file. If
935 the original file is deleted the symbolic link is useless. It is quite
936 easy to notice that the files represent the same image. The Midnight
937 Commander shows an "@"-sign in front of the file name if it is a
938 symbolic link to somewhere (except to directory, where it shows a tilde (~)).
939 The original file which the link points to is shown on mini-status line if the
940 .I "Show mini-status"
941 option is enabled. Use symbolic links when you want to avoid the
942 confusion that can be caused by hard links.
944 .B Rename/Move (F6)
946 Pop up an input dialog that defaults to the directory in the
947 non-selected panel and moves the currently selected file (or the
948 tagged files if there is at least one tagged file) to the directory
949 specified by the user in the input dialog. During the process, you
950 can press C-c or ESC to abort the operation. For more details look at Copy
951 operation above, most of the things are quite similar.
953 On some systems, it is possible to do the copy in the background by
954 clicking on the background button (or pressing M-b in the dialog
955 box).  The
956 .\"LINK2"
957 Background Jobs
958 .\"Background jobs"
959 is used to control the background process.
961 .B Mkdir (F7)
963 Pop up an input dialog and creates the directory specified.
965 .B Delete (F8)
967 Delete the currently selected file or the tagged files in the
968 currently selected panel. During the process, you can press C-c or
969 ESC to abort the operation.
971 .B Quick cd (M-c)
972 Use the
973 .\"LINK2"
974 quick cd
975 .\"Quick cd"
976 command if you have full command line and want to cd somewhere.
978 .B Select group (+)
980 This is used to select (tag) a group of files. The Midnight Commander
981 will prompt for a regular expression describing the group. When
982 .I Shell Patterns
983 are enabled, the regular expression is much like the filename globbing
984 in the shell (* standing for zero or more characters and ?  standing
985 for one character). If
986 .I Shell Patterns
987 is off, then the tagging of files is done with normal regular
988 expressions (see ed (1)).
990 To mark directories instead of files, the expression must start or end
991 with a '/'.
993 .B Unselect group (\\\\)
995 Used to unselect a group of files. This is the opposite of the
996 .I "Select group"
997 command.
999 .B Quit (F10, Shift-F10)
1001 Terminate the Midnight Commander.  Shift-F10 is used when you want to
1002 quit and you are using the shell wrapper.  Shift-F10 will not take you
1003 to the last directory you visited with the Midnight Commander, instead
1004 it will stay at the directory where you started the Midnight Commander.
1005 .\"NODE "    Quick cd"
1006 .SH "    Quick cd"
1007 This command is useful if you have a full command line and want to
1008 .\"LINK2"
1010 .\"The cd internal command"
1011 somewhere without having to yank and paste the command line. This command
1012 pops up a small dialog, where you enter everything you would enter after
1013 .B cd
1014 on the command line and then you press enter. This features all the things
1015 that are already in the
1016 .\"LINK2"
1017 internal cd command\&.
1018 .\"The cd internal command"
1019 .\"NODE "  Command Menu"
1020 .SH "  Command Menu"
1022 .\"LINK2"
1023 Directory tree
1024 .\"Directory Tree"
1025 command shows a tree figure of the directories.
1028 .\"LINK2"
1029 Find file
1030 .\"Find File"
1031 command allows you to search for a specific file. The "Swap panels"
1032 command swaps the contents of the two directory panels.
1034 The "Panels on/off" command shows the output of the last shell
1035 command. This works only on xterm and on Linux and SCO console.
1037 The Compare directories (C-x d) command compares the directory
1038 panels with each other. You can then use the Copy (F5) command to make
1039 the panels identical. There are three compare methods. The quick method
1040 compares only file size and file date. The thorough method makes a
1041 full byte-by-byte compare. The thorough method is not available if the
1042 machine does not support the mmap(2) system call.  The size-only
1043 compare method just compares the file sizes and does not check the
1044 contents or the date times, it just checks the file size.
1046 The Command history command shows a list of typed commands. The
1047 selected command is copied to the command line. The command history
1048 can also be accessed by typing M-p or M-n.
1051 .\"LINK2"
1052 Directory hotlist (C-\\)
1053 .\"Hotlist"
1054 command makes changing of the current directory to often used directories
1055 faster.
1058 .\"LINK2"
1059 External panelize
1060 .\"External panelize"
1061 allows you to execute an external program, and make the output of that
1062 program the contents of the current panel.
1064 .\"LINK2"
1065 Extension file edit
1066 .\"Extension File Edit"
1067 command allows you to specify programs to executed when you try to
1068 execute, view, edit and do a bunch of other thing on files
1069 with certain extensions (filename endings). The
1070 .\"LINK2"
1071 Menu file edit
1072 .\"Menu File Edit"
1073 command may be used for editing the user menu (which appears by
1074 pressing F2).
1075 .\"NODE "    Directory Tree"
1076 .SH "    Directory Tree"
1077 The Directory Tree command shows a tree figure of the directories. You
1078 can select a directory from the figure and the Midnight Commander will
1079 change to that directory.
1081 There are two ways to invoke the tree. The real directory tree command
1082 is available from Commands menu. The other way is to select tree view
1083 from the Left or Right menu.
1085 To get rid of long delays the Midnight Commander creates the tree
1086 figure by scanning only a small subset of all the directories. If the
1087 directory which you want to see is missing, move to its parent
1088 directory and press C-r (or F2).
1090 You can use the following keys:
1092 .\"LINK2"
1093 General movement keys
1094 .\"General Movement Keys"
1095 are accepted.
1097 .B Enter.
1098 In the directory tree, exits the directory tree and changes to this
1099 directory in the current panel. In the tree view, changes to this
1100 directory in the other panel and stays in tree view mode in the
1101 current panel.
1103 .B C-r, F2 (Rescan).
1104 Rescan this directory. Use this when the tree figure is out of date:
1105 it is missing subdirectories or shows some subdirectories which don't
1106 exist any more.
1108 .B F3 (Forget).
1109 Delete this directory from the tree figure. Use this to remove clutter
1110 from the figure. If you want the directory back to the tree figure
1111 press F2 in its parent directory.
1113 .B F4 (Static/Dynamic).
1114 Toggle between the dynamic navigation mode (default) and the static
1115 navigation mode.
1117 In the static navigation mode you can use the Up and Down keys to
1118 select a directory. All known directories are shown.
1120 In the dynamic navigation mode you can use the Up and Down keys to
1121 select a sibling directory, the Left key to move to the parent
1122 directory, and the Right key to move to a child directory. Only the
1123 parent, sibling and children directories are shown, others are left
1124 out. The tree figure changes dynamically as you traverse.
1126 .B F5 (Copy).
1127 Copy the directory.
1129 .B F6 (RenMov).
1130 Move the directory.
1132 .B F7 (Mkdir).
1133 Make a new directory below this directory.
1135 .B F8 (Delete).
1136 Delete this directory from the file system.
1138 .B C-s, M-s.
1139 Search the next directory matching the search string. If there is
1140 no such directory these keys will move one line down.
1142 .B C-h, Backspace.
1143 Delete the last character of the search string.
1145 .B Any other character.
1146 Add the character to the search string and move to the next directory
1147 which starts with these characters. In the tree view you must first
1148 activate the search mode by pressing C-s. The search string is shown
1149 in the mini status line.
1151 The following actions are available only in the directory tree. They
1152 aren't supported in the tree view.
1154 .B F1 (Help).
1155 Invoke the help viewer and show this section.
1157 .B Esc, F10.
1158 Exit the directory tree. Do not change the directory.
1160 The mouse is supported. A double-click behaves like Enter. See
1161 also the section on
1162 .\"LINK2"
1163 mouse support\&.
1164 .\"Mouse Support"
1165 .\"NODE "    Find File"
1166 .SH "    Find File"
1167 The Find File feature first asks for the start directory for the
1168 search and the filename to be searched for. By pressing the Tree
1169 button you can select the start directory from the
1170 .\"LINK2"
1171 directory tree
1172 .\"Directory Tree"
1173 figure.
1175 The contents field accepts regular expressions similar to egrep(1). That
1176 means you have to escape characters with a special meaning to egrep with "\\",
1177 e.g. if you search for "strcmp (" you will have to input "strcmp \\("
1178 (without the double quotes).
1180 You can start the search by pressing the Ok button.
1181 During the search you can stop from the Stop button and continue from
1182 the Start button.
1184 You can browse the filelist with the up and down arrow keys. The Chdir
1185 button will change to the directory of the currently selected
1186 file. The Again button will ask for the parameters for a new
1187 search. The Quit button quits the search operation. The Panelize
1188 button will place the found files to the current directory panel so
1189 that you can do additional operations on them (view, copy, move,
1190 delete and so on). After panelizing you can press C-r to return to the
1191 normal file listing.
1193 It is possible to have a list of directories that the Find File
1194 command should skip during the search (for example, you may want to
1195 avoid searches on a CDROM or on a NFS directory that is mounted across
1196 a slow link).
1198 Directories to be skipped should be set on the variable
1199 .B find_ignore_dirs
1200 in the
1201 .B Misc
1202 section of your ~/.mc/ini file.
1204 Directory components should be separated with a colon, here is an
1205 example:
1208 [Misc]
1209 find_ignore_dirs=/cdrom:/nfs/wuarchive:/afs
1212 You may consider using the
1213 .\"LINK2"
1214 External panelize
1215 .\"External panelize"
1216 command for some operations. Find file command is for simple queries
1217 only, while using External panelize you can do as mysterious searches
1218 as you would like.
1219 .\"NODE "    External panelize"
1220 .SH "    External panelize"
1221 The External panelize allows you to execute an external program, and
1222 make the output of that program the contents of the current panel.
1224 For example, if you want to manipulate in one of the panels all the
1225 symbolic links in the current directory, you can use external
1226 panelization to run the following command:
1229 find . -type l -print
1232 Upon command completion, the directory contents of the panel will no
1233 longer be the directory listing of the current directory, but all the
1234 files that are symbolic links.
1236 If you want to panelize all of the files that have been downloaded
1237 from your ftp server, you can use this awk command to extract the file
1238 name from the transfer log files:
1241 awk '$9 ~! /incoming/ { print $9 }' < /usr/adm/xferlog
1244 You may want to save often used panelize commands under a descriptive name,
1245 so that you can recall them quickly. You do this by typing the command on
1246 the input line and pressing Add new button. Then you enter a name under
1247 which you want the command to be saved. Next time, you just choose that
1248 command from the list and do not have to type it again.
1249 .\"NODE "    Hotlist"
1250 .SH "    Hotlist"
1251 The Directory hotlist command shows the labels of the directories
1252 in the directory hotlist.  The Midnight Commander will change to the
1253 directory corresponding to the selected label.  From the hotlist dialog,
1254 you can remove already created label/directory pairs and add new ones.
1255 To add new directories quickly, you can use the Add to hotlist command
1256 (C-x h), which adds the current directory into the directory hotlist,
1257 asking just for the label for the directory.
1259 This makes cd to often used directories faster. You may consider using the
1260 CDPATH variable as described in
1261 .\"LINK2"
1262 internal cd command
1263 .\"The cd internal command"
1264 description.
1265 .\"NODE "    Extension File Edit"
1266 .SH "    Extension File Edit"
1267 This will invoke your editor on the file
1268 .IR ~/.mc/bindings .
1269 The format of this file is as follows (the format has changed with
1270 version 3.0):
1272 All lines starting with # or empty lines are thrown away.
1274 Lines starting in the first column should have following format:
1276 .IR keyword/desc ,
1277 i.e. everything after
1278 .I keyword/
1279 until new line is
1280 .I desc
1282 keyword can be:
1284 .I shell
1285 (desc is then any extension (no wildcards), i.e. matches all the files
1286 *desc . Example: .tar matches *.tar)
1288 .I regex
1289 (desc is a regular expression)
1291 .I type
1292 (file matches this if `file %f` matches regular expression desc
1293 (the filename: part from `file %f` is removed))
1295 .I default
1296 (matches any file no matter what desc is)
1298 Other lines should start with a space or tab and should be of the format:
1299 .I keyword=command
1300 (with no spaces around =), where
1301 .I keyword
1302 should be:
1303 .I Open
1304 (if the user presses Enter or doubleclicks it),
1305 .I View
1306 (F3) or
1307 .I Edit
1308 (F4).
1309 .I command
1310 is any one-line shell command, with the simple
1311 .\"LINK2"
1312 macro substitution\&.
1313 .\"Macro Substitution"
1315 Rules are matched from top to bottom, thus the order is important.  If
1316 the appropriate action is missing, search continues as if this rule
1317 didn't match (i.e. if a file matches the first and second entry and View
1318 action is missing in the first one, then on pressing F3 the View action
1319 from the second entry will be used.
1320 .I default
1321 should match all the actions.
1322 .\"NODE "    Background jobs"
1323 .SH "    Background Jobs"
1324 This lets you control the state of any background Midnight Commander
1325 process (only copy and move files operations can be done in the
1326 background).  You can stop, restart and kill a background job from
1327 here.
1328 .\"NODE "    Menu File Edit"
1329 .SH "    Menu File Edit"
1330 The user menu is a menu of useful actions that can be customized by
1331 the user. When you access the user menu, the
1332 file .mc.menu from the current directory is used if it exists,
1333 but only if it is owned by user or root and is not world-writable.
1334 If no such file found, ~/.mc/menu is tried in the same way,
1335 and otherwise mc uses the default system-wide menu
1336 @prefix@/share/mc/mc.menu.
1338 The format of the menu file is very simple. Lines that start with
1339 anything but space or tab are considered entries for the menu (in
1340 order to be able to use it like a hot key, the first character should
1341 be a letter). All the lines that start with a space or a tab are the
1342 commands that will be executed when the entry is selected.
1344 When an option is selected all the command lines of the option are
1345 copied to a temporary file in the temporary directory (usually
1346 /usr/tmp) and then that file is executed. This allows the user to put
1347 normal shell constructs in the menus. Also simple macro substitution
1348 takes place before executing the menu code. For more information, see
1349 .\"LINK2"
1350 macro substitution\&.
1351 .\"Macro Substitution"
1353 Here is a sample mc.menu file:
1356 A       Dump the currently selected file
1357         od -c %f
1359 B       Edit a bug report and send it to root
1360         vi /tmp/mail.$$
1361         mail -s "Midnight Commander bug" root < /tmp/mail.$$
1363 M       Read mail
1364         emacs -f rmail
1366 N       Read Usenet news
1367         emacs -f gnus
1369 H       Call the info hypertext browser
1370         info
1372 J       Copy current directory to other panel recursively
1373         tar cf - . | (cd %D && tar xvpf -)
1375 K       Make a release of the current subdirectory
1376         echo -n "Name of distribution file: "
1377         read tar
1378         ln -s %d `dirname %d`/$tar
1379         cd ..
1380         tar cvhf ${tar}.tar $tar
1382 = f *.tar.gz | f *.tgz & t n
1383 X       Extract the contents of a compressed tar file
1384         tar xzvf %f
1387 .B Default Conditions
1389 Each menu entry may be preceded by a condition. The condition must
1390 start from the first column with a '=' character. If the condition is
1391 true, the menu entry will be the default entry.
1394 Condition syntax:       = <sub-cond>
1395   or:                   = <sub-cond> | <sub-cond> ...
1396   or:                   = <sub-cond> & <sub-cond> ...
1398 Sub-condition is one of following:
1400   y <pattern>           syntax of current file matching pattern?
1401                         (for edit menu only)
1402   f <pattern>           current file matching pattern?
1403   F <pattern>           other file matching pattern?
1404   d <pattern>           current directory matching pattern?
1405   D <pattern>           other directory matching pattern?
1406   t <type>              current file of type?
1407   T <type>              other file of type?
1408   x <filename>          is it executable filename?
1409   ! <sub-cond>          negate the result of sub-condition
1412 Pattern is a normal shell pattern or a regular expression, according
1413 to the shell patterns option. You can override the global value of
1414 the shell patterns option by writing "shell_patterns=x" on the first
1415 line of the menu file (where "x" is either 0 or 1).
1417 Type is one or more of the following characters:
1420   n     not directory
1421   r     regular file
1422   d     directory
1423   l     link
1424   c     char special
1425   b     block special
1426   f     fifo (pipe)
1427   s     socket
1428   x     executable
1429   t     tagged
1432 For example 'rlf' means either regular file, link or fifo. The 't'
1433 type is a little special because it acts on the panel instead of the
1434 file. The condition '=t t' is true if there are tagged files in the
1435 current panel and false if not.
1437 If the condition starts with '=?' instead of '=' a debug trace will be
1438 shown whenever the value of the condition is calculated.
1440 The conditions are calculated from left to right. This means
1442         = f *.tar.gz | f *.tgz & t n
1444 is calculated as
1446         ( (f *.tar.gz) | (f *.tgz) ) & (t n)
1449 Here is a sample of the use of conditions:
1452 = f *.tar.gz | f *.tgz & t n
1453 L       List the contents of a compressed tar-archive
1454         gzip -cd %f | tar xvf -
1457 .B Addition Conditions
1459 If the condition begins with '+' (or '+?') instead of '=' (or '=?') it
1460 is an addition condition. If the condition is true the menu entry will
1461 be included in the menu. If the condition is false the menu entry will
1462 not be included in the menu.
1464 You can combine default and addition conditions by starting condition
1465 with '+=' or '=+' (or '+=?' or '=+?' if you want debug trace). If you
1466 want to use two different conditions, one for adding and another for
1467 defaulting, you can precede a menu entry with two condition lines, one
1468 starting with '+' and another starting with '='.
1470 Comments are started with '#'. The additional comment lines must start
1471 with '#', space or tab.
1472 .\"NODE "  Options Menu"
1473 .SH "  Options Menu"
1474 The Midnight Commander has some options that may be toggled on and
1475 off in several dialogs which are accessible from this menu. Options
1476 are enabled if they have an asterisk or "x" in front of them.
1479 .\"LINK2"
1480 Configuration
1481 .\"Configuration"
1482 command pops up a dialog from which you can change most of settings of
1483 the Midnight Commander.
1486 .\"LINK2"
1487 Layout
1488 .\"Layout"
1489 command pops up a dialog from which you specify a bunch of options how mc
1490 looks like on the screen.
1493 .\"LINK2"
1494 Confirmation
1495 .\"Confirmation"
1496 command pops up a dialog from which you specify which actions you want to
1497 confirm.
1500 .\"LINK2"
1501 Display bits
1502 .\"Display bits"
1503 command pops up a dialog from which you may select which characters is your
1504 terminal able to display.
1507 .\"LINK2"
1508 Learn keys
1509 .\"Learn keys"
1510 command pops up a dialog from which you test some keys which are not working
1511 on some terminals and you may fix them.
1514 .\"LINK2"
1515 Virtual FS
1516 .\"Virtual FS"
1517 command pops up a dialog from which you specify some VFS related options.
1520 .\"LINK2"
1521 Save setup
1522 .\"Save Setup"
1523 command saves the current settings of the Left, Right and Options
1524 menus. A small number of other settings is saved, too.
1525 .\"NODE "    Configuration"
1526 .SH "    Configuration"
1527 The options in this dialog are divided into three groups:
1528 Panel Options, Pause after run and Other Options.
1530 .B Panel Options
1532 .I Show Backup Files.
1533 If enabled, the Midnight Commander will show files ending with a tilde.
1534 Otherwise, they won't be shown (like GNU's ls option -B).
1536 .I Show Hidden Files.
1537 If enabled, the Midnight Commander will show all files that start with
1538 a dot (like ls -a).
1540 .I Mark moves down.
1541 If enabled, the selection bar will move down when you mark a file (with
1542 either C-t or the Insert key).
1544 .I Drop down menus.
1545 When this option is enabled, the pull down menus will be activated as
1546 soon as you press the
1547 .B F9
1548 key.  Otherwise, you will only get the menu title, and you will have
1549 to activate the menu either with the arrow keys or with the hotkeys.
1550 It is recommended if you are using hotkeys.
1552 .I Mix all files.
1553 If this option is enabled, all files and directories are shown mixed
1554 together.  If the option is off, directories (and links to directories)
1555 are shown at the beginning of the listing, and other files below.
1557 .I Fast directory reload.
1558 If this option is enabled, the Midnight Commander will use a trick to
1559 determine if the directory contents have changed.  The trick is to reload
1560 the directory only if the i-node of the directory has changed; this means
1561 that reloads only happen when files are created or deleted.  If what
1562 changes is the i-node for a file in the directory (file size changes,
1563 mode or owner changes, etc) the display is not updated.  In these cases,
1564 if you have the option on, you have to rescan the directory manually
1565 (with C-r).
1567 .B Pause after run
1569 After executing your commands, the Midnight Commander can pause, so
1570 that you can examine the output of the command.  There are three
1571 possible settings for this variable:
1573 .I Never.
1574 Means that you do not want to see the output of your command.  If you
1575 are using the Linux or SCO console or an xterm, you will be able to see the
1576 output of the command by typing C-o.
1578 .I On dumb terminals.
1579 You will get the pause message on terminals that are not capable of
1580 showing the output of the last command executed (any terminal that is
1581 not an xterm or the Linux console).
1583 .I Always.
1584 The program will pause after executing all of your commands.
1586 .B Other Options
1588 .I Verbose operation.
1589 This toggles whether the file Copy, Rename and Delete operations are
1590 verbose (i.e., display a dialog box for each operation). If you have a
1591 slow terminal, you may wish to disable the verbose operation. It is
1592 automatically turned off if the speed of your terminal is less than
1593 9600 bps.
1595 .I Compute totals.
1596 If this option is enabled, the Midnight
1597 Commander computes total byte sizes and total number of files
1598 prior to any Copy, Rename and Delete operations. This will
1599 provide you with a more accurate progress bar at the expense
1600 of some speed. This option has no effect, if
1601 .I Verbose operation
1602 is disabled.
1604 .I Shell Patterns.
1605 By default the Select, Unselect and Filter commands will use shell-like
1606 regular expressions. The following conversions are performed to achieve
1607 this: the '*' is replaced by '.*' (zero or more characters); the '?'
1608 is replaced by '.' (exactly one character) and '.' by the literal
1609 dot. If the option is disabled, then the regular expressions are the
1610 ones described in ed(1).
1612 .I Auto Save Setup.
1613 If this option is enabled, when you exit the Midnight Commander the
1614 configurable options of the Midnight Commander are saved in the
1615 ~/.mc/ini file.
1617 .I Auto menus.
1618 If this option is enabled, the user menu will be invoked at startup.
1619 Useful for building menus for non-unixers.
1621 .I Use internal editor.
1622 If this option is enabled, the built-in file editor is used to edit
1623 files. If the option is disabled, the editor specified in the
1624 .B EDITOR
1625 environment variable is used.
1626 If no editor is specified,
1627 .B vi
1628 is used.  See the section on the
1629 .\"LINK2"
1630 internal file editor\&.
1631 .\"Internal File Editor"
1633 .I Use internal viewer.
1634 If this option is enabled, the built-in file viewer is used to view
1635 files. If the option is disabled, the pager specified in the
1636 .B PAGER
1637 environment variable is used.
1638 If no pager is specified, the
1639 .B view
1640 command is used.  See the section on the
1641 .\"LINK2"
1642 internal file viewer\&.
1643 .\"Internal File Viewer"
1645 .I Complete: show all.
1646 By default the Midnight Commander pops up all possible
1647 .\"LINK2"
1648 completions
1649 .\"Completion"
1650 if the completion is ambiguous only when you press
1651 .B M-Tab
1652 for the second time.  For the first time, it just completes as much as
1653 possible and beeps in the case of ambiguity.  Enable this option if you
1654 want to see all possible completions even after pressing
1655 .B M-Tab
1656 the first time.
1658 .I Rotating dash.
1659 If this option is enabled, the
1660 Midnight Commander shows a rotating dash in the upper right corner
1661 as a work in progress indicator.
1663 .I Lynx-like motion.
1664 If this option is enabled,
1665 you may use the arrows keys to automatically chdir if the
1666 current selection is a subdirectory and the shell command
1667 line is empty. By default, this setting is off.
1669 .I Cd follows links.
1670 This option, if set, causes the Midnight Commander to follow the
1671 logical chain of directories when changing current directory
1672 either in the panels, or using the cd command. This is the default
1673 behavior of bash. When unset, the Midnight Commander follows the
1674 real directory structure, so cd .. if you've entered that directory
1675 through a link will move you to the current directory's real parent
1676 and not to the directory where the link was present.
1678 .I Safe delete.
1679 If this option is enabled, deleting files unintentionally becomes more
1680 difficult.  The default selection in the confirmation dialogs for
1681 deletion changes from "Yes" to "No".  This option is disabled by
1682 default.
1683 .\"NODE "    Layout"
1684 .SH "    Layout"
1685 The layout dialog gives you a possibility to change the general layout
1686 of screen. You can specify whether the menubar, the command prompt,
1687 the hintbar and the function keybar are visible. On the Linux or SCO console
1688 you can specify how many lines are shown in the output window.
1690 The rest of the screen area is used for the two directory panels. You
1691 can specify whether the area is split to the panels in vertical or
1692 horizontal direction. The split can be equal or you can specify an
1693 unequal split.
1695 By default all contents of the directory panels are displayed with
1696 the same color, but you can specify whether
1697 .I permissions
1699 .I file types
1700 are highlighted with special
1701 .\"LINK2"
1702 Colors\&.
1703 .\"Colors"
1704 If permission highlighting is enabled, the parts of the
1705 .I perm
1707 .I mode
1708 .\"LINK2"
1709 display fields
1710 .\"Listing Mode..."
1711 which are valid for the user running Midnight Commander
1712 are highlighted with the color defined with the
1713 .I selected
1714 keyword. If file type highlighting is enabled, files are colored according
1715 to their file type (e.g. directory, core file, executable, ...).
1717 If the
1718 .I Show Mini-Status
1719 option is enabled, one line of status
1720 information about the currently selected item is showed at the bottom
1721 of the panels.
1722 .\"NODE "    Confirmation"
1723 .SH "    Confirmation"
1724 In this menu you configure the confirmation options for file deletion,
1725 overwriting, execution by pressing enter and quitting the program.
1726 .\"NODE "    Display bits"
1727 .SH "    Display bits"
1728 This is used to configure the range of visible characters on the
1729 screen.  This setting may be 7-bits if your terminal/curses supports
1730 only seven output bits, ISO-8859-1 displays all the characters in the
1731 ISO-8859-1 map and full 8 bits is for those terminals that can display
1732 full 8 bit characters.
1733 .\"NODE "    Learn keys"
1734 .SH "    Learn keys"
1735 This dialog allows you to test and redefine functional keys, cursor
1736 arrows and some other keys to make them work properly on your terminal.
1737 They often don't, since many terminal databases are incomplete or broken.
1739 You can move around with the Tab key and with the vi moving keys ('h'
1740 left, 'j' down, 'k' up and 'l' right).  Once you press any cursor movement
1741 key and it is recognized, you can use that key as well.
1743 You can test keys just by pressing each of them.  When you press a
1744 key and it is recognized properly, OK should appear next to the name
1745 of that key.  Once a key is marked OK it starts working as usually,
1746 e.g. F1 pressed the first time will just check that the F1 key works,
1747 but after that it will show help.  The same applies to the arrow keys.
1748 The Tab key should be working always.
1750 If some keys do not work properly then you won't see OK appear after
1751 pressing that key.  Then you may want to redefine it.  Do it by pressing
1752 the button with the name of that key (either by the mouse or by Enter
1753 or Space after selecting the button with Tab or arrows).  Then a message
1754 box will appear asking you to press that key.  Do it and wait until the
1755 message box disappears.  If you want to abort, just press Escape once
1756 and wait.
1758 When you finish with all the keys, you can Save them.  The definitions
1759 for the keys you have redefined will be written into the [terminal:TERM]
1760 section of your ~/.mc/ini file (where TERM is the name of your current
1761 terminal).  The definitions of the keys that were already working properly
1762 are not saved.
1763 .\"NODE "    Virtual FS"
1764 .SH "    Virtual FS"
1765 This option gives you control over the settings of the
1766 .\"LINK2"
1767 Virtual File System
1768 .\"Virtual File System"
1769 information cache.
1771 The Midnight Commander keeps in memory the information
1772 related to some of the virtual file systems to speed up
1773 the access to the files in the file system (for example,
1774 directory listings fetched from ftp servers).
1776 Moreover in order to access the contents of compressed files
1777 (for example, compressed tar files) the Midnight Commander
1778 has to create a temporary uncompressed file on your disk.
1780 Since both the information in memory and the temporary files on
1781 disk take up resources, you may want to tune the parameters of
1782 the cached information to decrease your resource usage or to maximize
1783 the speed of access to frequently used file systems.
1785 The Tar file system is quite clever about how it handles
1786 tar files: it just loads the directory entries and when it
1787 needs to use the information contained in the tar file, it
1788 goes and grab it.
1790 In the wild, tar files are usually kept compressed (plain
1791 tar files are species in extinction), and because of the
1792 nature of those files (the directory entries for the tar
1793 files is not there waiting for us to be loaded), the tar
1794 file system has to uncompress the file
1795 on the disk in a temporary location and then access the
1796 uncompressed file as a regular tar file.
1798 Now, since we all love to browse files and tar files all
1799 over the disk, it's common that you will leave a tar file
1800 and the re-enter it later. Since uncompression is slow,
1801 the Midnight Commander will cache the information in
1802 memory for a limited amount of time, after you hit the
1803 timeout, all of the resources associated with the
1804 file system will be freed. The default timeout is set to
1805 one minute.
1808 .\"LINK2"
1809 FTP File System
1810 .\"FTP File System"
1811 keeps the directory listing it fetches from a ftp server
1812 in a cache.  The cache
1813 expire time is configurable with the
1814 .I ftpfs directory cache timeout
1815 option.
1816 A low value for this
1817 option may slow down every operation on the ftp file System
1818 because every operation is accompanied by a query of the
1819 ftp server.
1821 Moreover you can define a proxy host for doing ftp transfers
1822 and configure the Midnight Commander to always use the proxy host.
1824 the section on
1825 .\"LINK2"
1826 FTP File System
1827 .\"FTP File System"
1828 for more information.
1829 .\"NODE "    Save Setup"
1830 .SH "    Save Setup"
1831 At startup the Midnight Commander will try to load initialization
1832 information from the ~/.mc/ini file. If this file doesn't exist,
1833 it will load the information from the system-wide configuration file,
1834 located in @prefix@/share/mc/mc.ini. If the system-wide configuration
1835 file doesn't exist, MC uses the default settings.
1838 .I Save Setup
1839 command creates the ~/.mc/ini file by saving the current settings
1840 of the
1841 .\"LINK2"
1842 Left, Right
1843 .\"Left and Right Menus"
1845 .\"LINK2"
1846 Options
1847 .\"Options Menu"
1848 menus.
1850 If you activate the
1851 .I auto save setup
1852 option, MC will always save the current settings when exiting.
1854 There also exist settings which can't be changed from the menus. To
1855 change these settings you have to edit the setup file with your
1856 favorite editor. See the section on
1857 .\"LINK2"
1858 Special Settings
1859 .\"Special Settings"
1860 for more information.
1861 .SH ""
1862 .\"NODE "Executing operating system commands"
1863 .SH "Executing operating system commands"
1864 You may execute commands by typing them directly in the Midnight
1865 Commander's input line, or by selecting the program you want to
1866 execute with the selection bar in one of the panels and hitting Enter.
1868 If you press Enter over a file that is not executable, the Midnight
1869 Commander checks the extension of the selected file against the
1870 extensions in the
1871 .\"LINK2"
1872 Extensions File\&.
1873 .\"Extension File Edit"
1874 If a match is found then the code associated with that extension is
1875 executed. A very simple
1876 .\"LINK2"
1877 macro expansion
1878 .\"Macro Substitution"
1879 takes place before executing the command.
1880 .\"NODE "  The cd internal command"
1881 .SH "  The cd internal command"
1883 .I cd
1884 command is interpreted by the Midnight Commander, it is not passed to
1885 the command shell for execution.  Thus it may not handle all of the
1886 nice macro expansion and substitution that your shell does, although it
1887 does some of them:
1889 .I Tilde substitution.
1890 The (~) will be substituted with your home directory, if you append a
1891 username after the tilde, then it will be substituted with the login
1892 directory of the specified user.
1894 For example, ~guest is the home directory for the user guest, while
1895 ~/guest is the directory guest in your home directory.
1897 .I Previous directory.
1898 You can jump to the directory you were previously by using the special
1899 directory name '-' like this:
1900 .B cd -
1902 .I CDPATH directories.
1903 If the directory specified to the
1904 .B cd
1905 command is not in the current directory, then The Midnight Commander
1906 uses the value in the environment variable
1907 .B CDPATH
1908 to search for the directory in any of the named directories.
1910 For example you could set your
1911 .B CDPATH
1912 variable to ~/src:/usr/src, allowing you to change your directory to
1913 any of the directories inside the ~/src and /usr/src directories, from
1914 any place in the file system by using it's relative name (for example
1915 cd linux could take you to /usr/src/linux).
1916 .\"NODE "  Macro Substitution"
1917 .SH "  Macro Substitution"
1918 When accessing a
1919 .\"LINK2"
1920 user menu\&,
1921 .\"Menu File Edit"
1922 or executing an
1923 .\"LINK2"
1924 extension dependent command\&,
1925 .\"Extension File Edit"
1926 or running a command from the command line input, a simple macro
1927 substitution takes place.
1929 The macros are:
1931 .I %i
1932 The indent of blank space, equal the cursor column position.  For edit
1933 menu only.
1935 .I %y
1936 The syntax type of current file. For edit menu only.
1938 .I %k
1939 The block file name.
1941 .I %e
1942 The error file name.
1944 .I %m
1945 The current menu name.
1947 .IR %f " and " %p
1948 The current file name.
1950 .I %x
1951 The extension of current file name.
1953 .I %b
1954 The current file name without extension.
1956 .I %d
1957 The current directory name.
1959 .I %F
1960 The current file in the unselected panel.
1962 .I %D
1963 The directory name of the unselected panel.
1965 .I %t
1966 The currently tagged files.
1968 .I %T
1969 The tagged files in the unselected panel.
1971 .IR %u " and " %U
1972 Similar to the %t and %T macros, but in addition the files are untagged.
1973 You can use this macro only once per menu file entry or extension file
1974 entry, because next time there will be no tagged files.
1976 .IR %s " and " %S
1977 The selected files: The tagged files if there are any. Otherwise the
1978 current file.
1980 .I %cd
1981 This is a special macro that is used to change the current directory
1982 to the directory specified in front of it.  This is used primarily as
1983 an interface to the
1984 .\"LINK2"
1985 Virtual File System\&.
1986 .\"Virtual File System"
1988 .I %view
1989 This macro is used to invoke the internal viewer.  This macro can be
1990 used alone, or with arguments.  If you pass any arguments to this
1991 macro, they should be enclosed in brackets.
1993 The arguments are:
1994 .I ascii
1995 to force the viewer into ascii mode;
1996 .I hex
1997 to force the viewer into hex mode;
1998 .I nroff
1999 to tell the viewer that it should interpret the bold and underline
2000 sequences of nroff;
2001 .I unformatted
2002 to tell the viewer to not interpret nroff commands for making the text
2003 bold or underlined.
2005 .I %%
2006 The % character
2008 .I %{some text}
2009 Prompt for the substitution. An input box is shown and the text inside
2010 the braces is used as a prompt. The macro is substituted by the text
2011 typed by the user. The user can press ESC or F10 to cancel. This macro
2012 doesn't work on the command line yet.
2014 .I %var{ENV:default}
2015 If environment variable
2016 .I ENV
2017 is unset, the
2018 .I default
2019 is substituted.  Otherwise, the value of
2020 .I ENV
2021 is substituted.
2022 .\"NODE "  The subshell support"
2023 .SH "  The subshell support"
2024 The subshell support is a compile time option, that works with the
2025 shells: bash, tcsh and zsh.
2027 When the subshell code is activated the Midnight Commander will
2028 spawn a concurrent copy of your shell (the one defined in the
2029 .B SHELL
2030 variable and if it is not defined, then the one in the /etc/passwd
2031 file) and run it in a pseudo terminal, instead of invoking a new shell
2032 each time you execute a command, the command will be passed to the
2033 subshell as if you had typed it.  This also allows you to change the
2034 environment variables, use shell functions and define aliases that are
2035 valid until you quit the Midnight Commander.
2037 If you are using
2038 .B bash
2039 you can specify startup
2040 commands for the subshell in your ~/.mc/bashrc file and
2041 special keyboard maps in the ~/.mc/inputrc file.
2042 .B tcsh
2043 users may specify startup commands in the ~/.mc/tcshrc file.
2045 When the subshell code is used, you can suspend applications at any
2046 time with the sequence C-o and jump back to the Midnight Commander, if
2047 you interrupt an application, you will not be able to run other
2048 external commands until you quit the application you interrupted.
2050 An extra added feature of using the subshell is that the prompt
2051 displayed by the Midnight Commander is the same prompt that you are
2052 currently using in your shell.
2055 .\"LINK2"
2056 OPTIONS
2057 .\"OPTIONS"
2058 section has more information on how you can control the subshell code.
2059 .\"NODE "Chmod"
2060 .SH "Chmod"
2061 The Chmod window is used to change the attribute bits in a group of
2062 files and directories.  It can be invoked with the C-x c key combination.
2064 The Chmod window has two parts -
2065 .I Permissions
2067 .IR File .
2069 In the File section are displayed the name of the file or directory
2070 and its permissions in octal form, as well as its owner and group.
2072 In the Permissions section there is a set of check buttons which
2073 correspond to the file attribute bits.  As you change the attribute
2074 bits, you can see the octal value change in the File section.
2076 To move between the widgets (buttons and check buttons) use the
2077 .I arrow keys
2078 or the
2079 .I Tab
2080 key.  To change the state of the check buttons or to select a button
2082 .I Space.
2083 You can also use the hotkeys on the buttons to quickly activate them.
2084 Hotkeys are shown as highlighted letters on the buttons.
2086 To set the attribute bits, use the Enter key.
2088 When working with a group of files or directories, you just click on
2089 the bits you want to set or clear.  Once you have selected the bits
2090 you want to change, you select one of the action buttons (Set marked
2091 or Clear marked).
2093 Finally, to set the attributes exactly to those specified, you can use
2095 .B [Set all]
2096 button, which will act on all the tagged files.
2098 .B [Marked all]
2099 set only marked attributes to all selected files
2101 .B [Set marked]
2102 set marked bits in attributes of all selected files
2104 .B [Clean marked]
2105 clear marked bits in attributes of all selected files
2107 .B [Set]
2108 set the attributes of one file
2110 .B [Cancel]
2111 cancel the Chmod command
2112 .\"NODE "Chown"
2113 .SH "Chown"
2114 The Chown command is used to change the owner/group of a file. The hot
2115 key for this command is C-x o.
2116 .\"NODE "Advanced Chown"
2117 .SH "Advanced Chown"
2118 The Advanced Chown command is the
2119 .\"LINK2"
2120 Chmod
2121 .\"Chmod"
2123 .\"LINK2"
2124 Chown
2125 .\"Chown"
2126 command combined into one window. You can change the permissions and
2127 owner/group of files at once.
2128 .\"NODE "File Operations"
2129 .SH "File Operations"
2130 When you copy, move or delete files the Midnight Commander shows the
2131 file operations dialog. It shows the files currently being operated on
2132 and there are at most three progress bars. The file bar tells how big
2133 part of the current file has been copied so far. The count bar tells
2134 how many of tagged files have been handled so far. The bytes bar tells
2135 how big part of total size of the tagged files has been handled so
2136 far. If the verbose option is off the file and bytes bars are not
2137 shown.
2139 There are two buttons at the bottom of the dialog. Pressing the Skip
2140 button will skip the rest of the current file. Pressing the Abort
2141 button will abort the whole operation, the rest of the files are
2142 skipped.
2144 There are three other dialogs which you can run into during the file
2145 operations.
2147 The error dialog informs about error conditions and has three
2148 choices. Normally you select either the Skip button to skip the file
2149 or the Abort button to abort the operation altogether. You can also
2150 select the Retry button if you fixed the problem from another
2151 terminal.
2153 The replace dialog is shown when you attempt to copy or move a file on
2154 the top of an existing file. The dialog shows the dates and sizes of
2155 the both files. Press the Yes button to overwrite the file, the No
2156 button to skip the file, the alL button to overwrite all the files,
2157 the nonE button to never overwrite and the Update button to overwrite
2158 if the source file is newer than the target file. You can abort the
2159 whole operation by pressing the Abort button.
2161 The recursive delete dialog is shown when you try to delete a
2162 directory which is not empty. Press the Yes button to delete the
2163 directory recursively, the No button to skip the directory, the alL
2164 button to delete all the directories and the nonE button to skip all
2165 the non-empty directories. You can abort the whole operation by
2166 pressing the Abort button. If you selected the Yes or alL button you
2167 will be asked for a confirmation. Type "yes" only if you are really
2168 sure you want to do the recursive delete.
2170 If you have tagged files and perform an operation on them only the
2171 files on which the operation succeeded are untagged. Failed and
2172 skipped files are left tagged.
2173 .\"NODE "Mask Copy/Rename"
2174 .SH "Mask Copy/Rename"
2175 The copy/move operations lets you translate the names of files in an easy
2176 way. To do it, you have to specify the correct source mask and usually in
2177 the trailing part of the destination specify some wildcards.
2178 All the files matching the source mask are copied/renamed according to
2179 the target mask. If there are tagged files, only the tagged files
2180 matching the source mask are renamed.
2182 There are other options which you can set:
2184 Follow links tells whether make the symlinks and hardlinks in the source
2185 directory (recursively in subdirectories) new links in the target
2186 directory or whether would you like to copy their content.
2188 Dive into subdirs tells what to do if in the target
2189 directory exists a directory with the same name as the
2190 file/directory being copied. The default action is to copy
2191 it's content into that directory, by enabling this
2192 you can copy the source directory into that directory.
2193 Perhaps an example will help:
2195 You want to copy content of a directory foo to /bla/foo,
2196 which is an already existing directory. Normally (when
2197 Dive is not set), mc would copy it exactly into /bla/foo.
2198 By enabling this option you will copy the content into /bla/foo/foo,
2199 because the directory already exists.
2201 Preserve attributes tells whether to preserve the original files'
2202 permissions, timestamps and if you are root whether to preserve
2203 the original files' UID and GID. If this option is not set the current
2204 value of the umask will be respected.
2206 .B "Use shell patterns on"
2208 When the shell patterns option is on you can use the '*' and '?'
2209 wildcards in the source mask. They work like they do in the shell. In
2210 the target mask only the '*' and '\\<digit>' wildcards are allowed. The
2211 first '*' wildcard in the target mask corresponds to the first
2212 wildcard group in the source mask, the second '*' corresponds to the
2213 second group and so on. The '\\1' wildcard corresponds to the first
2214 wildcard group in the source mask, the '\\2' wildcard corresponds to
2215 the second group and so on all the way up to '\\9'. The '\\0' wildcard
2216 is the whole filename of the source file.
2218 Two examples:
2220 If the source mask is "*.tar.gz", the destination is "/bla/*.tgz" and the
2221 file to be copied is "foo.tar.gz", the copy will be "foo.tgz" in "/bla".
2223 Let's suppose you want to swap basename and extension so that "file.c"
2224 will become "c.file" and so on. The source mask for this is "*.*" and
2225 the destination is "\\2.\\1".
2227 .B "Use shell patterns off"
2229 When the shell patterns option is off the MC doesn't do automatic
2230 grouping anymore. You must use '\\(...\\)' expressions in the source
2231 mask to specify meaning for the wildcards in the target mask. This is
2232 more flexible but also requires more typing. Otherwise target masks
2233 are similar to the situation when the shell patterns option is on.
2235 Two examples:
2237 If the source mask is "^\\(.*\\)\\.tar\\.gz$", the destination is
2238 "/bla/*.tgz" and the file to be copied is "foo.tar.gz", the copy
2239 will be "/bla/foo.tgz".
2241 Let's suppose you want to swap basename and extension so that "file.c"
2242 will become "c.file" and so on. The source mask for this is
2243 "^\\(.*\\)\\.\\(.*\\)$" and the destination is "\\2.\\1".
2245 .B "Case Conversions"
2247 You can also change the case of the filenames.  If you use '\\u'
2248 or '\\l' in the target mask, the next character will be converted to
2249 uppercase or lowercase correspondingly.
2251 If you use '\\U' or '\\L' in the target mask, the next characters will
2252 be converted to uppercase or lowercase correspondingly up to the
2253 next '\\E' or next '\\U', '\\L' or the end of the file name.
2255 The '\\u' and '\\l' are stronger than '\\U' and '\\L'.
2257 For example, if the source mask is '*' (shell patterns on) or '^\\(.*\\)$'
2258 (shell patterns off) and the target mask is '\\L\\u*' the file names
2259 will be converted to have initial upper case and otherwise lower case.
2261 You can also use '\\' as a quote character. For example, '\\\\' is
2262 a backslash and '\\*' is an asterisk.
2263 .\"NODE "Internal File Viewer"
2264 .SH "Internal File Viewer"
2265 The internal file viewer provides two display modes: ASCII and hex.
2266 To toggle between modes, use the F4 key.  If you have the GNU gzip
2267 program installed, it will be used to automatically decompress the
2268 files on demand.
2270 The viewer will try to use the best method provided by your system or
2271 the file type to display the information.  The internal file viewer
2272 will interpret some string sequences to set the bold and underline
2273 attributes, thus making a pretty display of your files.
2275 When in hex mode, the search function accepts text in quotes and
2276 constant numbers.  Text in quotes is matched exactly after removing
2277 the quotes.  Each number matches one byte.  You can mix quoted text
2278 with constants like this:
2281 "String" -1 0xBB 012 "more text"
2284 Note that 012 is an octal number.  -1 is converted to 0xFF.
2286 Some internal details about the viewer: On systems that provide the
2287 mmap(2) system call, the program maps the file instead of loading it;
2288 if the system does not provide the mmap(2) system call or the file
2289 matches an action that requires a filter, then the viewer will use
2290 it's growing buffers, thus loading only those parts of the file that
2291 you actually access (this includes compressed files).
2293 Here is a listing of the actions associated with each key that the
2294 Midnight Commander handles in the internal file viewer.
2296 .B F1
2297 Invoke the builtin hypertext help viewer.
2299 .B F2
2300 Toggle the wrap mode.
2302 .B F4
2303 Toggle the hex mode.
2305 .B F5
2306 Goto line.  This will prompt you for a line number and will display
2307 that line.
2309 .B F6, /.
2310 Regular expression search.
2312 .B ?,
2313 Reverse regular expression search.
2315 .B F7
2316 Normal search / hex mode search.
2318 .B C-s, F17, n.
2319 Start normal search if there was no previous search expression else
2320 find next match.
2322 .B C-r.
2323 Start reverse search if there was no previous search expression else
2324 find next match.
2326 .B F8
2327 Toggle Raw/Parsed mode: This will show the file as found on disk or if
2328 a processing filter has been specified in the mc.ext file, then the
2329 output from the filter. Current mode is always the other than written
2330 on the button label, since on the button is the mode which you enter
2331 by that key.
2333 .B F9
2334 Toggle the format/unformat mode: when format mode is on the viewer
2335 will interpret some string sequences to show bold and underline with
2336 different colors. Also, on button label is the other mode than current.
2338 .B F10, Esc.
2339 Exit the internal file viewer.
2341 .B next-page, space, C-v.
2342 Scroll one page forward.
2344 .B prev-page, M-v, C-b, backspace.
2345 Scroll one page backward.
2347 .B down-key
2348 Scroll one line forward.
2350 .B up-key
2351 Scroll one line backward.
2353 .B C-l
2354 Refresh the screen.
2356 .B C-o
2357 Switch to the subshell and show the command screen.
2359 .B !
2360 Like C-o, but run a new shell if the subshell is not running.
2362 .B "[n] m"
2363 Set the mark n.
2365 .B "[n] r"
2366 Jump to the mark n.
2368 .B C-f
2369 Jump to the next file.
2371 .B C-b
2372 Jump to the previous file.
2374 .B M-r
2375 Toggle the ruler.
2377 It's possible to instruct the file viewer how to display a file, look
2378 at the
2379 .\"LINK2"
2380 Extension File Edit section
2381 .\"Extension File Edit"
2382 .\"NODE "Internal File Editor"
2383 .SH "Internal File Editor"
2384 The internal file editor provides most of the features of
2385 common full screen editors. It is invoked using
2386 .B F4
2387 provided the
2388 .I use_internal_edit
2389 option is set in the initialization file. It has an extendable file size
2390 limit of sixteen megabytes and edits binary files flawlessly.
2392 The features it presently supports are: Block
2393 copy, move, delete, cut and paste;
2394 .IR "key for key undo" ;
2395 pull-down menus; file insertion; macro definition; regular expression
2396 search and replace (and our own scanf-printf search and
2397 replace); shift-arrow MSW-MAC text highlighting (for the
2398 linux console only); insert-overwrite toggle; and an option
2399 to pipe text blocks through shell commands like indent.
2401 The editor is very easy to use and requires no tutoring.
2402 To see what keys do what, just consult the appropriate
2403 pull-down menu. Other keys are: Shift movement
2404 keys do text highlighting.
2405 .B Ctrl-Ins
2406 copies to the file
2407 .B cooledit.clip
2409 .B Shift-Ins
2410 pastes from cooledit.clip.
2411 .B Shift-Del
2412 cuts to
2413 .BR cooledit.clip ,
2415 .B Ctrl-Del
2416 deletes highlighted text. Mouse highlighting also works, and you
2417 can override the mouse as usual by holding down the shift key
2418 while dragging the mouse to let normal terminal mouse highlighting
2419 work.
2421 To define a macro, press
2422 .B Ctrl-R
2423 and then type out the key
2424 strokes you want to be executed. Press
2425 .B Ctrl-R
2426 again when finished. You can then assign the macro to any key you
2427 like by pressing that key. The macro is executed when you press
2428 .B Ctrl-A
2429 and then the assigned key. The macro is also executed if
2430 you press Meta, Ctrl, or Esc and the assigned key, provided that the
2431 key is not used for any other function. Once defined, the macro
2432 commands go into the file
2433 .B .mc/cedit/cooledit.macros
2434 in your home directory. You can delete a macro by deleting the
2435 appropriate line in this file.
2437 .B F19
2438 will format the currently highlighted block (plain text or
2439 .B C
2441 .B C++
2442 code or another). This is controlled by the
2443 file
2444 .B @prefix@/share/mc/edit.indent.rc
2445 which is copied to
2446 .B .mc/cedit/edit.indent.rc
2447 in your home directory the first time you use it.
2449 You can use scanf search and replace to search and replace
2450 a C format string. First take a look at the
2451 .B sscanf
2453 .B sprintf
2454 man pages to see what a format string
2455 is and how it works. An example is as follows: Suppose you want
2456 to replace all occurrences of say, an open bracket, three
2457 comma separated numbers, and a close bracket, with the
2458 word
2459 .IR apples ,
2460 the third number, the word
2461 .I oranges
2462 and then the second number, I would fill in the Replace dialog
2463 box as follows:
2466  Enter search string
2467 (%d,%d,%d)
2468  Enter replace string
2469 apples %d oranges %d
2470  Enter replacement argument order
2474 The last line specifies that the third and then the second
2475 number are to be used in place of the first and second.
2477 It is advisable to use this feature with Prompt on replace on, because
2478 a match is thought to be found whenever the number of arguments found
2479 matches the number given, which is not always a real match. Scanf also
2480 treats whitespace as being elastic.  Note that the scanf format % is
2481 very useful for scanning strings, and whitespace.
2483 The editor also displays non-us characters (160+). When editing
2484 binary files, you should set
2485 .B display bits
2486 to 7 bits in the options menu to keep the spacing clean.
2487 .\"NODE "Completion"
2488 .SH "Completion"
2489 Let the Midnight Commander type for you.
2491 Attempt to perform completion on the text before current position. MC
2492 attempts completion treating the text as variable (if the text begins with
2493 .BR $ ),
2494 username (if the text begins with
2495 .BR ~ ),
2496 hostname (if the text begins with
2497 .BR @ )
2498 or command (if you are on the command line in the
2499 position where you might type a command, possible completions then include
2500 shell reserved words and shell builtin commands as well) in turn. If none
2501 of these produces a match, filename completion is attempted.
2503 Filename, username, variable and hostname completion works on all input
2504 lines, command completion is command line specific.
2505 If the completion is ambiguous (there are more different possibilities),
2506 MC beeps and the following action depends on the setting of the
2507 .I Complete: show all
2508 option in the
2509 .\"LINK2"
2510 Configuration
2511 .\"Configuration"
2512 dialog. If it is enabled, a list of all
2513 possibilities pops up next to the current position and you can select with
2514 the arrow keys and
2515 .B Enter
2516 the correct entry. You can also type the first letters in which the
2517 possibilities differ to move to a subset of all possibilities and complete
2518 as much as possible. If you press
2519 .B M-Tab
2520 again, only the subset will be shown in the listbox, otherwise the first
2521 item which matches all the previous characters will be highlighted. As soon
2522 as there is no ambiguity, dialog disappears, but you can hide it by
2523 canceling keys
2524 .B Esc,
2525 .B F10
2526 and left and right arrow keys. If
2527 .\"LINK2"
2528 Complete: show all
2529 .\"Configuration"
2530 is disabled, the dialog pops up only if you press
2531 .B M-Tab
2532 for the second time, for the first time MC just beeps.
2533 .\"NODE "Virtual File System"
2534 .SH "Virtual File System"
2535 The Midnight Commander is provided with a code layer to access the
2536 file system; this code layer is known as the virtual file system
2537 switch.  The virtual file system switch allows the Midnight Commander
2538 to manipulate files not located on the Unix file system.
2540 Currently the Midnight Commander is packaged with some Virtual File
2541 Systems (VFS): the local file system, used for accessing the regular
2542 Unix file system; the ftpfs, used to manipulate files on remote
2543 systems with the FTP protocol; the tarfs, used to manipulate tar and
2544 compressed tar files; the undelfs, used to recover deleted files on
2545 ext2 file systems (the default file system for Linux systems), fish
2546 (for manipulating files over shell connections such as rsh and ssh) and
2547 finally the mcfs (Midnight Commander file system), a network based
2548 file system.  If the code was compiled with smbfs support, you can
2549 manipulate files on remote systems with the SMB (CIFS) protocol.
2551 The VFS switch code will interpret all of the path names used and will
2552 forward them to the correct file system, the formats used for each one
2553 of the file systems is described later in their own section.
2554 .\"NODE "  FTP File System"
2555 .SH "  FTP File System"
2556 The ftpfs allows you to manipulate files on remote machines, to
2557 actually use it, you may try to use the panel command FTP link
2558 (accessible from the menubar) or you may directly change your current
2559 directory to it using the cd command to a path name that looks like this:
2561 .I /#ftp:[!][user[:pass]@]machine[:port][remote-dir]
2564 .I user, port
2566 .I remote-dir
2567 elements are optional.  If you specify the
2568 .I user
2569 element, then the Midnight Commander will try to logon on the remote
2570 machine as that user, otherwise it will use your login name.  The
2571 optional
2572 .I pass
2573 element, if present is the password used for the connection.  This is not
2574 recommended (nor keeping the password in your hotlist, unless you set the
2575 appropriate permissions there, and even then it may not be entirely safe).
2577 Examples:
2580     /#ftp:ftp.nuclecu.unam.mx/linux/local
2581     /#ftp:tsx-11.mit.edu/pub/linux/packages
2582     /#ftp:!behind.firewall.edu/pub
2583     /#ftp:guest@remote-host.com:40/pub
2584     /#ftp:miguel:xxx@server/pub
2587 To connect to sites behind a firewall, you will need to use the prefix
2588 /#ftp:! (i.e. add a bang character before the hostname) to make the
2589 Midnight Commander use a proxy host for doing the ftp transfer. You can
2590 define the proxy host in the
2591 .\"LINK2"
2592 Virtual File System
2593 .\"Virtual FS"
2594 dialog box.
2596 Another option to set is the
2597 .I Always use ftp proxy
2598 option in the
2599 .\"LINK2"
2600 Virtual File System
2601 .\"Virtual FS"
2602 dialog box.  This will configure the program
2603 to always use the proxy host.  If this variable is set, the program
2604 will do two things: consult the @prefix@/share/mc/mc.no_proxy file for
2605 lines containing host names that are local (if the host name starts
2606 with a dot, it is assumed to be a domain) and to assume that any
2607 hostnames without dots in their names are directly accessible.
2609 If you are using the ftpfs code with a filtering packet router that
2610 does not allow you to use the regular mode of opening files, you may
2611 want to force the program to use the passive-open mode.  To use this,
2612 set the ftpfs_use_passive_connections option in the initialization file.
2614 The Midnight Commander keeps the directory listing in a cache.  The cache
2615 expire time is configurable in the
2616 .\"LINK2"
2617 Virtual File System
2618 .\"Virtual FS"
2619 dialog box.  This has the funny behavior that even if you make changes to a
2620 directory, they will not be reflected in the directory listing until you
2621 force a cache reload with the C-r key.  This is a feature (when you think
2622 it's a bug, think about manipulating files on the other side of the Atlantic
2623 with ftpfs).
2624 .\"NODE "  Tar File System"
2625 .SH "  Tar File System"
2626 The tar file system provides you with read-only access to your tar
2627 files and compressed tar files by using the chdir command.  To change
2628 your directory to a tar file, you change your current directory to the
2629 tar file by using the following syntax:
2631 .I /filename.tar#utar/[dir-inside-tar]
2633 The mc.ext file already provides a shortcut for tar files, this means
2634 that usually you just point to a tar file and press return to enter
2635 into the tar file, see the
2636 .\"LINK2"
2637 Extension File Edit
2638 .\"Extension File Edit"
2639 section for details on how this is done.
2641 Examples:
2644     mc-3.0.tar.gz#utar/mc-3.0/vfs
2645     /ftp/GCC/gcc-2.7.0.tar#utar
2648 The latter specifies the full path of the tar archive.
2649 .\"NODE "  FIle transfer over SHell filesystem"
2650 .SH "  FIle transfer over SHell filesystem"
2651 The fish file system is a network based file system that allows you to
2652 manipulate the files in a remote machine as if they were local. To use
2653 this, the other side has to either run fish server, or has to have
2654 bash-compatible shell.
2656 To connect to a remote machine, you just need to chdir
2657 into a special directory which name is in the following
2658 format:
2661 /#sh:[user@]machine[:options]/[remote-dir]
2664 .I user,
2665 .I options
2667 .I remote-dir
2668 elements are optional. If
2669 you specify the
2670 .I user
2671 element then the Midnight Commander
2672 will try to logon on the remote machine as that user,
2673 otherwise it will use your login name.
2676 .I options
2677 are 'C' - use compression and 'rsh' use rsh instead
2678 of ssh. If the
2679 .I remote-dir
2680 element is present, your current directory on the remote machine will
2681 be set to this one.
2683 Examples:
2686     /#sh:onlyrsh.mx:r/linux/local
2687     /#sh:joe@want.compression.edu:C/private
2688     /#sh:joe@noncompressed.ssh.edu/private
2690 .\"NODE "  Network File System"
2691 .SH "  Network File System"
2692 The Midnight Commander file system is a network base file system that
2693 allows you to manipulate the files in a remote machine as if they
2694 were local.  To use this, the remote machine must be running the
2695 mcserv(8) server program.
2697 To connect to a remote machine, you just need to chdir into a special
2698 directory which name is in the following format:
2700 .I /#mc:[user@]machine[:port][remote-dir]
2703 .I user, port
2705 .I remote-dir
2706 elements are optional.  If you specify the
2707 .I user
2708 element then the Midnight Commander will try to logon on the remote
2709 machine as that user, otherwise it will use your login name.
2712 .I port
2713 element is used when the remote machine running on a special port
2714 (see the mcserv(8) manual page for more information about ports);
2715 finally, if the
2716 .I remote-dir
2717 element is present, your current directory on the remote machine will
2718 be set to this one.
2720 Examples:
2723     /#mc:ftp.nuclecu.unam.mx/linux/local
2724     /#mc:joe@foo.edu:11321/private
2726 .\"NODE "  Undelete File System"
2727 .SH "  Undelete File System"
2728 On Linux systems, if you asked configure to use the ext2fs undelete
2729 facilities, you will have the undelete file system available.
2730 Recovery of deleted files is only available on ext2 file systems.  The
2731 undelete file system is just an interface to the ext2fs library to:
2732 retrieve all of the deleted files names on an ext2fs and provides and
2733 to extract the selected files into a regular partition.
2735 To use this file system, you have to chdir into the special file name
2736 formed by the "/#undel" prefix and the file name where the actual
2737 file system resides.
2739 For example, to recover deleted files on the second partition of the
2740 first SCSI disk on Linux, you would use the following path name:
2743     /#undel:sda2
2746 It may take a while for the undelfs to load the required information
2747 before you start browsing files there.
2748 .\"NODE "  SMB File System"
2749 .SH "  SMB File System"
2750 The smbfs allows you to manipulate files on remote machines with SMB
2751 (or CIFS) protocol.  These include Windows for Workgroups,
2752 Windows 9x/ME/XP, Windows NT, Windows 2000 and Samba.
2753 To actually use it, you may try to use the panel command "SMB link..."
2754 (accessible from the menubar) or you may directly change your current
2755 directory to it using the cd command to a path name that looks like this:
2757 .I /#smb:[user@]machine[/service][/remote-dir]
2760 .I user, service
2762 .I remote-dir
2763 elements are optional.
2765 .I user, domain
2767 .I password
2768 can be specified in input dialog.
2770 Examples:
2773     /#smb:machine/Share
2774     /#smb:other_machine
2775     /#smb:guest@machine/Public/Irlex
2777 .\"NODE "Colors"
2778 .SH "Colors"
2779 The Midnight Commander will try to detect if your terminal supports
2780 color using the terminal database and your terminal name.  Sometimes
2781 it gets confused, so you may force color mode or disable color mode
2782 using the -c and -b flag respectively.
2784 If the program is compiled with the Slang screen manager instead of
2785 ncurses, it will also check the variable
2786 .B COLORTERM,
2787 if it is set, it has the same effect as the -c flag.
2789 You may specify terminals that always force color mode
2790 by adding the
2791 .I color_terminals
2792 variable to the Colors section of the initialization file.  This will
2793 prevent the Midnight Commander from trying to detect if your terminal
2794 supports color.  Example:
2797 [Colors]
2798 color_terminals=linux,xterm
2799 color_terminals=terminal-name1,terminal-name2...
2802 The program can be compiled with both ncurses and slang, ncurses does
2803 not provide a way to force color mode: ncurses uses just the
2804 information in the terminal database.
2806 The Midnight Commander provides a way to change the default colors.
2807 Currently the colors are configured using the environment variable
2808 .B MC_COLOR_TABLE
2809 or the Colors section in the initialization file.
2811 In the Colors section, the default color map is loaded from the
2812 .I base_color
2813 variable.  You can specify an alternate color map for a terminal by
2814 using the terminal name as the key in this section.  Example:
2817 [Colors]
2818 base_color=
2819 xterm=menu=magenta:marked=,magenta:markselect=,red
2822 The format for the color definition is:
2825   <keyword>=<foregroundcolor>,<backgroundcolor>:<keyword>= ...
2828 The colors are optional, and the keywords are: normal, selected, marked,
2829 markselect, errors, input, reverse, gauge.  Menu colors are: menu,
2830 menusel, menuhot, menuhotsel.  Dialog colors are: dnormal, dfocus,
2831 dhotnormal, dhotfocus.  Help colors are: helpnormal, helpitalic,
2832 helpbold, helplink, helpslink.  Viewer color is: viewunderline.  Special
2833 highlighting colors are: executable, directory, link, stalelink, device,
2834 special, core.  Editor colors are: editnormal, editbold, editmarked.
2836 .I input
2837 determines the color of input lines used in query dialogs.
2839 .I gauge
2840 determines the color of the filled part of the progress bar
2841 (gauge), which shows how many percent of files were copied
2842 etc. in a graphical way.
2844 The dialog boxes use the following colors:
2845 .I dnormal
2846 is used for the normal text,
2847 .I dfocus
2848 is the color used for the currently selected component,
2849 .I dhotnormal
2850 is the color used to differentiate the hotkey color in normal
2851 components, whereas the
2852 .I dhotfocus
2853 color is used for the highlighted color in the currently selected
2854 component.
2856 Menus use the same scheme but uses the menu, menusel, menuhot and
2857 menuhotsel tags instead.
2859 Help uses the following colors:
2860 .I helpnormal
2861 is used for normal text,
2862 .I helpitalic
2863 is used for text which is emphasized in italic in the manual page,
2864 .I helpbold
2865 is used for text which is emphasized in bold in the manual page,
2866 .I helplink
2867 is used for not selected hyperlinks and
2868 .I helpslink
2869 is used for selected hyperlink.
2871 Special highlight colors determine how files are displayed
2872 when file highlighting is enabled (see the section on
2873 .\"LINK2"
2874 Layout\&).
2875 .\"Layout"
2876 .I directory
2877 is used for directories or symbolic links to directories;
2878 .I executable
2879 for executable files;
2880 .I link
2881 is used for symbolic links which are neither stale nor linked
2882 to a directory;
2883 .I stalelink
2884 is used for stale symbolic links;
2885 .I device
2886 - character and block devices;
2887 .I special
2888 is used for special files, such as pipes and sockets;
2889 .I core
2890 is for core files.
2892 The possible colors are: black, gray, red, brightred, green,
2893 brightgreen, brown, yellow, blue, brightblue, magenta, brightmagenta,
2894 cyan, brightcyan, lightgray and white. And there is a special keyword
2895 for transparent background. It is 'default'. The 'default' can only be
2896 used for background color. Example:
2899 [Colors]
2900 base_color=normal=white,default:marked=magenta,default
2902 .\"NODE "Special Settings"
2903 .SH "Special Settings"
2904 Most of the settings of the Midnight Commander can be changed from the
2905 menus. However, there are a small number of settings which can only be
2906 changed by editing the setup file.
2908 These variables may be set in your ~/.mc/ini file:
2910 .I clear_before_exec
2911 By default the Midnight Commander clears the screen before executing a
2912 command. If you would prefer to see the output of the command at the
2913 bottom of the screen, edit your ~/.mc/ini file and change the value of
2914 the field clear_before_exec to 0.
2916 .I confirm_view_dir
2917 If you press F3 on a directory, normally MC enters that directory. If
2918 this flag is set to 1, then MC will ask for confirmation before
2919 changing the directory if you have files tagged.
2921 .I ftpfs_retry_seconds
2922 This value is the number of seconds the Midnight Commander will wait
2923 before attempting to reconnect to an ftp server that has denied the login.
2924 If the value is zero, the login will no be retried.
2926 .I ftpfs_use_passive_connections
2927 This option is off by default.  This makes the ftpfs code use the
2928 passive open mode for transferring files.  This is used by people that
2929 are behind a filtering packet router.  This option just works if you
2930 are not using an ftp proxy.
2932 .I max_dirt_limit
2933 Specifies how many screen updates can be skipped at most in the internal
2934 file viewer.  Normally this value is not significant, because the code
2935 automatically adjusts the number of updates to skip according to the rate
2936 of incoming keystrokes.  However, on very slow machines or terminals
2937 with a fast keyboard auto repeat, a big value can make screen updates
2938 too jumpy.
2940 It seems that setting max_dirt_limit to 10 causes the best behavior,
2941 and that is the default value.
2943 .I mouse_move_pages
2944 Controls whenever scrolling with the mouse is done by pages or line by
2945 line on the panels.
2947 .I mouse_move_pages_viewer
2948 Controls if scrolling with the mouse is done by pages or line by line
2949 on the internal file viewer.
2951 .I old_esc_mode
2952 By default the Midnight Commander treats the ESC key as a key prefix
2953 (old_esc_mode=0), if you set this option (old_esc_mode=1), then the
2954 ESC key will act as a prefix key for one second, and if no extra keys
2955 have arrived, then the ESC key is interpreted as a cancel key (ESC
2956 ESC).
2958 .I only_leading_plus_minus
2959 Allow special treatment for '+', '-', '*' in the command line (select,
2960 unselect, reverse selection) only if the command line is empty.  You
2961 don't need to quote those characters in the middle of the command line.
2962 On the other hand, you cannot use them to change selection when the
2963 command line is not empty.
2965 .I panel_scroll_pages
2966 If set (the default), panel will scroll by half the display when the
2967 cursor reaches the end or the beginning of the panel, otherwise it
2968 will just scroll a file at a time.
2970 .I show_output_starts_shell
2971 This variable only works if you are not using the subshell support.
2972 When you use the C-o keystroke to go back to the user screen, if this
2973 one is set, you will get a fresh shell.  Otherwise, pressing any key
2974 will bring you back to the Midnight Commander.
2976 .I torben_fj_mode
2977 If this flag is set, then the home and end keys will work slightly
2978 different on the panels, instead of moving the selection to the first
2979 and last files in the panels, they will act as follows:
2981 The home key will: Go up to the middle line, if below it; else go to
2982 the top line unless it is already on the top line, in this case it
2983 will go to the first file in the panel.
2985 The end key has a similar behavior: Go down to the middle line, if
2986 over it; else go to the bottom line unless you already are at the
2987 bottom line, in such case it will move the selection to the last file
2988 name in the panel.
2990 .I use_file_to_guess_type
2991 If this variable is on (the default) it will spawn the file command to
2992 match the file types listed on the
2993 .\"LINK2"
2994 mc.ext file\&.
2995 .\"Extension File Edit"
2997 .I xterm_mode
2998 If this variable is on (default is off) when you browse the file
2999 system on a Tree panel, it will automatically reload the other panel
3000 with the contents of the selected directory.
3001 .\"NODE "Terminal databases"
3002 .SH "Terminal databases"
3003 The Midnight Commander provides a way to fix your system terminal
3004 database without requiring root privileges.  The Midnight Commander
3005 searches in the system initialization file (the mc.lib file located in
3006 the Midnight Commander library directory) and in the ~/.mc/ini file
3007 for the section "terminal:your-terminal-name" and then for the section
3008 "terminal:general", each line of the section contains a key symbol
3009 that you want to define, followed by an equal sign and the definition
3010 for the key.  You can use the special \\e form to represent the escape
3011 character and the ^x to represent the control-x character.
3013 The possible key symbols are:
3016 f0 to f20     Function keys f0-f20
3017 bs            backspace
3018 home          home key
3019 end           end key
3020 up            up arrow key
3021 down          down arrow key
3022 left          left arrow key
3023 right         right arrow key
3024 pgdn          page down key
3025 pgup          page up key
3026 insert        the insert character
3027 delete        the delete character
3028 complete      to do completion
3031 For example, to define the key insert to be the Escape + [ + O + p, you
3032 set this in the ini file:
3035 insert=\\e[Op
3039 .I complete
3040 key symbol represents the escape sequences used to invoke the
3041 completion process, this is invoked with M-tab, but you can define
3042 other keys to do the same work (on those keyboard with tons of nice
3043 and unused keys everywhere).
3044 .SH ""
3045 .\"NODE "FILES"
3046 .SH "FILES"
3047 The program will retrieve all of its information relative to the
3048 MC_DATADIR environment variable, if this variable is not set, then it will
3049 fall back to the @prefix@/share/mc directory.
3051 .I @prefix@/share/mc/mc.hlp
3053 The help file for the program.
3055 .I @prefix@/share/mc/mc.ext
3057 The default system-wide extensions file.
3059 .I ~/.mc/bindings
3061 User's own extension, view configuration and edit configuration
3062 file.  They override the contents of the system wide files if present.
3064 .I @prefix@/share/mc/mc.ini
3066 The default system-wide setup for the Midnight Commander, used only if
3067 the user doesn't have his own ~/.mc/ini file.
3069 .I @prefix@/share/mc/mc.lib
3071 Global settings for the Midnight Commander.  Settings in this file
3072 affect all users, whether they have ~/.mc/ini or not.  Currently, only
3073 .\"LINK2"
3074 terminal settings
3075 .\"Terminal databases"
3076 are loaded from mc.lib.
3078 .I ~/.mc/ini
3080 User's own setup. If this file is present then the setup is loaded
3081 from here instead of the system-wide startup file.
3083 .I @prefix@/share/mc/mc.hint
3085 This file contains the hints (cookies) displayed by the program.
3087 .I @prefix@/share/mc/mc.menu
3089 This file contains the default system-wide applications menu.
3091 .I ~/.mc/menu
3093 User's own application menu. If this file is present it is used
3094 instead of the system-wide applications menu.
3096 .I ~/.mc/Tree
3098 The directory list for the directory tree and tree view features.
3100 .I ./.mc.menu
3102 Local user-defined menu. If this file
3103 is present it is used instead of the home or system-wide
3104 applications menu.
3105 .\"SKIP_SECTION"
3106 .SH "LICENSE"
3107 This program is distributed under the terms of the GNU General Public
3108 License as published by the Free Software Foundation. See the built-in
3109 help for details on the License and the lack of warranty.
3110 .\"NODE "AVAILABILITY"
3111 .SH "AVAILABILITY"
3112 The latest version of this program can be found at
3113 ftp://ftp.gnome.org/mirror/gnome.org/stable/sources/mc/ and on the
3114 mirrors listed on the GNOME site http://www.gnome.org/.
3115 .\"NODE "SEE ALSO"
3116 .SH "SEE ALSO"
3117 ed(1), gpm(1), mcserv(8), terminfo(1), view(1), sh(1), bash(1),
3118 tcsh(1), zsh(1).
3121 The Midnight Commander page on the World Wide Web:
3122         http://www.ibiblio.org/mc/
3124 .\"NODE "AUTHORS"
3125 .SH "AUTHORS"
3126 Miguel de Icaza (miguel@ximian.com), Janne Kukonlehto
3127 (jtklehto@paju.oulu.fi), Radek Doulik (rodo@ucw.cz), Fred
3128 Leeflang (fredl@nebula.ow.org), Dugan Porter (dugan@b011.eunet.es),
3129 Jakub Jelinek (jj@sunsite.mff.cuni.cz), Ching Hui
3130 (mr854307@cs.nthu.edu.tw), Andrej Borsenkow (borsenkow.msk@sni.de),
3131 Norbert Warmuth (nwarmuth@privat.circular.de),
3132 Mauricio Plaza (mok@roxanne.nuclecu.unam.mx), Paul Sheer
3133 (psheer@icon.co.za), Pavel Machek (pavel@ucw.cz) and Pavel Roskin
3134 (proski@gnu.org) are the developers of this package.
3135 Alessandro Rubini (rubini@ipvvis.unipv.it) has been especially helpful
3136 debugging and enhancing the program's mouse support, John Davis
3137 (davis@space.mit.edu) also made his S-Lang library available to us
3138 under the GPL and answered my questions about it, and the following
3139 people have contributed code and many bug fixes (in alphabetical
3140 order):
3142 Adam Tla/lka (atlka@sunrise.pg.gda.pl),
3143 alex@bcs.zp.ua (Alex I. Tkachenko), Antonio Palama,
3144 DOS port (palama@posso.dm.unipi.it), Erwin van Eijk
3145 (wabbit@corner.iaf.nl), Gerd Knorr (kraxel@cs.tu-berlin.de),
3146 Jean-Daniel Luiset (luiset@cih.hcuge.ch), Jon Stevens
3147 (root@dolphin.csudh.edu), Juan Francisco Grigera, Win32 port
3148 (j-grigera@usa.net), Juan Jose Ciarlante (jjciarla@raiz.uncu.edu.ar),
3149 Ilya Rybkin (rybkin@rouge.phys.lsu.edu), Marcelo Roccasalva
3150 (mfroccas@raiz.uncu.edu.ar), Massimo Fontanelli (MC8737@mclink.it),
3151 Sergey Ya. Korshunoff (root@seyko.msk.su), Thomas Pundt
3152 (pundtt@math.uni-muenster.de), Timur Bakeyev
3153 (timur@goff.comtat.kazan.su), Tomasz Cholewo
3154 (tjchol01@mecca.spd.louisville.edu), Torben Fjerdingstad
3155 (torben.fjerdingstad@uni-c.dk), Vadim Sinolitis (vvs@nsrd.npi.msu.su)
3156 and Wim Osterholt (wim@djo.wtm.tudelft.nl).
3157 .\"NODE "BUGS"
3158 .SH "BUGS"
3159 See the file TODO in the distribution for information on what
3160 remains to be done.
3162 If you want to report a problem with the program, please send mail to
3163 this address: mc-devel@gnome.org.
3165 Provide a detailed description of the bug, the version of the program
3166 you are running (mc -V display this information), the operating system
3167 you are running the program on and if the program crashes, we would
3168 appreciate a stack trace.