fixed man and help
[midnight-commander.git] / doc / man / mc.1.in
blob7a31f06357711659160e576493eab99688c1c752
1 .\"TOPICS "Topics:"
2 .TH MC 1 "August 2009" "MC Version 4.7.0\-pre1" "GNU Midnight Commander"
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]] [\-e [file]] [\-v file]
10 .\"NODE "DESCRIPTION"
11 .SH "DESCRIPTION"
12 GNU 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, \-\-stickchars
19 Disable usage of graphic characters for line drawing.
20 .TP
21 .I \-b, \-\-nocolor
22 Force black and white display.
23 .TP
24 .I \-c, \-\-color
25 Force color mode, please check the section
26 .\"LINK2"
27 Colors
28 .\"Colors"
29 for more information.
30 .TP
31 .I \-C arg, \-\-colors=arg
32 Specify a different color set in the command line.  The format of arg is
33 documented in the
34 .\"LINK2"
35 Colors
36 .\"Colors"
37 section.
38 .TP
39 .I \-S arg
40 Specify a name of skin in the command line. Technology of skins is
41 documented in the
42 .\"LINK2"
43 Skins\&.
44 .\"Skins"
45 section.
46 .TP
47 .I \-d, \-\-nomouse
48 Disable mouse support.
49 .TP
50 .I \-e [file], \-\-edit[=file]
51 Start the internal editor.  If the file is specified, open it on
52 startup.  See also
53 .BR "mcedit (1)" .
54 .TP
55 .I \-f, \-\-datadir
56 Display the compiled\-in search paths for Midnight Commander files.
57 .TP
58 .I \-k, \-\-resetsoft
59 Reset softkeys to their default from the termcap/terminfo
60 database. Only useful on HP terminals when the function keys don't work.
61 .TP
62 .I \-K file
63 Specify a name of keymap file in the command line.
64 .TP
65 .I \-l file, \-\-ftplog=file
66 Save the ftpfs dialog with the server in file.
67 .TP
68 .I \-P file, \-\-printwd=file
69 Print the last working directory to the specified file.  This option is
70 not meant to be used directly.  Instead, it's used from a special shell
71 script that automatically changes the current directory of the shell to
72 the last directory the Midnight Commander was in.  Source the file
73 .B @prefix@/share/mc/bin/mc.sh
74 (bash and zsh users) or
75 .B @prefix@/share/mc/bin/mc.csh
76 (tcsh users) respectively to define
77 .B mc
78 as an alias to the appropriate shell script.
79 .TP
80 .I \-s
81 Set alternative mode drawing of frameworks.
82 If the section [Lines] is not filled, the symbol for the pseudographics
83 frame is a space, otherwise the frame characters are taken from follow params.
85 .B You can redefine the following variables:
86 .TP
87 .B lefttop
88 left\-top corner
89 .TP
90 .B righttop
91 right\-top corner
92 .TP
93 .B centertop
94 center-top cross
95 .TP
96 .B centerbottom
97 center\-bottom cross
98 .TP
99 .B leftbottom
100 left\-bottom corner
102 .B rightbottom
103 right\-bottom corner
105 .B leftmiddle
106 left\-middle cross
108 .B rightmiddle
109 right\-middle cross
111 .B centermiddle
112 center cross
114 .B horiz
115 default horizontal line
117 .B vert
118 default vertical line
120 .B thinhoriz
121 thin horizontal line
123 .B thinvert
124 thin vertical line
126 .I \-t, \-\-termcap
127 Used only if the code was compiled with Slang and terminfo: it makes
128 the Midnight Commander use the value of the
129 .B TERMCAP
130 variable for the terminal information instead of the information on
131 the system wide terminal database
133 .I \-u, \-\-nosubshell
134 Disable use of the concurrent shell (only makes sense if the Midnight
135 Commander has been built with concurrent shell support).
137 .I \-U, \-\-subshell
138 Enable use of the concurrent shell support (only makes sense if the
139 Midnight Commander was built with the subshell support set as an
140 optional feature).
142 .I \-v file, \-\-view=file
143 Start the internal viewer to view the specified file.  See also
144 .BR "mcview (1)" .
146 .I \-V, \-\-version
147 Display the version of the program.
149 .I \-x, \-\-xterm
150 Force xterm mode.  Used when running on xterm\-capable terminals (two
151 screen modes, and able to send mouse escape sequences).
153 If specified, the first path name is the directory to show in the
154 selected panel; the second path name is the directory to be shown in
155 the other panel.
156 .\"NODE "Overview"
157 .SH "Overview"
158 The screen of the Midnight Commander is divided into four parts.
159 Almost all of the screen space is taken up by two directory panels.
160 By default, the second line from the bottom of the screen is the
161 shell command line, and the bottom line shows the function key labels.
162 The topmost line is the
163 .\"LINK2"
164 menu bar line\&.
165 .\"Menu Bar"
166 The menu bar line may not be visible, but appears if you click the
167 topmost line with the mouse or press the F9 key.
169 The Midnight Commander provides a view of two directories at the same
170 time. One of the panels is the current panel (a selection bar is in
171 the current panel). Almost all operations take place on the current
172 panel. Some file operations like Rename and Copy by default use the
173 directory of the unselected panel as a destination (don't worry, they
174 always ask you for confirmation first). For more information, see the
175 sections on the
176 .\"LINK2"
177 Directory Panels\&,
178 .\"Directory Panels"
180 .\"LINK2"
181 Left and Right Menus
182 .\"Left and Right Menus"
183 and the
184 .\"LINK2"
185 File Menu\&.
186 .\"File Menu"
188 You can execute system commands from the Midnight Commander by simply
189 typing them. Everything you type will appear on the shell command line,
190 and when you press Enter the Midnight Commander will execute the
191 command line you typed; read the
192 .\"LINK2"
193 Shell Command Line
194 .\"Shell Command Line"
196 .\"LINK2"
197 Input Line Keys
198 .\"Input Line Keys"
199 sections to learn more about the command line.
200 .\"NODE "Mouse Support"
201 .SH "Mouse Support"
202 The Midnight Commander comes with mouse support.  It is activated
203 whenever you are running on an
204 .B xterm(1)
205 terminal (it even works if you take a telnet, ssh or rlogin connection to
206 another machine from the xterm) or if you are running on a Linux
207 console and have the
208 .B gpm
209 mouse server running.
211 When you left click on a file in the directory panels, that file is
212 selected; if you click with the right button, the file is marked (or
213 unmarked, depending on the previous state).
215 Double\-clicking on a file will try to execute the command if it is
216 an executable program; and if the
217 .\"LINK2"
218 extension file
219 .\"Extension File Edit"
220 has a program specified for the file's extension, the specified
221 program is executed.
223 Also, it is possible to execute the commands assigned to the function
224 key labels by clicking on them.
226 The default auto repeat rate for the mouse buttons is 400
227 milliseconds. This may be changed to other values by editing the
228 .\"LINK2"
229 \&~/.mc/ini
230 .\"Save Setup"
231 file and changing the
232 .I mouse_repeat_rate
233 parameter.
235 If you are running the Midnight Commander with the mouse support, you
236 can get the default mouse behavior (cutting and pasting text) by holding
237 down the Shift key.
238 .SH ""
239 .\"NODE "Keys"
240 .SH "Keys"
241 Some commands in the Midnight Commander involve the use of the
242 .I Control
243 (sometimes labeled CTRL or CTL) and the
244 .I Meta
245 (sometimes labeled ALT or even Compose) keys. In this manual we will
246 use the following abbreviations:
248 .B C\-<chr>
249 means hold the Control key while typing the character <chr>.
250 Thus C\-f would be: hold the Control key and type f.
252 .B Alt\-<chr>
253 means hold the Meta or Alt key down while typing <chr>.
254 If there is no Meta or Alt key, type
255 .IR ESC ,
256 release it, then type the character <chr>.
258 .B S\-<chr>
259 means hold the Shift key down while typing <chr>.
261 All input lines in the Midnight Commander use an approximation to
262 the GNU Emacs editor's key bindings (default).
264 You may redefine key bindings. See
265 .\"LINK2"
266 .I redefine hotkey bindings
267 .\"Keys_redefine"
269 for more info. All other key bindings (described in this manual) relative
270 to default behavior.
273 There are many sections which tell about the keys. The following are
274 the most important.
277 .\"LINK2"
278 File Menu
279 .\"File Menu"
280 section documents the keyboard shortcuts for the commands appearing in
281 the File menu. This section includes the function keys. Most of these
282 commands perform some action, usually on the selected file or the
283 tagged files.
286 .\"LINK2"
287 Directory Panels
288 .\"Directory Panels"
289 section documents the keys which select a file or tag files as a
290 target for a later action (the action is usually one from the file
291 menu).
294 .\"LINK2"
295 Shell Command Line
296 .\"Shell Command Line"
297 section list the keys which are used for entering and editing command
298 lines. Most of these copy file names and such from the directory
299 panels to the command line (to avoid excessive typing) or access the
300 command line history.
302 .\"LINK2"
303 Input Line Keys
304 .\"Input Line Keys"
305 are used for editing input lines. This means both the command line and
306 the input lines in the query dialogs.
308 .\"NODE "  Keys_redefine"
309 .SH "  Redefine hotkey bindings"
310 Hotkey bindings may be readed from external file (keymap\-file).
311 A keymap\-file is searched on the following algorithm (to the first one found):
314 1) command line option
315 .BR \-K
316 .BR \<keymap\>
318 .BR \-\-keymap=\<keymap\>
320 2) Environment variable
321 .BR MC_KEYMAP
323 3) In config file parameter
324 .BR keymap
325 in section
326 .BR [Midnight Commander]
328 4) File
329 .BR ~/.mc/mc.keymap
331 5) File
332 .BR @sysconfdir@/mc/mc.keymap
334 6) File
335 .BR @prefix@/share/mc/mc.keymap
337 Command line option, environment variable and parameter in config file may
338 contain the absolute path to the keymap\-file (with the extension \.keymap
339 or without it). Search of keymap\-file will occur in (to the first one found):
342 .BR ~/.mc/
345 .BR @sysconfdir@/mc/
348 .BR @prefix@/share/mc/
350 .\"NODE "  Miscellaneous Keys"
351 .SH "  Miscellaneous Keys"
352 Here are some keys which don't fall into any of the other categories:
354 .B Enter
355 if there is some text in the command line (the one at the bottom of
356 the panels), then that command is executed. If there is no text in the
357 command line then if the selection bar is over a directory the
358 Midnight Commander does a
359 .B chdir(2)
360 to the selected directory and reloads the information on the panel;
361 if the selection is an executable file then it is executed. Finally,
362 if the extension of the selected file name matches one of the
363 extensions in the
364 .\"LINK2"
365 extensions file
366 .\"Extension File Edit"
367 then the corresponding command is executed.
369 .B C\-l
370 repaint all the information in the Midnight Commander.
372 .B C\-x c
373 run the
374 .\"LINK2"
375 Chmod
376 .\"Chmod"
377 command on a file or on the tagged files.
379 .B C\-x o
380 run the
381 .\"LINK2"
382 Chown
383 .\"Chown"
384 command on the current file or on the tagged files.
386 .B C\-x l
387 run the hard link command.
389 .B C\-x s
390 run the absolute symbolic link command.
392 .B C\-x v
393 run the relative symbolic link command. See the
394 .\"LINK2"
395 File Menu
396 .\"File Menu"
397 section for more information about symbolic links.
399 .B C\-x i
400 set the other panel display mode to information.
402 .B C\-x q
403 set the other panel display mode to quick view.
405 .B C\-x !
406 execute the
407 .\"LINK2"
408 External panelize
409 .\"External panelize"
410 command.
412 .B C\-x h
413 run the
414 .\"LINK2"
415 add directory to hotlist
416 .\"Hotlist"
417 command.
419 .B Alt\-!
420 executes the Filtered view command, described in the
421 .\"LINK2"
422 view command\&.
423 .\"Internal File Viewer"
425 .B Alt\-?
426 executes the
427 .\"LINK2"
428 Find file
429 .\"Find File"
430 command.
432 .B Alt\-c
433 pops up the
434 .\"LINK2"
435 quick cd
436 .\"Quick cd"
437 dialog.
439 .B C\-o
440 when the program is being run in the Linux or FreeBSD console or under
441 an xterm, it will show you the output of the previous command.  When ran
442 on the Linux console, the Midnight Commander uses an external program
443 (cons.saver) to handle saving and restoring of information on the
444 screen.
446 When the subshell support is compiled in, you can type C\-o at any time
447 and you will be taken back to the Midnight Commander main screen, to
448 return to your application just type C\-o.  If you have an application
449 suspended by using this trick, you won't be able to execute other
450 programs from the Midnight Commander until you terminate the suspended
451 application.
452 .\"NODE "  Directory Panels"
453 .SH "  Directory Panels"
454 This section lists the keys which operate on the directory panels. If
455 you want to know how to change the appearance of the panels take a
456 look at the section on
457 .\"LINK2"
458 Left and Right Menus\&.
459 .\"Left and Right Menus"
461 .B Tab, C\-i
462 change the current panel. The old other panel becomes the new current
463 panel and the old current panel becomes the new other panel. The
464 selection bar moves from the old current panel to the new current
465 panel.
467 .B Insert, C\-t
468 to tag files you may use the Insert key (the kich1 terminfo sequence).
469 To untag files, just retag a tagged file.
471 .B M\-e
472 to change charset of panel you may use M\-e (Alt\-e).
473 Recoding is made from selected codepage into system codepage. To
474 cancel the recoding you may select "directory up" (..) in active panel.
475 To cancel the charsets in all directories, select "No translation " in
476 the dialog of encodings.
478 .B Alt\-g, Alt\-r, Alt\-j
479 used to select the top file in a panel, the middle file and the bottom one,
480 respectively.
482 .B Alt\-t
483 toggle the current display listing to show the next display listing
484 mode.
485 With this it is possible to quickly switch to brief listing, long
486 listing, user defined listing mode, and back to the default.
488 .B C\-\\\\ (control\-backslash)
489 show the
490 .\"LINK2"
491 directory hotlist
492 .\"Hotlist"
493 and change to the selected directory.
495 .B + \ (plus)
496 this is used to select (tag) a group of files.  The Midnight Commander
497 will prompt for a selection options. When
498 .I Files only
499 checkbox is on, only files will be selected.  If
500 .I Files only
501 is off, as files as directories will be selected.
502 When
503 .I Shell Patterns
504 checkbox is on, the regular expression is much like the filename globbing
505 in the shell (* standing for zero or more characters and ? standing
506 for one character). If
507 .I Shell Patterns
508 is off, then the tagging of files is done with normal regular
509 expressions (see ed (1)). When
510 .I Case sensitive
511 checkbox is on, the selection will be case sensitive characters.
513 .I Case sensitive
514 is off, the case will be ignored.
516 .B \\\\ (backslash)
517 use the "\\" key to unselect a group of files. This is the opposite of
518 the Plus key.
520 .B up\-key, C\-p
521 move the selection bar to the previous entry in the panel.
523 .B down\-key, C\-n
524 move the selection bar to the next entry in the panel.
526 .B home, a1, Alt\-<
527 move the selection bar to the first entry in the panel.
529 .B end, c1, Alt\->
530 move the selection bar to the last entry in the panel.
532 .B next\-page, C\-v
533 move the selection bar one page down.
535 .B prev\-page, Alt\-v
536 move the selection bar one page up.
538 .B Alt\-o
539 If the currently selected file is a directory, load that directory on
540 the other panel and moves the selection to the next file. If the
541 currently selected file is not a directory, load the parent directory
542 on the other panel and moves the selection to the next file.
544 .B Alt\-i
545 make the current directory of the current panel also the current
546 directory of the other panel.  Put the other panel to the listing mode
547 if needed.  If the current panel is panelized, the other panel doesn't
548 become panelized.
550 .B C\-PageUp, C\-PageDown
551 only when supported by the terminal: change to ".." and to the currently
552 selected directory respectively.
554 .B Alt\-y
555 moves to the previous directory in the history, equivalent to clicking
557 .I <
558 with the mouse.
560 .B Alt\-u
561 moves to the next directory in the history, equivalent to clicking the
562 .I >
563 with the mouse.
565 .B Alt\-Shift\-h, Alt\-H
566 displays the directory history, equivalent to depressing the 'v' with
567 the mouse.
568 .\"NODE "  Quick search"
569 .SH "  Quick search"
570 The Quick search mode allows to perform fast file search in file panel.
571 Press
572 .I C\-s
574 .I Alt\-s
575 to start a filename search in the directory listing.
577 When the search is active, the user input will be added to the search string
578 instead of the command line. If the
579 .I Show mini\-status
580 option is enabled the search string is shown on the mini\-status
581 line. When typing, the selection bar will move to the next file
582 starting with the typed letters. The
583 .I Backspace
585 .I DEL
586 keys can be used to correct typing mistakes. If C\-s is pressed
587 again, the next match is searched for.
589 Besides the filename characters, you can also use wildcard
590 characters '*' and '?'.
591 .\"NODE "  Shell Command Line"
592 .SH "  Shell Command Line"
593 This section lists keys which are useful to avoid excessive typing when
594 entering shell commands.
596 .B Alt\-Enter
597 copy the currently selected file name to the command line.
599 .B C\-Enter
600 same a Alt\-Enter.  May not work on remote systems and some terminals.
602 .B C\-Shift\-Enter
603 copy the full path name of the currently selected file to the command
604 line.  May not work on remote systems and some terminals.
606 .B Alt\-Tab
607 does the filename, command, variable, username and hostname
608 .\"LINK2"
609 completion
610 .\"Completion"
611 for you.
613 .B C\-x t, C\-x C\-t
614 copy the tagged files (or if there are no tagged files, the selected
615 file) of the current panel (C\-x t) or of the other panel (C\-x C\-t) to
616 the command line.
618 .B C\-x p, C\-x C\-p
619 the first key sequence copies the current path name to the command
620 line, and the second one copies the unselected panel's path name to
621 the command line.
623 .B C\-q
624 the quote command can be used to insert characters that are otherwise
625 interpreted by the Midnight Commander (like the '+' symbol)
627 .B Alt\-p, Alt\-n
628 use these keys to browse through the command history. Alt\-p takes you
629 to the last entry, Alt\-n takes you to the next one.
631 .B Alt\-h
632 displays the history for the current input line.
633 .\"NODE "  General Movement Keys"
634 .SH "  General Movement Keys"
635 The help viewer, the file viewer and the directory tree use common
636 code to handle moving. Therefore they accept exactly the same
637 keys. Each of them also accepts some keys of its own.
639 Other parts of the Midnight Commander use some of the same movement
640 keys, so this section may be of use for those parts too.
642 .B Up, C\-p
643 moves one line backward.
645 .B Down, C\-n
646 moves one line forward.
648 .B Prev Page, Page Up, Alt\-v
649 moves one page up.
651 .B Next Page, Page Down, C\-v
652 moves one page down.
654 .B Home, A1
655 moves to the beginning.
657 .B End, C1
658 move to the end.
660 The help viewer and the file viewer accept the following keys in
661 addition the to ones mentioned above:
663 .B b, C\-b, C\-h, Backspace, Delete
664 moves one page up.
666 .B Space bar
667 moves one page down.
669 .B u, d
670 moves one half of a page up or down.
672 .B g, G
673 moves to the beginning or to the end.
674 .\"NODE "  Input Line Keys"
675 .SH "  Input Line Keys"
676 The input lines (they are used for the
677 .\"LINK2"
678 command line
679 .\"Shell Command Line"
680 and for the query dialogs in the program) accept these keys:
682 .B C\-a
683 puts the cursor at the beginning of line.
685 .B C\-e
686 puts the cursor at the end of the line.
688 .B C\-b, move\-left
689 move the cursor one position left.
691 .B C\-f, move\-right
692 move the cursor one position right.
694 .B Alt\-f
695 moves one word forward.
697 .B Alt\-b
698 moves one word backward.
700 .B C\-h, Backspace
701 delete the previous character.
703 .B C\-d, Delete
704 delete the character in the point (over the cursor).
706 .B C\-@
707 sets the mark for cutting.
709 .B C\-w
710 copies the text between the cursor and the mark to a kill buffer and
711 removes the text from the input line.
713 .B Alt\-w
714 copies the text between the cursor and the mark to a kill buffer.
716 .B C\-y
717 yanks back the contents of the kill buffer.
719 .B C\-k
720 kills the text from the cursor to the end of the line.
722 .B Alt\-p, Alt\-n
723 Use these keys to browse through the command history. Alt\-p takes you
724 to the last entry, Alt\-n takes you to the next one.
726 .B Alt\-C\-h, Alt\-Backspace
727 delete one word backward.
729 .B Alt\-Tab
730 does the filename, command, variable, username and hostname
731 .\"LINK2"
732 completion
733 .\"Completion"
734 for you.
735 .SH ""
736 .\"NODE "Menu Bar"
737 .SH "Menu Bar"
738 The menu bar pops up when you press F9 or click the mouse on the top
739 row of the screen. The menu bar has five menus: "Left", "File",
740 "Command", "Options" and "Right".
743 .\"LINK2"
744 Left and Right Menus
745 .\"Left and Right Menus"
746 allow you to modify the appearance of the left and right directory
747 panels.
750 .\"LINK2"
751 File Menu
752 .\"File Menu"
753 lists the actions you can perform on the currently selected file or
754 the tagged files.
757 .\"LINK2"
758 Command Menu
759 .\"Command Menu"
760 lists the actions which are more general and bear no relation to the
761 currently selected file or the tagged files.
764 .\"LINK2"
765 Options Menu
766 .\"Options Menu"
767 lists the actions which allow you to customize the Midnight Commander.
768 .\"NODE "  Left and Right Menus"
769 .SH "  Left and Right (Above and Below) Menus"
770 The outlook of the directory panels can be changed from the
771 .B Left
773 .B Right
774 menus (they are named
775 .B Above
777 .B Below
778 when the horizontal panel split is chosen from the
779 .\"LINK2"
780 Layout
781 .\"Layout"
782 options dialog).
783 .\"NODE "    Listing Mode..."
784 .SH "    Listing Mode..."
785 The listing mode view is used to display a listing of files, there are
786 four different listing modes available:
787 .BR Full ,
788 .BR Brief ,
789 .B Long
791 .BR User .
792 The full directory view shows the file name, the size of the file and
793 the modification time.
795 The brief view shows only the file name and it has two columns
796 (therefore showing twice as many files as other views). The long view
797 is similar to the output of
798 .B "ls \-l"
799 command. The long view takes the whole screen width.
801 If you choose the "User" display format, then you have to specify
802 the display format.
804 The user display format must start with a panel size specifier.  This
805 may be "half" or "full", and they specify a half screen panel and a
806 full screen panel respectively.
808 After the panel size, you may specify the two columns mode on the
809 panel, this is done by adding the number "2" to the user format
810 string.
812 After this you add the name of the fields with an optional size
813 specifier.  This are the available fields you may display:
815 .B name
816 displays the file name.
818 .B size
819 displays the file size.
821 .B bsize
822 is an alternative form of the
823 .B size
824 format. It displays the size of the files and for directories it just
825 shows SUB\-DIR or UP\-\-DIR.
827 .B type
828 displays a one character wide type field.  This character is similar to
829 what is displayed by ls with the \-F flag \-
830 .B *
831 for executable files,
832 .B /
833 for directories,
834 .B @
835 for links,
836 .B =
837 for sockets,
838 .B \-
839 for character devices,
840 .B +
841 for block devices,
842 .B |
843 for pipes,
844 .B ~
845 for symbolic links to directories and
846 .B !
847 for stale symlinks (links that point nowhere).
849 .B mark
850 an asterisk if the file is tagged, a space if it's not.
852 .B mtime
853 file's last modification time.
855 .B atime
856 file's last access time.
858 .B ctime
859 file's status change time.
861 .B perm
862 a string representing the current permission bits of the file.
864 .B mode
865 an octal value with the current permission bits of the file.
867 .B nlink
868 the number of links to the file.
870 .B ngid
871 the GID (numeric).
873 .B nuid
874 the UID (numeric).
876 .B owner
877 the owner of the file.
879 .B group
880 the group of the file.
882 .B inode
883 the inode of the file.
885 Also you can use following keywords to define the panel layout:
887 .B space
888 a space in the display format.
890 .B |
891 add a vertical line to the display format.
893 To force one field to a fixed size (a size specifier), you just add
894 .B :
895 followed by the number of characters you want the field to have.  If the
896 number is followed by the symbol
897 .BR + ,
898 then the size specifies the minimal field size \- if the program finds
899 out that there is more space on the screen, it will then expand that
900 field.
902 For example, the
903 .B Full
904 display corresponds to this format:
906 half type name | size | mtime
908 And the
909 .B Long
910 display corresponds to this format:
912 full perm space nlink space owner space group space size space mtime
913 space name
915 This is a nice user display format:
917 half name | size:7 | type mode:3
919 Panels may also be set to the following modes:
921 .B "Info"
922 The info view display information related to the currently
923 selected file and if possible information about the current file
924 system.
926 .B "Tree"
927 The tree view is quite similar to the
928 .\"LINK2"
929 directory tree
930 .\"Directory Tree"
931 feature. See the section about it for more information.
933 .B "Quick View"
934 In this mode, the panel will switch to a reduced
935 .\"LINK2"
936 viewer
937 .\"Internal File Viewer"
938 that displays the contents of the currently selected file, if you
939 select the panel (with the tab key or the mouse), you will have access
940 to the usual viewer commands.
941 .\"NODE "    Sort Order..."
942 .SH "    Sort Order..."
943 The eight sort orders are by name, by extension, by modification time,
944 by access time, and by inode information modification time, by size,
945 by inode and unsorted.  In the Sort order dialog box you can choose
946 the sort order and you may also specify if you want to sort in reverse
947 order by checking the reverse box.
949 By default directories are sorted before files but this can be changed
950 from the
951 .\"LINK2"
952 Panel options
953 .\"Panel options"
954 menu (option
955 .BR "Mix all files" ).
956 .\"NODE "    Filter..."
957 .SH "    Filter..."
958 The filter command allows you to specify a shell pattern (for example
959 .BR "*.tar.gz" )
960 which the files must match to be shown. Regardless
961 of the filter pattern, the directories and the links to directories
962 are always shown in the directory panel.
963 .\"NODE "    Reread"
964 .SH "    Reread"
965 The reread command reload the list of files in the directory. It is
966 useful if other processes have created or removed files.  If you
967 have panelized file names in a panel this will reload the directory
968 contents and remove the panelized information (See the section
969 .\"LINK2"
970 External panelize
971 .\"External panelize"
972 for more information).
973 .\"NODE "  File Menu"
974 .SH "  File Menu"
975 The Midnight Commander uses the F1 \- F10 keys as keyboard shortcuts
976 for commands appearing in the file menu.  The escape sequences for the
977 function keys are terminfo capabilities kf1 trough kf10.  On terminals
978 without function key support, you can achieve the same functionality by
979 pressing the ESC key and then a number in the range 1 through 9 and 0
980 (corresponding to F1 to F9 and F10 respectively).
982 The File menu has the following commands (keyboard shortcuts in parentheses):
984 .B Help (F1)
986 Invokes the built\-in hypertext help viewer. Inside the
987 .\"LINK2"
988 help viewer\&,
989 .\"Contents"
990 you can use the Tab key to select the next link and the Enter key to
991 follow that link. The keys Space and Backspace are used to move
992 forward and backward in a help page. Press F1 again to get the full
993 list of accepted keys.
995 .B Menu (F2)
997 Invoke the
998 .\"LINK2"
999 user menu\&.
1000 .\"Menu File Edit"
1001 The user menu provides an easy way to provide users with a menu and
1002 add extra features to the Midnight Commander.
1004 .B View (F3, F13)
1006 View the currently selected file. By default this invokes the
1007 .\"LINK2"
1008 Internal File Viewer
1009 .\"Internal File Viewer"
1010 but if the option "Use internal view" is off, it invokes an external
1011 file viewer specified by the
1012 .B VIEWER
1013 environment variable.  If
1014 .B VIEWER
1015 is undefined, the
1016 .B PAGER
1017 environment variable is tried.  If
1018 .B PAGER
1019 is also undefined, the "view" command is invoked.  If you use F13
1020 instead, the viewer will be invoked without doing any formatting or
1021 preprocessing to the file.
1023 .B Filtered View (Alt\-!)
1025 This command prompts for a command
1026 and its arguments (the argument defaults to the currently selected
1027 file name), the output from such command is shown in the internal file
1028 viewer.
1030 .B Edit (F4, F14)
1032 Press F4 to edit the highlighted file.  Press F14 (usually F14)
1033 to start the editor with a new, empty file.
1034 Currently they invoke the
1035 .B vi
1036 editor, or the editor specified in the
1037 .B EDITOR
1038 environment variable, or the
1039 .\"LINK2"
1040 Internal File Editor
1041 .\"Internal File Editor"
1042 if the use_internal_edit option is on.
1044 .B Copy (F5, F15)
1046 Press F5 to pop up an input dialog to copy the currently selected file (or
1047 the tagged files, if there is at least one file tagged) to the
1048 directory/filename you specify in the input dialog.  The destination
1049 defaults to the directory in the non\-selected panel. During this
1050 process, you can press C\-c or ESC to abort the operation. For details
1051 about source mask (which will be usually either * or ^\\(.*\\)$ depending
1052 on setting of Use shell patterns) and possible wildcards in the destination
1054 .\"LINK2"
1055 Mask copy/rename\&.
1056 .\"Mask Copy/Rename"
1058 F15 (usually F15) is similar, but defaults to the directory in the
1059 selected panel. It always operates on the selected file, regardless of
1060 any tagged files.
1062 On some systems, it is possible to do the copy in the background by
1063 clicking on the background button (or pressing Alt\-b in the dialog
1064 box).  The
1065 .\"LINK2"
1066 Background Jobs
1067 .\"Background jobs"
1068 is used to control the background process.
1070 .B Link (C\-x l)
1072 Create a hard link to the current file.
1074 .B Absolute symlink (C\-x s)
1076 Create a absolute symbolic link to the current file.
1078 .B Relative symLink (C\-x v)
1080 Create a relative symbolic link to the current file.
1082 To those of you who don't know what links are: creating a link to a file
1083 is a bit like copying the file, but both the source filename and the destination
1084 filename represent the same file image. For example, if you edit one of these
1085 files, all changes you make will appear in both files. Some people call
1086 links aliases or shortcuts.
1088 A hard link appears as a real file. After making it, there is no way of
1089 telling which one is the original and which is the link. If you delete
1090 either one of them the other one is still intact. It is very difficult
1091 to notice that the files represent the same image. Use hard links when
1092 you don't even want to know.
1094 A symbolic link is a reference to the name of the original file. If
1095 the original file is deleted the symbolic link is useless. It is quite
1096 easy to notice that the files represent the same image. The Midnight
1097 Commander shows an "@"\-sign in front of the file name if it is a
1098 symbolic link to somewhere (except to directory, where it shows a tilde (~)).
1099 The original file which the link points to is shown on mini\-status line if the
1100 .I "Show mini\-status"
1101 option is enabled. Use symbolic links when you want to avoid the
1102 confusion that can be caused by hard links.
1104 When you press "C\-x s" Midnight Commander will automatically fill in the
1105 complete path+filename of the original file and suggest a name for the link.
1106 You can change either one.
1108 Sometimes you may want to change the absolute path of the original into
1109 a relative path. An absolute path starts from the root directory:
1111 .I /home/frodo/mc/mc -> /home/frodo/new/mc
1113 A relative link describes the original file's location starting from the
1114 location of the link itself:
1116 .I /home/frodo/mc/mc -> ../new/mc
1118 You can force Midnight Commander to suggest a relative path by pressing
1119 "C\-x v" instead of "C\-x s".
1121 .B Rename/Move (F6, F16)
1123 Press F6 to pop up an input dialog to copy the currently selected file (or
1124 the tagged files, if there is at least one file tagged) to the
1125 directory/filename you specify in the input dialog.  The destination
1126 defaults to the directory in the non\-selected panel. For more details
1127 look at Copy (F5) operation above, most of the things are quite similar.
1129 F16 (usually F16) is similar, but defaults to the directory in the
1130 selected panel. It always operates on the selected file, regardless of
1131 any tagged files.
1133 On some systems, it is possible to do the copy in the background by
1134 clicking on the background button (or pressing Alt\-b in the dialog
1135 box).  The
1136 .\"LINK2"
1137 Background Jobs
1138 .\"Background jobs"
1139 is used to control the background process.
1141 .B Mkdir (F7)
1143 Pop up an input dialog and creates the directory specified.
1145 .B Delete (F8)
1147 Delete the currently selected file or the tagged files in the
1148 currently selected panel. During the process, you can press C\-c or
1149 ESC to abort the operation.
1151 .B Quick cd (Alt\-c)
1152 Use the
1153 .\"LINK2"
1154 quick cd
1155 .\"Quick cd"
1156 command if you have full command line and want to cd somewhere.
1158 .B Select group (+)
1160 This is used to select (tag) a group of files. The Midnight Commander
1161 will prompt for a selection options. When
1162 .I Files only
1163 checkbox is on, only files will be selected.  If
1164 .I Files only
1165 is off, as files as directories will be selected.
1166 When
1167 .I Shell Patterns
1168 checkbox is on, the regular expression is much like the filename globbing
1169 in the shell (* standing for zero or more characters and ?  standing
1170 for one character). If
1171 .I Shell Patterns
1172 is off, then the tagging of files is done with normal regular
1173 expressions (see ed (1)). When
1174 .I Case sensitive
1175 checkbox is on, the selection will be case sensitive characters.
1177 .I Case sensitive
1178 is off, the case will be ignored.
1180 .B Unselect group (\\\\)
1182 Used to unselect a group of files. This is the opposite of the
1183 .I "Select group"
1184 command.
1186 .B Quit (F10, Shift\-F10)
1188 Terminate the Midnight Commander.  Shift\-F10 is used when you want to
1189 quit and you are using the shell wrapper.  Shift\-F10 will not take you
1190 to the last directory you visited with the Midnight Commander, instead
1191 it will stay at the directory where you started the Midnight Commander.
1192 .\"NODE "    Quick cd"
1193 .SH "    Quick cd"
1194 This command is useful if you have a full command line and want to
1195 .\"LINK2"
1197 .\"The cd internal command"
1198 somewhere without having to yank and paste the command line. This command
1199 pops up a small dialog, where you enter everything you would enter after
1200 .B cd
1201 on the command line and then you press enter. This features all the things
1202 that are already in the
1203 .\"LINK2"
1204 internal cd command\&.
1205 .\"The cd internal command"
1206 .\"NODE "  Command Menu"
1207 .SH "  Command Menu"
1209 .\"LINK2"
1210 Directory tree
1211 .\"Directory Tree"
1212 command shows a tree figure of the directories.
1215 .\"LINK2"
1216 Find file
1217 .\"Find File"
1218 command allows you to search for a specific file.
1220 The "Swap panels" command swaps the contents of the two directory panels.
1222 The "Panels on/off" command shows the output of the last shell command.
1223 This works only on xterm and on Linux and FreeBSD console.
1225 The Compare directories (C\-x d) command compares the directory
1226 panels with each other. You can then use the Copy (F5) command to make
1227 the panels identical. There are three compare methods. The quick method
1228 compares only file size and file date. The thorough method makes a
1229 full byte\-by\-byte compare. The thorough method is not available if the
1230 machine does not support the mmap(2) system call.  The size\-only
1231 compare method just compares the file sizes and does not check the
1232 contents or the date times, it just checks the file size.
1234 The Command history command shows a list of typed commands. The
1235 selected command is copied to the command line. The command history
1236 can also be accessed by typing Alt\-p or Alt\-n.
1239 .\"LINK2"
1240 Directory hotlist (C\-\\)
1241 .\"Hotlist"
1242 command makes changing of the current directory to often used directories
1243 faster.
1246 .\"LINK2"
1247 External panelize
1248 .\"External panelize"
1249 allows you to execute an external program, and make the output of that
1250 program the contents of the current panel.
1252 .\"LINK2"
1253 Extension file edit
1254 .\"Extension File Edit"
1255 command allows you to specify programs to executed when you try to
1256 execute, view, edit and do a bunch of other thing on files
1257 with certain extensions (filename endings). The
1258 .\"LINK2"
1259 Menu file edit
1260 .\"Menu File Edit"
1261 command may be used for editing the user menu (which appears by
1262 pressing F2).
1263 .\"NODE "    Directory Tree"
1264 .SH "    Directory Tree"
1265 The Directory Tree command shows a tree figure of the directories. You
1266 can select a directory from the figure and the Midnight Commander will
1267 change to that directory.
1269 There are two ways to invoke the tree. The real directory tree command
1270 is available from Commands menu. The other way is to select tree view
1271 from the Left or Right menu.
1273 To get rid of long delays the Midnight Commander creates the tree
1274 figure by scanning only a small subset of all the directories. If the
1275 directory which you want to see is missing, move to its parent
1276 directory and press C\-r (or F2).
1278 You can use the following keys:
1280 .\"LINK2"
1281 General movement keys
1282 .\"General Movement Keys"
1283 are accepted.
1285 .B Enter.
1286 In the directory tree, exits the directory tree and changes to this
1287 directory in the current panel. In the tree view, changes to this
1288 directory in the other panel and stays in tree view mode in the
1289 current panel.
1291 .B C\-r, F2 (Rescan).
1292 Rescan this directory. Use this when the tree figure is out of date:
1293 it is missing subdirectories or shows some subdirectories which don't
1294 exist any more.
1296 .B F3 (Forget).
1297 Delete this directory from the tree figure. Use this to remove clutter
1298 from the figure. If you want the directory back to the tree figure
1299 press F2 in its parent directory.
1301 .B F4 (Static/Dynamic).
1302 Toggle between the dynamic navigation mode (default) and the static
1303 navigation mode.
1305 In the static navigation mode you can use the Up and Down keys to
1306 select a directory. All known directories are shown.
1308 In the dynamic navigation mode you can use the Up and Down keys to
1309 select a sibling directory, the Left key to move to the parent
1310 directory, and the Right key to move to a child directory. Only the
1311 parent, sibling and children directories are shown, others are left
1312 out. The tree figure changes dynamically as you traverse.
1314 .B F5 (Copy).
1315 Copy the directory.
1317 .B F6 (RenMov).
1318 Move the directory.
1320 .B F7 (Mkdir).
1321 Make a new directory below this directory.
1323 .B F8 (Delete).
1324 Delete this directory from the file system.
1326 .B C\-s, Alt\-s.
1327 Search the next directory matching the search string. If there is
1328 no such directory these keys will move one line down.
1330 .B C\-h, Backspace.
1331 Delete the last character of the search string.
1333 .B Any other character.
1334 Add the character to the search string and move to the next directory
1335 which starts with these characters. In the tree view you must first
1336 activate the search mode by pressing C\-s. The search string is shown
1337 in the mini status line.
1339 The following actions are available only in the directory tree. They
1340 aren't supported in the tree view.
1342 .B F1 (Help).
1343 Invoke the help viewer and show this section.
1345 .B Esc, F10.
1346 Exit the directory tree. Do not change the directory.
1348 The mouse is supported. A double\-click behaves like Enter. See
1349 also the section on
1350 .\"LINK2"
1351 mouse support\&.
1352 .\"Mouse Support"
1353 .\"NODE "    Find File"
1354 .SH "    Find File"
1355 The Find File feature first asks for the start directory for the
1356 search and the filename to be searched for. By pressing the Tree
1357 button you can select the start directory from the
1358 .\"LINK2"
1359 directory tree
1360 .\"Directory Tree"
1361 figure.
1363 The contents field accepts regular expressions similar to egrep(1). That
1364 means you have to escape characters with a special meaning to egrep with "\\",
1365 e.g. if you search for "strcmp (" you will have to input "strcmp \\("
1366 (without the double quotes).
1368 Option \"Whole words\" Allow select only those files containing matches that
1369 form whole words. Like grep \-w
1371 You can start the search by pressing the OK button.
1372 During the search you can stop from the Stop button and continue from
1373 the Start button.
1375 You can browse the filelist with the up and down arrow keys. The Chdir
1376 button will change to the directory of the currently selected
1377 file. The Again button will ask for the parameters for a new
1378 search. The Quit button quits the search operation. The Panelize
1379 button will place the found files to the current directory panel so
1380 that you can do additional operations on them (view, copy, move,
1381 delete and so on). After panelizing you can press C\-r to return to the
1382 normal file listing.
1384 It is possible to have a list of directories that the Find File command
1385 should skip during the search (for example, you may want to avoid
1386 searches on a CD\-ROM or on a NFS directory that is mounted across a slow
1387 link).
1389 Directories to be skipped should be set on the variable
1390 .B ignore_dirs
1391 in the
1392 .B FindFile
1393 section of your ~/.mc/ini file.
1395 Directory components should be separated with a colon, here is an
1396 example:
1399 [FindFile]
1400 ignore_dirs=/cdrom:/nfs/wuarchive:/afs
1403 You may consider using the
1404 .\"LINK2"
1405 External panelize
1406 .\"External panelize"
1407 command for some operations. Find file command is for simple queries
1408 only, while using External panelize you can do as mysterious searches
1409 as you would like.
1410 .\"NODE "    External panelize"
1411 .SH "    External panelize"
1412 The External panelize allows you to execute an external program, and
1413 make the output of that program the contents of the current panel.
1415 For example, if you want to manipulate in one of the panels all the
1416 symbolic links in the current directory, you can use external
1417 panelization to run the following command:
1420 find . \-type l \-print
1423 Upon command completion, the directory contents of the panel will no
1424 longer be the directory listing of the current directory, but all the
1425 files that are symbolic links.
1427 If you want to panelize all of the files that have been downloaded
1428 from your FTP server, you can use this awk command to extract the file
1429 name from the transfer log files:
1432 awk '$9 ~! /incoming/ { print $9 }' < /var/log/xferlog
1435 You may want to save often used panelize commands under a descriptive name,
1436 so that you can recall them quickly. You do this by typing the command on
1437 the input line and pressing Add new button. Then you enter a name under
1438 which you want the command to be saved. Next time, you just choose that
1439 command from the list and do not have to type it again.
1440 .\"NODE "    Hotlist"
1441 .SH "    Hotlist"
1442 The Directory hotlist command shows the labels of the directories
1443 in the directory hotlist.  The Midnight Commander will change to the
1444 directory corresponding to the selected label.  From the hotlist dialog,
1445 you can remove already created label/directory pairs and add new ones.
1446 To add new directories quickly, you can use the Add to hotlist command
1447 (C\-x h), which adds the current directory into the directory hotlist,
1448 asking just for the label for the directory.
1450 This makes cd to often used directories faster. You may consider using the
1451 CDPATH variable as described in
1452 .\"LINK2"
1453 internal cd command
1454 .\"The cd internal command"
1455 description.
1456 .\"NODE "    Extension File Edit"
1457 .SH "    Extension File Edit"
1458 This will invoke your editor on the file
1459 .IR ~/.mc/bindings .
1460 The format of this file following:
1462 All lines starting with # or empty lines are thrown away.
1464 Lines starting in the first column should have following format:
1466 .IR keyword/expr ,
1467 i.e. everything after the slash until new line is
1468 .IR expr .
1470 .I keyword
1471 can be:
1473 .I shell
1475 .I expr
1476 is an extension (no wildcards).  File matches it its name ends
1477 with
1478 .IR expr .
1479 Example:
1480 .I shell/.tar
1481 matches
1482 .IR *.tar .
1484 .I regex
1486 .I expr
1487 is a regular expression.  File matches if its name matches the regular
1488 expression.
1490 .I directory
1492 .I expr
1493 is a regular expression.  File matches if it is a directory and its name
1494 matches the regular expression.
1496 .I type
1498 .I expr
1499 is a regular expression.  File matches if the output of
1500 .I file %f
1501 without the initial "filename:" part matches regular expression
1502 .IR expr .
1504 .I default
1505 \- matches any file.
1506 .I expr
1507 is ignored.
1509 .I include
1510 \- denotes a common section.
1511 .I expr
1512 is the name of the section.
1514 Other lines should start with a space or tab and should be of the format:
1515 .I keyword=command
1516 (with no spaces around =), where
1517 .I keyword
1518 should be:
1519 .I Open
1520 (invoked on Enter or double click),
1521 .I View
1522 (F3),
1523 .I Edit
1524 (F4) or
1525 .I Include
1526 (to add rules from the common section).
1527 .I command
1528 is any one\-line shell command, with the simple
1529 .\"LINK2"
1530 macro substitution\&.
1531 .\"Macro Substitution"
1533 Rules are matched from top to bottom, thus the order is important.  If
1534 the appropriate action is missing, search continues as if this rule
1535 didn't match (i.e. if a file matches the first and second entry and View
1536 action is missing in the first one, then on pressing F3 the View action
1537 from the second entry will be used).
1538 .I default
1539 should match all the actions.
1540 .\"NODE "    Background jobs"
1541 .SH "    Background Jobs"
1542 This lets you control the state of any background Midnight Commander
1543 process (only copy and move files operations can be done in the
1544 background).  You can stop, restart and kill a background job from
1545 here.
1546 .\"NODE "    Menu File Edit"
1547 .SH "    Menu File Edit"
1548 The user menu is a menu of useful actions that can be customized by
1549 the user. When you access the user menu, the
1550 file .mc.menu from the current directory is used if it exists,
1551 but only if it is owned by user or root and is not world\-writable.
1552 If no such file found, ~/.mc/menu is tried in the same way,
1553 and otherwise mc uses the default system\-wide menu
1554 @prefix@/share/mc/mc.menu.
1556 The format of the menu file is very simple. Lines that start with
1557 anything but space or tab are considered entries for the menu (in
1558 order to be able to use it like a hot key, the first character should
1559 be a letter). All the lines that start with a space or a tab are the
1560 commands that will be executed when the entry is selected.
1562 When an option is selected all the command lines of the option are
1563 copied to a temporary file in the temporary directory (usually
1564 /usr/tmp) and then that file is executed. This allows the user to put
1565 normal shell constructs in the menus. Also simple macro substitution
1566 takes place before executing the menu code. For more information, see
1567 .\"LINK2"
1568 macro substitution\&.
1569 .\"Macro Substitution"
1571 Here is a sample mc.menu file:
1574 A       Dump the currently selected file
1575         od \-c %f
1577 B       Edit a bug report and send it to root
1578         I=`mktemp ${MC_TMPDIR:\-/tmp}/mail.XXXXXX` || exit 1
1579         vi $I
1580         mail \-s "Midnight Commander bug" root < $I
1581         rm \-f $I
1583 M       Read mail
1584         emacs \-f rmail
1586 N       Read Usenet news
1587         emacs \-f gnus
1589 H       Call the info hypertext browser
1590         info
1592 J       Copy current directory to other panel recursively
1593         tar cf \- . | (cd %D && tar xvpf \-)
1595 K       Make a release of the current subdirectory
1596         echo \-n "Name of distribution file: "
1597         read tar
1598         ln \-s %d `dirname %d`/$tar
1599         cd ..
1600         tar cvhf ${tar}.tar $tar
1602 = f *.tar.gz | f *.tgz & t n
1603 X       Extract the contents of a compressed tar file
1604         tar xzvf %f
1607 .B Default Conditions
1609 Each menu entry may be preceded by a condition. The condition must
1610 start from the first column with a '=' character. If the condition is
1611 true, the menu entry will be the default entry.
1614 Condition syntax:       = <sub\-cond>
1615   or:                   = <sub\-cond> | <sub\-cond> ...
1616   or:                   = <sub\-cond> & <sub\-cond> ...
1618 Sub\-condition is one of following:
1620   y <pattern>           syntax of current file matching pattern?
1621                         (for edit menu only)
1622   f <pattern>           current file matching pattern?
1623   F <pattern>           other file matching pattern?
1624   d <pattern>           current directory matching pattern?
1625   D <pattern>           other directory matching pattern?
1626   t <type>              current file of type?
1627   T <type>              other file of type?
1628   x <filename>          is it executable filename?
1629   ! <sub\-cond>         negate the result of sub\-condition
1632 Pattern is a normal shell pattern or a regular expression, according
1633 to the shell patterns option. You can override the global value of
1634 the shell patterns option by writing "shell_patterns=x" on the first
1635 line of the menu file (where "x" is either 0 or 1).
1637 Type is one or more of the following characters:
1640   n     not a directory
1641   r     regular file
1642   d     directory
1643   l     link
1644   c     character device
1645   b     block device
1646   f     FIFO (pipe)
1647   s     socket
1648   x     executable file
1649   t     tagged
1652 For example 'rlf' means either regular file, link or fifo. The 't'
1653 type is a little special because it acts on the panel instead of the
1654 file. The condition '=t t' is true if there are tagged files in the
1655 current panel and false if not.
1657 If the condition starts with '=?' instead of '=' a debug trace will be
1658 shown whenever the value of the condition is calculated.
1660 The conditions are calculated from left to right. This means
1662         = f *.tar.gz | f *.tgz & t n
1664 is calculated as
1666         ( (f *.tar.gz) | (f *.tgz) ) & (t n)
1669 Here is a sample of the use of conditions:
1672 = f *.tar.gz | f *.tgz & t n
1673 L       List the contents of a compressed tar\-archive
1674         gzip \-cd %f | tar xvf \-
1677 .B Addition Conditions
1679 If the condition begins with '+' (or '+?') instead of '=' (or '=?') it
1680 is an addition condition. If the condition is true the menu entry will
1681 be included in the menu. If the condition is false the menu entry will
1682 not be included in the menu.
1684 You can combine default and addition conditions by starting condition
1685 with '+=' or '=+' (or '+=?' or '=+?' if you want debug trace). If you
1686 want to use two different conditions, one for adding and another for
1687 defaulting, you can precede a menu entry with two condition lines, one
1688 starting with '+' and another starting with '='.
1690 Comments are started with '#'. The additional comment lines must start
1691 with '#', space or tab.
1692 .\"NODE "  Options Menu"
1693 .SH "  Options Menu"
1694 The Midnight Commander has some options that may be toggled on and
1695 off in several dialogs which are accessible from this menu. Options
1696 are enabled if they have an asterisk or "x" in front of them.
1699 .\"LINK2"
1700 Configuration
1701 .\"Configuration"
1702 command pops up a dialog from which you can change most of settings of
1703 the Midnight Commander.
1706 .\"LINK2"
1707 Layout
1708 .\"Layout"
1709 command pops up a dialog from which you specify a bunch of options how mc
1710 looks like on the screen.
1713 .\"LINK2"
1714 Panel options
1715 .\"Panel options"
1716 command pops up a dialog from which you specify options of file manager panels.
1719 .\"LINK2"
1720 Confirmation
1721 .\"Confirmation"
1722 command pops up a dialog from which you specify which actions you want to
1723 confirm.
1726 .\"LINK2"
1727 Display bits
1728 .\"Display bits"
1729 command pops up a dialog from which you may select which characters is your
1730 terminal able to display.
1733 .\"LINK2"
1734 Learn keys
1735 .\"Learn keys"
1736 command pops up a dialog from which you test some keys which are not working
1737 on some terminals and you may fix them.
1740 .\"LINK2"
1741 Virtual FS
1742 .\"Virtual FS"
1743 command pops up a dialog from which you specify some VFS related options.
1746 .\"LINK2"
1747 Save setup
1748 .\"Save Setup"
1749 command saves the current settings of the Left, Right and Options
1750 menus. A small number of other settings is saved, too.
1751 .\"NODE "    Configuration"
1752 .SH "    Configuration"
1753 The options in this dialog are divided into several groups: "File
1754 operation options", "Esc key mode", "Pause after run" and "Other options".
1756 .B File operation options
1758 .I Verbose operation.
1759 This toggles whether the file Copy, Rename and Delete operations are
1760 verbose (i.e., display a dialog box for each operation). If you have a
1761 slow terminal, you may wish to disable the verbose operation. It is
1762 automatically turned off if the speed of your terminal is less than
1763 9600 bps.
1765 .I Compute totals.
1766 If this option is enabled, the Midnight Commander computes total byte
1767 sizes and total number of files prior to any Copy, Rename and Delete
1768 operations. This will provide you with a more accurate progress bar
1769 at the expense of some speed. This option has no effect, if
1770 .I Verbose  operation
1771 is disabled.
1773 .I Classic progressbar.
1774 If this option is enabled, the progressbar of Copy/Move/Delete operations
1775 is always grown form left to right. If disabled, the growing direction
1776 of progressbar follows to direction of Copy/Move/Delete operation:
1777 from left panel to right one and vice versa. Enabled by default.
1779 .I Mkdir autoname
1780 When you press F7 to create a new directory, the input line in popup dialog
1781 will be filled by name of current file or directory in active panel.
1782 Disabled by default.
1784 .B Esc key mode.
1786 By default the Midnight Commander treats the ESC key as a key prefix.
1787 Therefore, you should press Esc code twice to exit a dialog. But there is
1788 a possibility to use a single press of ESC key for that action.
1790 .I Single press.
1791 By default this option is disabled. If you'll enable it, the ESC key
1792 will act as a prefix key for set up time interval (see
1793 .I Timeout
1794 option below), and if no extra keys have arrived, then the ESC key
1795 is interpreted as a cancel key (ESC ESC).
1797 .I Timeout.
1798 This options is used to setup the time interval (in microseconds)
1799 for single press of ESC key. By default, this inrerval is one second
1800 (1000000 microseconds). Also the timeout can be set via KEYBOARD_KEY_TIMEOUT_US
1801 environment variable (also in microseconds), which has higher priority
1802 than Timeout option value.
1804 .B Pause after run
1806 After executing your commands, the Midnight Commander can pause, so
1807 that you can examine the output of the command.  There are three
1808 possible settings for this variable:
1810 .IR Never .
1811 Means that you do not want to see the output of your command.  If you
1812 are using the Linux or FreeBSD console or an xterm, you will be able to
1813 see the output of the command by typing C\-o.
1815 .IR On dumb terminals .
1816 You will get the pause message on terminals that are not capable of
1817 showing the output of the last command executed (any terminal that is
1818 not an xterm or the Linux console).
1820 .IR Always .
1821 The program will pause after executing all of your commands.
1823 .B Other options
1825 .I Use internal editor.
1826 If this option is enabled, the built\-in file editor is used to edit
1827 files. If the option is disabled, the editor specified in the
1828 .B EDITOR
1829 environment variable is used.
1830 If no editor is specified,
1831 .B vi
1832 is used.  See the section on the
1833 .\"LINK2"
1834 internal file editor\&.
1835 .\"Internal File Editor"
1837 .I Use internal viewer.
1838 If this option is enabled, the built\-in file viewer is used to view
1839 files. If the option is disabled, the pager specified in the
1840 .B PAGER
1841 environment variable is used.
1842 If no pager is specified, the
1843 .B view
1844 command is used.  See the section on the
1845 .\"LINK2"
1846 internal file viewer\&.
1847 .\"Internal File Viewer"
1849 .I Auto menus.
1850 If this option is enabled, the user menu will be invoked at startup.
1851 Useful for building menus for non\-unixers.
1853 .I Drop down menus.
1854 When this option is enabled, the pull down menus will be activated as
1855 soon as you press the F9 key. Otherwise, you will only get the menu title,
1856 and you will have to activate the menu either with the arrow keys or with
1857 the hotkeys. It is recommended if you are using hotkeys.
1859 .I Shell Patterns.
1860 By default the Select, Unselect and Filter commands will use shell\-like
1861 regular expressions. The following conversions are performed to achieve
1862 this: the '*' is replaced by '.*' (zero or more characters); the '?'
1863 is replaced by '.' (exactly one character) and '.' by the literal
1864 dot. If the option is disabled, then the regular expressions are the
1865 ones described in ed(1).
1867 .I Complete: show all.
1868 By default the Midnight Commander pops up all possible
1869 .\"LINK2"
1870 completions
1871 .\"Completion"
1872 if the completion is ambiguous only when you press
1873 .B Alt\-Tab
1874 for the second time.  For the first time, it just completes as much as
1875 possible and beeps in the case of ambiguity.  Enable this option if you
1876 want to see all possible completions even after pressing
1877 .B Alt\-Tab
1878 the first time.
1880 .I Rotating dash.
1881 If this option is enabled, the
1882 Midnight Commander shows a rotating dash in the upper right corner
1883 as a work in progress indicator.
1885 .I Cd follows links.
1886 This option, if set, causes the Midnight Commander to follow the
1887 logical chain of directories when changing current directory
1888 either in the panels, or using the cd command. This is the default
1889 behavior of bash. When unset, the Midnight Commander follows the
1890 real directory structure, so cd .. if you've entered that directory
1891 through a link will move you to the current directory's real parent
1892 and not to the directory where the link was present.
1894 .I Safe delete.
1895 If this option is enabled, deleting files and directory hotlist entries
1896 unintentionally becomes more difficult.  The default selection in the
1897 confirmation dialogs for deletion changes from "Yes" to "No".
1898 This option is disabled by default.
1900 .I Auto save setup.
1901 If this option is enabled, when you exit the Midnight Commander the
1902 configurable options of the Midnight Commander are saved in the
1903 ~/.mc/ini file.
1904 .\"NODE "    Layout"
1905 .SH "    Layout"
1906 The layout dialog gives you a possibility to change the general layout
1907 of screen. The options in this dialog are divided into several groups:
1908 "Panel split", "Console output" and "Other options".
1910 .B Panel split
1912 The rest of the screen area is used for the two directory panels. You
1913 can specify whether the area is split to the panels in
1914 .I Vertical
1915  or
1916 .I Horizontal
1917 direction. Panel layout can be changed using Alt\-, (Alt\-comma) shortcut.
1919 .I Equal split.
1920 By default, panels have equal sizes. Using this option you can specify
1921 an unequal split.
1923 .B Console output
1925 On the Linux or FreeBSD console you can specify how many lines are shown
1926 in the output window. This option is available if Midnight Commander runs
1927 on native console only.
1929 .B Other options
1931 .I Menu bar visible.
1932 If enabled, main menu of Midnight Commander is always visible on the top row
1933 of screen above panels. Enabled by default.
1935 .I Show mini\-status.
1936 If enabled, one line of status information about the currently selected item
1937 is shown at the bottom of the panels. Enabled by default.
1939 .I Command prompt.
1940 If enabled, command line is avalable. Enabled by default.
1942 .I Keybar visible.
1943 If enabled, 10 lables associated with F1\-F10 keys are located at the bottom
1944 row of screen. Enabled by default.
1946 .I Hintbar visible.
1947 If enabled, the one\-line hints are visible below panels. Enabled by default.
1949 .I XTerm window title.
1950 When run in a terminal emulator for X11, Midnight Commander sets the
1951 terminal window title to the current working directory and updates it
1952 when necessary.  If your terminal emulator is broken and you see some
1953 incorrect output on startup and directory change, turn off this option.
1954 Enabled by default.
1956 .I Show free space.
1957 If enabled, free space and total space of current file system is shown
1958 at the bottom frame of panel. Enabled by default.
1959 .\"NODE "    Panel options"
1960 .SH "    Panel options"
1961 .B Main panel options
1963 .I Use SI size units.
1964 If this option is enabled, Midnight Commander will use SI units (powers of 1000)
1965 when displaying any byte sizes. The suffixes (k, m ...) are shown in lowercase.
1966 If disabled (default), Midnight Commander will use binary units (powers of 1024)
1967 and the suffixes are shown in upper case (K, M ...)
1969 .I Mix all files.
1970 If this option is enabled, all files and directories are shown mixed
1971 together.  If the option is desabled (default), directories (and links to
1972 directories) are shown at the beginning of the listing, and other files below.
1974 .I Show backup files.
1975 If enabled, the Midnight Commander will show files ending with a tilde.
1976 Otherwise, they won't be shown (like GNU's ls option \-B). Enabled by default.
1978 .I Show hidden files.
1979 If enabled, the Midnight Commander will show all files that start with
1980 a dot (like ls \-a). Disabled by default.
1982 .I Fast directory reload.
1983 If this option is enabled, the Midnight Commander will use a trick to
1984 determine if the directory contents have changed.  The trick is to reload
1985 the directory only if the i\-node of the directory has changed; this means
1986 that reloads only happen when files are created or deleted.  If what
1987 changes is the i\-node for a file in the directory (file size changes,
1988 mode or owner changes, etc) the display is not updated.  In these cases,
1989 if you have the option on, you have to rescan the directory manually
1990 (with C\-r). Disabled by default.
1992 .I Mark moves down.
1993 If enabled, the selection bar will move down when you mark a file (with
1994 Insert key). Enabled by default.
1996 .I Reverse files only.
1997 Allow revert selection of files only. Enabled by default.
1998 If enabled, the reverse selection is applied to files only, not to directories.
1999 The selection of directories is untouched. If off, the reverse selection
2000 is applied to files as well to directories: all unselected items become
2001 selected, and vice versa.
2003 .I Auto save panels setup.
2004 If this option is enabled, when you exit the Midnight Commander the
2005 current settings of panels are saved in the ~/.mc/panels.ini file.
2006 Disabled by default.
2008 .B Navigation
2010 .I Lynx\-like motion.
2011 If this option is enabled, you may use the arrows keys to automatically
2012 chdir if the current selection is a subdirectory and the shell command
2013 line is empty. By default, this setting is off.
2015 .I Page scrolling.
2016 If set (the default), panel will scroll by half the display when the
2017 cursor reaches the end or the beginning of the panel, otherwise it
2018 will just scroll a file at a time.
2020 .I Mouse page scrolling.
2021 Controls whenever scrolling with the mouse wheel is done by pages or
2022 line by line on the panels.
2024 .B File highlight
2026 You can specify whether
2027 .I permissions
2029 .I file types
2030 should be highlighted with distinctive
2031 .\"LINK2"
2032 Colors\&.
2033 .\"Colors"
2034 If the permission highlighting is enabled, the parts of the
2035 .I perm
2037 .I mode
2038 .\"LINK2"
2039 display fields
2040 .\"Listing Mode..."
2041 which apply to the user running Midnight Commander are highlighted with
2042 the color defined by the
2043 .I selected
2044 keyword.  If the file type highlighting is enabled, file names are colored
2045 according to rules described in @sysconfdir@/mc/filehighlight.ini file. See
2046 .\"LINK2"
2047 Filenames Highlight
2048 .\"Filenames Highlight"
2049 for more info.
2051 .B Quick search
2053 You can specify how the
2054 .\"LINK2"
2055 Quick search
2056 .\"Quick search"
2057 mode should works: case insensitively, case sensitively or be matched
2058 to the the panel sort order: case sensitive or not.
2059 .\"NODE "    Confirmation"
2060 .SH "    Confirmation"
2061 In this dialog you configure the confirmation options for file deletion,
2062 overwriting files, execution by pressing enter, quitting the program,
2063 directory hotlist entries deletion and history cleanup.
2064  and.
2065 .\"NODE "    Display bits"
2066 .SH "    Display bits"
2067 This is used to configure the range of visible characters on the
2068 screen.  This setting may be 7\-bits if your terminal/curses supports
2069 only seven output bits, ISO\-8859\-1 displays all the characters in the
2070 ISO\-8859\-1 map and full 8 bits is for those terminals that can display
2071 full 8 bit characters.
2072 .\"NODE "    Learn keys"
2073 .SH "    Learn keys"
2074 This dialog allows you to test and redefine functional keys, cursor
2075 arrows and some other keys to make them work properly on your terminal.
2076 They often don't, since many terminal databases are incomplete or broken.
2078 You can move around with the Tab key and with the vi moving keys ('h'
2079 left, 'j' down, 'k' up and 'l' right).  Once you press any cursor movement
2080 key and it is recognized, you can use that key as well.
2082 You can test keys just by pressing each of them.  When you press a
2083 key and it is recognized properly, OK should appear next to the name
2084 of that key.  Once a key is marked OK it starts working as usually,
2085 e.g. F1 pressed the first time will just check that the F1 key works,
2086 but after that it will show help.  The same applies to the arrow keys.
2087 The Tab key should be working always.
2089 If some keys do not work properly then you won't see OK appear after
2090 pressing one of these.  Then you may want to redefine it.  Do it by pressing
2091 the button with the name of that key (either by the mouse or by Enter
2092 or Space after selecting the button with Tab or arrows).  Then a message
2093 box will appear asking you to press that key.  Do it and wait until the
2094 message box disappears.  If you want to abort, just press Escape once
2095 and wait.
2097 When you finish with all the keys, you can Save them.  The definitions
2098 for the keys you have redefined will be written into the [terminal:TERM]
2099 section of your ~/.mc/ini file (where TERM is the name of your current
2100 terminal).  The definitions of the keys that were already working properly
2101 are not saved.
2102 .\"NODE "    Virtual FS"
2103 .SH "    Virtual FS"
2104 This option gives you control over the settings of the
2105 .\"LINK2"
2106 Virtual File System\&.
2107 .\"Virtual File System"
2109 The Midnight Commander keeps in memory the information related to some
2110 of the virtual file systems to speed up the access to the files in the
2111 file system (for example, directory listings fetched from FTP servers).
2113 Also, in order to access the contents of compressed files (for example,
2114 compressed tar files) the Midnight Commander needs to create temporary
2115 uncompressed files on your disk.
2117 Since both the information in memory and the temporary files on disk
2118 take up resources, you may want to tune the parameters of the cached
2119 information to decrease your resource usage or to maximize the speed of
2120 access to frequently used file systems.
2122 Because of the format of the tar archives, the
2123 .I Tar filesystem
2124 needs to read the whole file just to load the file entries.  Since most
2125 tar files are usually kept compressed (plain tar files are species in
2126 extinction), the tar file system has to uncompress the file on the disk
2127 in a temporary location and then access the uncompressed file as a
2128 regular tar file.
2130 Now, since we all love to browse files and tar files all over the disk,
2131 it's common that you will leave a tar file and the re\-enter it later.
2132 Since decompression is slow, the Midnight Commander will cache the
2133 information in memory for a limited time.  When the timeout expires, all
2134 the resources associated with the file system are released.  The default
2135 timeout is set to one minute.
2138 .\"LINK2"
2139 FTP File System
2140 .\"FTP File System"
2141 (ftpfs) allows you to browse directories on remote FTP servers.  It has
2142 several options.
2144 .I ftp anonymous password
2145 is the password used when you login as "anonymous".  Some sites require
2146 a valid e\-mail address.  On the other hand, you probably don't want to
2147 give your real e\-mail address to untrusted sites, especially if you are
2148 not using spam filtering.
2150 ftpfs keeps the directory listing it fetches from a FTP server in a cache.
2151 The cache expire time is configurable with the
2152 .I ftpfs directory cache timeout
2153 option.  A low value for this option may slow down every operation on
2154 the ftpfs because every operation would require sending a request to the
2155 FTP server.
2157 You can define an FTP proxy host for doing FTP.  Note that most modern
2158 firewalls are fully transparent at least for passive FTP (see below), so
2159 FTP proxies are considered obsolete.
2162 .I Always use ftp proxy
2163 is not set, you can use the exclamation sign to enable proxy for certain
2164 hosts.  See
2165 .\"LINK2"
2166 FTP File System
2167 .\"FTP File System"
2168 for examples.
2170 If this option is set, the program will do two things: consult the
2171 @prefix@/lib/mc/mc.no_proxy file for lines containing host names that
2172 are local (if the host name starts with a dot, it is assumed to be a
2173 domain) and to assume that any hostnames without dots in their names are
2174 directly accessible.  All other hosts will be accessed through the
2175 specified FTP proxy.
2177 You can enable using
2178 .I ~/.netrc
2179 file, which keeps login names and passwords for ftp servers.  See netrc
2180 (5) for the description of the .netrc format.
2182 .I Use passive mode
2183 enables using FTP passive mode, when the connection for data transfer is
2184 initiated by the client, not by the server.  This option is recommended
2185 and enabled by default.  If this option is turned off, the data
2186 connection is initiated by the server.  This may not work with some
2187 firewalls.
2188 .\"NODE "    Save Setup"
2189 .SH "    Save Setup"
2190 At startup the Midnight Commander will try to load initialization
2191 information from the ~/.mc/ini file. If this file doesn't exist, it will
2192 load the information from the system\-wide configuration file, located in
2193 @prefix@/share/mc/mc.ini. If the system\-wide configuration file doesn't
2194 exist, MC uses the default settings.
2197 .I Save Setup
2198 command creates the ~/.mc/ini file by saving the current settings
2199 of the
2200 .\"LINK2"
2201 Left, Right
2202 .\"Left and Right Menus"
2204 .\"LINK2"
2205 Options
2206 .\"Options Menu"
2207 menus.
2209 If you activate the
2210 .I auto save setup
2211 option, MC will always save the current settings when exiting.
2213 There also exist settings which can't be changed from the menus. To
2214 change these settings you have to edit the setup file with your
2215 favorite editor. See the section on
2216 .\"LINK2"
2217 Special Settings
2218 .\"Special Settings"
2219 for more information.
2220 .SH ""
2221 .\"NODE "Executing operating system commands"
2222 .SH "Executing operating system commands"
2223 You may execute commands by typing them directly in the Midnight
2224 Commander's input line, or by selecting the program you want to
2225 execute with the selection bar in one of the panels and hitting Enter.
2227 If you press Enter over a file that is not executable, the Midnight
2228 Commander checks the extension of the selected file against the
2229 extensions in the
2230 .\"LINK2"
2231 Extensions File\&.
2232 .\"Extension File Edit"
2233 If a match is found then the code associated with that extension is
2234 executed. A very simple
2235 .\"LINK2"
2236 macro expansion
2237 .\"Macro Substitution"
2238 takes place before executing the command.
2239 .\"NODE "  The cd internal command"
2240 .SH "  The cd internal command"
2242 .I cd
2243 command is interpreted by the Midnight Commander, it is not passed to
2244 the command shell for execution.  Thus it may not handle all of the
2245 nice macro expansion and substitution that your shell does, although it
2246 does some of them:
2248 .I Tilde substitution.
2249 The (~) will be substituted with your home directory, if you append a
2250 username after the tilde, then it will be substituted with the login
2251 directory of the specified user.
2253 For example, ~guest is the home directory for the user guest, while
2254 ~/guest is the directory guest in your home directory.
2256 .I Previous directory.
2257 You can jump to the directory you were previously by using the special
2258 directory name '\-' like this:
2259 .B cd \-
2261 .I CDPATH directories.
2262 If the directory specified to the
2263 .B cd
2264 command is not in the current directory, then The Midnight Commander
2265 uses the value in the environment variable
2266 .B CDPATH
2267 to search for the directory in any of the named directories.
2269 For example you could set your
2270 .B CDPATH
2271 variable to ~/src:/usr/src, allowing you to change your directory to
2272 any of the directories inside the ~/src and /usr/src directories, from
2273 any place in the file system by using its relative name (for example
2274 cd linux could take you to /usr/src/linux).
2275 .\"NODE "  Macro Substitution"
2276 .SH "  Macro Substitution"
2277 When accessing a
2278 .\"LINK2"
2279 user menu\&,
2280 .\"Menu File Edit"
2281 or executing an
2282 .\"LINK2"
2283 extension dependent command\&,
2284 .\"Extension File Edit"
2285 or running a command from the command line input, a simple macro
2286 substitution takes place.
2288 The macros are:
2290 .I %i
2291 The indent of blank space, equal the cursor column position.  For edit
2292 menu only.
2294 .I %y
2295 The syntax type of current file. For edit menu only.
2297 .I %k
2298 The block file name.
2300 .I %e
2301 The error file name.
2303 .I %m
2304 The current menu name.
2306 .IR %f " and " %p
2307 The current file name.
2309 .I %x
2310 The extension of current file name.
2312 .I %b
2313 The current file name without extension.
2315 .I %d
2316 The current directory name.
2318 .I %F
2319 The current file in the unselected panel.
2321 .I %D
2322 The directory name of the unselected panel.
2324 .I %t
2325 The currently tagged files.
2327 .I %T
2328 The tagged files in the unselected panel.
2330 .IR %u " and " %U
2331 Similar to the %t and %T macros, but in addition the files are untagged.
2332 You can use this macro only once per menu file entry or extension file
2333 entry, because next time there will be no tagged files.
2335 .IR %s " and " %S
2336 The selected files: The tagged files if there are any. Otherwise the
2337 current file.
2339 .I %cd
2340 This is a special macro that is used to change the current directory
2341 to the directory specified in front of it.  This is used primarily as
2342 an interface to the
2343 .\"LINK2"
2344 Virtual File System\&.
2345 .\"Virtual File System"
2347 .I %view
2348 This macro is used to invoke the internal viewer.  This macro can be
2349 used alone, or with arguments.  If you pass any arguments to this
2350 macro, they should be enclosed in brackets.
2352 The arguments are:
2353 .I ascii
2354 to force the viewer into ascii mode;
2355 .I hex
2356 to force the viewer into hex mode;
2357 .I nroff
2358 to tell the viewer that it should interpret the bold and underline
2359 sequences of nroff;
2360 .I unformatted
2361 to tell the viewer to not interpret nroff commands for making the text
2362 bold or underlined.
2364 .I %%
2365 The % character
2367 .I %{some text}
2368 Prompt for the substitution. An input box is shown and the text inside
2369 the braces is used as a prompt. The macro is substituted by the text
2370 typed by the user. The user can press ESC or F10 to cancel. This macro
2371 doesn't work on the command line yet.
2373 .I %var{ENV:default}
2374 If environment variable
2375 .I ENV
2376 is unset, the
2377 .I default
2378 is substituted.  Otherwise, the value of
2379 .I ENV
2380 is substituted.
2381 .\"NODE "  The subshell support"
2382 .SH "  The subshell support"
2383 The subshell support is a compile time option, that works with the
2384 shells: bash, tcsh and zsh.
2386 When the subshell code is activated the Midnight Commander will
2387 spawn a concurrent copy of your shell (the one defined in the
2388 .B SHELL
2389 variable and if it is not defined, then the one in the /etc/passwd
2390 file) and run it in a pseudo terminal, instead of invoking a new shell
2391 each time you execute a command, the command will be passed to the
2392 subshell as if you had typed it.  This also allows you to change the
2393 environment variables, use shell functions and define aliases that are
2394 valid until you quit the Midnight Commander.
2396 If you are using
2397 .B bash
2398 you can specify startup
2399 commands for the subshell in your ~/.mc/bashrc file and
2400 special keyboard maps in the ~/.mc/inputrc file.
2401 .B tcsh
2402 users may specify startup commands in the ~/.mc/tcshrc file.
2404 When the subshell code is used, you can suspend applications at any
2405 time with the sequence C\-o and jump back to the Midnight Commander, if
2406 you interrupt an application, you will not be able to run other
2407 external commands until you quit the application you interrupted.
2409 An extra added feature of using the subshell is that the prompt
2410 displayed by the Midnight Commander is the same prompt that you are
2411 currently using in your shell.
2414 .\"LINK2"
2415 OPTIONS
2416 .\"OPTIONS"
2417 section has more information on how you can control the subshell code.
2418 .\"NODE "Chmod"
2419 .SH "Chmod"
2420 The Chmod window is used to change the attribute bits in a group of
2421 files and directories.  It can be invoked with the C\-x c key combination.
2423 The Chmod window has two parts \-
2424 .I Permissions
2426 .IR File .
2428 In the File section are displayed the name of the file or directory
2429 and its permissions in octal form, as well as its owner and group.
2431 In the Permissions section there is a set of check buttons which
2432 correspond to the file attribute bits.  As you change the attribute
2433 bits, you can see the octal value change in the File section.
2435 To move between the widgets (buttons and check buttons) use the
2436 .I arrow keys
2437 or the
2438 .I Tab
2439 key.  To change the state of the check buttons or to select a button
2441 .I Space.
2442 You can also use the hotkeys on the buttons to quickly activate them.
2443 Hotkeys are shown as highlighted letters on the buttons.
2445 To set the attribute bits, use the Enter key.
2447 When working with a group of files or directories, you just click on
2448 the bits you want to set or clear.  Once you have selected the bits
2449 you want to change, you select one of the action buttons (Set marked
2450 or Clear marked).
2452 Finally, to set the attributes exactly to those specified, you can use
2454 .B [Set all]
2455 button, which will act on all the tagged files.
2457 .B [Marked all]
2458 set only marked attributes to all selected files
2460 .B [Set marked]
2461 set marked bits in attributes of all selected files
2463 .B [Clean marked]
2464 clear marked bits in attributes of all selected files
2466 .B [Set]
2467 set the attributes of one file
2469 .B [Cancel]
2470 cancel the Chmod command
2471 .\"NODE "Chown"
2472 .SH "Chown"
2473 The Chown command is used to change the owner/group of a file. The hot
2474 key for this command is C\-x o.
2475 .\"NODE "Advanced Chown"
2476 .SH "Advanced Chown"
2477 The Advanced Chown command is the
2478 .\"LINK2"
2479 Chmod
2480 .\"Chmod"
2482 .\"LINK2"
2483 Chown
2484 .\"Chown"
2485 command combined into one window. You can change the permissions and
2486 owner/group of files at once.
2487 .\"NODE "File Operations"
2488 .SH "File Operations"
2489 When you copy, move or delete files the Midnight Commander shows the
2490 file operations dialog.  It shows the files currently being processed
2491 and uses up to three progress bars.  The file bar indicates the
2492 percentage of the current file that has been processed so far.  The
2493 count bar shows how many of the tagged files have been handled.  The
2494 bytes bar indicates the percentage of the total size of the tagged files
2495 that has been handled.  If the verbose option is off, the file and bytes
2496 bars are not shown.
2498 There are two buttons at the bottom of the dialog. Pressing the Skip
2499 button will skip the rest of the current file. Pressing the Abort
2500 button will abort the whole operation, the rest of the files are
2501 skipped.
2503 There are three other dialogs which you can run into during the file
2504 operations.
2506 The error dialog informs about error conditions and has three choices.
2507 Normally you select either the Skip button to skip the file or the Abort
2508 button to abort the operation altogether.  You can also select the Retry
2509 button if you fixed the problem from another terminal.
2511 The replace dialog is shown when you attempt to copy or move a file on
2512 the top of an existing file.  The dialog shows the dates and sizes of
2513 the both files.  Press the Yes button to overwrite the file, the No
2514 button to skip the file, the All button to overwrite all the files, the
2515 None button to never overwrite and the Update button to overwrite if the
2516 source file is newer than the target file.  You can abort the whole
2517 operation by pressing the Abort button.
2519 The recursive delete dialog is shown when you try to delete a directory
2520 which is not empty.  Press the Yes button to delete the directory
2521 recursively, the No button to skip the directory, the All button to
2522 delete all the directories and the None button to skip all the non\-empty
2523 directories.  You can abort the whole operation by pressing the Abort
2524 button.  If you selected the Yes or All button you will be asked for a
2525 confirmation.  Type "yes" only if you are really sure you want to do the
2526 recursive delete.
2528 If you have tagged files and perform an operation on them only the files
2529 on which the operation succeeded are untagged. Failed and skipped files
2530 are left tagged.
2531 .\"NODE "Mask Copy/Rename"
2532 .SH "Mask Copy/Rename"
2533 The copy/move operations let you translate the names of files in an
2534 easy way.  To do it, you have to specify the correct source mask and
2535 usually in the trailing part of the destination specify some wildcards.
2536 All the files matching the source mask are copied/renamed according to
2537 the target mask.  If there are tagged files, only the tagged files
2538 matching the source mask are renamed.
2540 There are other options which you can set:
2542 .B Follow links
2544 determines whether make the symlinks and hardlinks in the source
2545 directory (recursively in subdirectories) new links in the target
2546 directory or whether would you like to copy their content.
2548 .B Dive into subdirs
2550 determines the behavior when the source directory is about to be copied,
2551 but the target directory already exists.  The default action is to copy
2552 the contents of the source directory into the target directory.
2553 Enabling this option causes copying the source directory itself into the
2554 target directory.
2556 For example, you want to copy directory
2557 .I /foo
2558 containing file
2559 .I bar
2561 .IR /bla/foo ,
2562 which is an already existing directory.  Normally (when
2563 .B Dive into subdirs
2564 is not set), mc would copy file
2565 .I /foo/bar
2566 into the file
2567 .IR /bla/foo/bar .
2568 By enabling this option the
2569 .I /bla/foo/foo
2570 directory will be created, and
2571 .I /foo/bar
2572 will be copied into
2573 .IR /bla/foo/foo/bar .
2575 .B Preserve attributes
2577 determines whether to preserve the permissions, timestamps and (if you
2578 are root) the ownership of the original files.  If this option is not
2579 set, the current value of the umask will be respected.
2581 .B Use shell patterns on
2583 When the shell patterns option is on you can use the '*' and '?'
2584 wildcards in the source mask.  They work like they do in the shell.  In
2585 the target mask only the '*' and '\\<digit>' wildcards are allowed.  The
2586 first '*' wildcard in the target mask corresponds to the first wildcard
2587 group in the source mask, the second '*' corresponds to the second group
2588 and so on.  The '\\1' wildcard corresponds to the first wildcard group
2589 in the source mask, the '\\2' wildcard corresponds to the second group
2590 and so on all the way up to '\\9'.  The '\\0' wildcard is the whole
2591 filename of the source file.
2593 Two examples:
2595 If the source mask is "*.tar.gz", the destination is "/bla/*.tgz" and the
2596 file to be copied is "foo.tar.gz", the copy will be "foo.tgz" in "/bla".
2598 Suppose you want to swap basename and extension so that "file.c" would
2599 become "c.file" and so on.  The source mask for this is "*.*" and the
2600 destination is "\\2.\\1".
2602 .B Use shell patterns off
2604 When the shell patterns option is off the MC doesn't do automatic
2605 grouping anymore. You must use '\\(...\\)' expressions in the source
2606 mask to specify meaning for the wildcards in the target mask. This is
2607 more flexible but also requires more typing. Otherwise target masks
2608 are similar to the situation when the shell patterns option is on.
2610 Two examples:
2612 If the source mask is "^\\(.*\\)\\.tar\\.gz$", the destination is
2613 "/bla/*.tgz" and the file to be copied is "foo.tar.gz", the copy
2614 will be "/bla/foo.tgz".
2616 Let's suppose you want to swap basename and extension so that "file.c"
2617 will become "c.file" and so on. The source mask for this is
2618 "^\\(.*\\)\\.\\(.*\\)$" and the destination is "\\2.\\1".
2620 .B Case Conversions
2622 You can also change the case of the filenames.  If you use '\\u'
2623 or '\\l' in the target mask, the next character will be converted to
2624 uppercase or lowercase correspondingly.
2626 If you use '\\U' or '\\L' in the target mask, the next characters will
2627 be converted to uppercase or lowercase correspondingly up to the
2628 next '\\E' or next '\\U', '\\L' or the end of the file name.
2630 The '\\u' and '\\l' are stronger than '\\U' and '\\L'.
2632 For example, if the source mask is '*' (shell patterns on) or '^\\(.*\\)$'
2633 (shell patterns off) and the target mask is '\\L\\u*' the file names
2634 will be converted to have initial upper case and otherwise lower case.
2636 You can also use '\\' as a quote character. For example, '\\\\' is
2637 a backslash and '\\*' is an asterisk.
2639 .B Stable symlinks
2641 commands Midnight Commander, that it should change symlinks in the target,
2642 so that they'll point to the same location as it did before. With absolute
2643 symbolic links this does nothing, but if you have a relative one, it will
2644 recompute its value, adding necessary ../ and other directory parts and making
2645 the value as short as possible (most modern filesystems keep short symlinks
2646 inside inodes and thus don't waste much disk space).
2648 .\"NODE "Select/Unselect Files"
2649 .SH "Select/Unselect Files"
2650 The dialog of group of files and directories selection or uselection.
2652 .\"LINK2"
2653 input line
2654 .\"Input Line Keys"
2655 allow enter the regular expression of filenames that will be
2656 selected/unselected.
2658 When
2659 .I Files only
2660 checkbox is on, only files will be selected.  If
2661 .I Files only
2662 is off, as files as directories will be selected.
2663 When
2664 .I Shell Patterns
2665 checkbox is on, the regular expression is much like the filename globbing
2666 in the shell (* standing for zero or more characters and ?  standing
2667 for one character). If
2668 .I Shell Patterns
2669 is off, then the tagging of files is done with normal regular
2670 expressions (see ed (1)). When
2671 .I Case sensitive
2672 checkbox is on, the selection will be case sensitive characters.
2674 .I Case sensitive
2675 is off, the case will be ignored.
2676 .\"NODE "Diff Viewer"
2677 .SH "Internal Diff Viewer"
2678 The mcdiff is a visual diff tool. You can compare two files and edit them
2679 in\-place (diffs are updated dynamically). You can browse and view a working
2680 copy from popular version control systems (GIT, Subversion, etc).
2682 Following shortcuts are available in internal diff viewer of Midnight
2683 Commander.
2685 .B F1
2686 Invoke the built\-in hypertext help viewer.
2688 .B F2
2689 Save modified files.
2691 .B F4
2692 Edit file of the left panel in the internal editor.
2694 .B F14
2695 Edit file of the right panel in the internal editor.
2697 .B F5
2698 Merge the current hunk. Only the current hunk will be merged.
2700 .B F7
2701 Start search.
2703 .B F17
2704 Continue search.
2706 .B F10, Esc, q
2707 Exit from diff viewer.
2709 .B Alt\-s, s
2710 Toggle show of hunk status.
2712 .B Alt\-n, l
2713 Toggle show of line numbers.
2715 .B f
2716 Maximize left panel.
2718 .B \=
2719 Make panels equal in width.
2721 .B \>
2722 Reduce the size of the right panel.
2724 .B \<
2725 Reduce the size of the left panel.
2727 .B c
2728 Toggle show of trailing carriage return (CR) symbol as ^M.
2730 .B 2, 3, 4, 8
2731 Set tabulation size
2733 .B C\-u
2734 Swap contents of diff panels.
2736 .B C\-r
2737 Refresh the screen.
2739 .B C\-o
2740 Switch to the subshell and show the command screen.
2742 .B Enter, Space, n
2743 Find next diff hunk.
2745 .B Backspace, p
2746 Find previous diff hunk.
2748 .B g
2749 Go to line.
2751 .B Down
2752 Scroll one line forward.
2754 .B Up
2755 Scroll one line backward.
2757 .B PageUp
2758 Move one page up.
2760 .B PageDown
2761 Mves one page down.
2763 .B Home, A1
2764 Moves to the line beginning.
2766 .B End
2767 Moves to the line end.
2769 .B C\-Home
2770 Move to the file beginning.
2772 .B C\-End, C1
2773 Move to the file end.
2774 .\"NODE "Internal File Viewer"
2775 .SH "Internal File Viewer"
2776 The internal file viewer provides two display modes: ASCII and hex.
2777 To toggle between modes, use the F4 key.
2779 The viewer will try to use the best method provided by your system or
2780 the file type to display the information.
2781 Some character sequences, which appear most often in preformatted manual
2782 pages, are displayed bold and underlined, thus making a pretty display
2783 of your files.
2785 When in hex mode, the search function accepts text in quotes and
2786 constant numbers.  Text in quotes is matched exactly after removing
2787 the quotes.  Each number matches one byte.  You can mix quoted text
2788 with constants like this:
2791 "String" \-1 0xBB 012 "more text"
2794 Note that 012 is an octal number.  \-1 is converted to 0xFF.
2796 Here is a listing of the actions associated with each key that the
2797 Midnight Commander handles in the internal file viewer.
2799 .B F1
2800 Invoke the built\-in hypertext help viewer.
2802 .B F2
2803 Toggle the wrap mode.
2805 .B F4
2806 Toggle the hex mode.
2808 .B F5
2809 Goto line.  This will prompt you for a line number and will display
2810 that line.
2812 .B F6, /.
2813 Regular expression search.
2815 .B ?,
2816 Reverse regular expression search.
2818 .B F7
2819 Normal search / hex mode search.
2821 .B C\-s, F17, n.
2822 Start normal search if there was no previous search expression else
2823 find next match.
2825 .B C\-r.
2826 Start reverse search if there was no previous search expression else
2827 find next match.
2829 .B F8
2830 Toggle Raw/Parsed mode: This will show the file as found on disk or if
2831 a processing filter has been specified in the mc.ext file, then the
2832 output from the filter. Current mode is always the other than written
2833 on the button label, since on the button is the mode which you enter
2834 by that key.
2836 .B F9
2837 Toggle the format/unformat mode: when format mode is on the viewer
2838 will interpret some string sequences to show bold and underline with
2839 different colors. Also, on button label is the other mode than current.
2841 .B F10, Esc.
2842 Exit the internal file viewer.
2844 .B next\-page, space, C\-v.
2845 Scroll one page forward.
2847 .B prev\-page, Alt\-v, C\-b, Backspace.
2848 Scroll one page backward.
2850 .B down\-key
2851 Scroll one line forward.
2853 .B up\-key
2854 Scroll one line backward.
2856 .B C\-l
2857 Refresh the screen.
2859 .B C\-o
2860 Switch to the subshell and show the command screen.
2862 .B !
2863 Like C\-o, but run a new shell if the subshell is not running.
2865 .B "[n] m"
2866 Set the mark n.
2868 .B "[n] r"
2869 Jump to the mark n.
2871 .B C\-f
2872 Jump to the next file.
2874 .B C\-b
2875 Jump to the previous file.
2877 .B Alt\-r
2878 Toggle the ruler.
2880 .B Alt\-e
2881 to change charset of displayed text may use M\-e (Alt\-e).
2882 Recoding is made from selected codepage into system codepage. To
2883 cancel the recoding you may select "<No translation>" in charset
2884 selection dialog.
2886 It's possible to instruct the file viewer how to display a file, look
2887 at the
2888 .\"LINK2"
2889 Extension File Edit section
2890 .\"Extension File Edit"
2892 .\"NODE "Internal File Editor"
2893 .SH "Internal File Editor"
2894 The internal file editor is a full\-featured full screen editor.  It can
2895 edit files up to 64 megabytes.  It is possible to edit binary files.
2896 The internal file editor is invoked using
2897 .B F4
2898 if the
2899 .I use_internal_edit
2900 option is set in the initialization file.
2902 The features it presently supports are: block copy, move, delete, cut,
2903 paste; key for key undo; pull\-down menus; file insertion; macro
2904 commands; regular expression search and replace; shift\-arrow text highlighting
2905 (if supported by the terminal); insert\-overwrite toggle; word wrap;
2906 autoindent; tunable tab size; syntax highlighting for various file
2907 types; and an option to pipe text blocks through shell commands like
2908 indent and ispell.
2910 Sections:
2913 .\"LINK2"
2914 Options of editor in ini-file
2915 .\"Internal File Editor / options"
2918 The editor is very easy to use and requires no tutoring. To see what
2919 keys do what, just consult the appropriate pull\-down menu. Other keys
2920 are: Shift movement keys do text highlighting.
2921 .B Ctrl\-Ins
2922 copies to the file
2923 .B cooledit.clip
2925 .B Shift\-Ins
2926 pastes from cooledit.clip.
2927 .B Shift\-Del
2928 cuts to
2929 .BR cooledit.clip ,
2931 .B Ctrl\-Del
2932 deletes highlighted text. Mouse highlighting also works, and you
2933 can override the mouse as usual by holding down the shift key
2934 while dragging the mouse to let normal terminal mouse highlighting
2935 work.
2937 To define a macro, press
2938 .B Ctrl\-R
2939 and then type out the key
2940 strokes you want to be executed. Press
2941 .B Ctrl\-R
2942 again when finished. You can then assign the macro to any key you
2943 like by pressing that key. The macro is executed when you press
2944 .B Ctrl\-A
2945 and then the assigned key. The macro is also executed if
2946 you press Meta, Ctrl, or Esc and the assigned key, provided that the
2947 key is not used for any other function. Once defined, the macro
2948 commands go into the file
2949 .B .mc/cedit/cooledit.macros
2950 in your home directory. You can delete a macro by deleting the
2951 appropriate line in this file.
2954 To change charset of displayed text may use M\-e (Alt\-e).
2955 Recoding is made from selected codepage into system codepage. To
2956 cancel the recoding you may select "<No translation>" in charset
2957 selection dialog.
2960 .B F19
2961 will format the currently highlighted block (plain text or
2962 .B C
2964 .B C++
2965 code or another). This is controlled by the
2966 file
2967 .B @prefix@/share/mc/edit.indent.rc
2968 which is copied to
2969 .B .mc/cedit/edit.indent.rc
2970 in your home directory the first time you use it.
2972 The editor also displays non\-us characters (160+). When editing
2973 binary files, you should set
2974 .B display bits
2975 to 7 bits in the options menu to keep the spacing clean.
2977 .\"NODE "Internal File Editor / options"
2978 .SH "Options of editor in ini-file"
2980 In this section described some options in ini-file.
2981 Options placed in '[Midnight Commander]' section
2984 .I editor_wordcompletion_collect_entire_file
2985 Search autocomplete candidates in entire of file or just from
2986 begin of file to cursor position (0)
2989 .\"NODE "Completion"
2990 .SH "Completion"
2991 Let the Midnight Commander type for you.
2993 Attempt to perform completion on the text before current position.  MC
2994 attempts completion treating the text as variable (if the text begins
2995 with
2996 .BR $ ),
2997 username (if the text begins with
2998 .BR ~ ),
2999 hostname (if the text begins with
3000 .BR @ )
3001 or command (if you are on the command line in the position where you
3002 might type a command, possible completions then include shell reserved
3003 words and shell built\-in commands as well) in turn.  If none of these
3004 matches, filename completion is attempted.
3006 Filename, username, variable and hostname completion works on all input
3007 lines, command completion is command line specific.  If the completion
3008 is ambiguous (there are more different possibilities), MC beeps and the
3009 following action depends on the setting of the
3010 .I Complete: show all
3011 option in the
3012 .\"LINK2"
3013 Configuration
3014 .\"Configuration"
3015 dialog.  If it is enabled, a list of all possibilities pops up next to
3016 the current position and you can select with the arrow keys and
3017 .B Enter
3018 the correct entry.  You can also type the first letters in which the
3019 possibilities differ to move to a subset of all possibilities and
3020 complete as much as possible.  If you press
3021 .B Alt\-Tab
3022 again, only the subset will be shown in the listbox, otherwise the first
3023 item which matches all the previous characters will be highlighted.  As
3024 soon as there is no ambiguity, dialog disappears, but you can hide it by
3025 canceling keys
3026 .BR Esc ,
3027 .B F10
3028 and left and right arrow keys. If
3029 .\"LINK2"
3030 Complete: show all
3031 .\"Configuration"
3032 is disabled, the dialog pops up only if you press
3033 .B Alt\-Tab
3034 for the second time, for the first time MC just beeps.
3035 .\"NODE "Virtual File System"
3036 .SH "Virtual File System"
3037 The Midnight Commander is provided with a code layer to access the file
3038 system; this code layer is known as the virtual file system switch.  The
3039 virtual file system switch allows the Midnight Commander to manipulate
3040 files not located on the Unix file system.
3042 Currently the Midnight Commander is packaged with some Virtual File
3043 Systems (VFS): the
3044 .I local
3045 file system, used for accessing the regular Unix file system; the
3046 .IR ftpfs ,
3047 used to manipulate files on remote systems with the FTP protocol; the
3048 .IR tarfs ,
3049 used to manipulate tar and compressed tar files; the
3050 .IR undelfs ,
3051 used to recover deleted files on ext2 file systems (the default file
3052 system for Linux systems),
3053 .I fish
3054 (for manipulating files over shell connections such as rsh and ssh) and
3055 finally the
3056 .I mcfs
3057 (Midnight Commander file system), a network based file system.  If the
3058 code was compiled with
3059 .I smbfs
3060 support, you can manipulate files on remote systems with the SMB (CIFS)
3061 protocol.
3063 A generic
3064 .I extfs
3065 (EXTernal virtual File System) is provided in order to easily expand
3066 VFS capabilities using scripts and external software.
3068 The VFS switch code will interpret all of the path names used and will
3069 forward them to the correct file system, the formats used for each one
3070 of the file systems is described later in their own section.
3071 .\"NODE "  FTP File System"
3072 .SH "  FTP File System"
3073 The FTP File System (ftpfs) allows you to manipulate files on remote
3074 machines.  To actually use it, you can use the
3075 .I FTP link
3076 item in the menu or directly change your current directory using the
3077 .I cd
3078 command to a path name that looks like this:
3080 .I /#ftp:[!][user[:pass]@]machine[:port][remote\-dir]
3083 .IR user ,
3084 .I port
3086 .I remote\-dir
3087 elements are optional.  If you specify the
3088 .I user
3089 element, the Midnight Commander will login to the remote machine as that
3090 user, otherwise it will use anonymous login or the login name from the
3091 .I ~/.netrc
3092 file.  The optional
3093 .I pass
3094 element is the password used for the connection.  Using the password in
3095 the VFS directory name is not recommended, because it can appear on the
3096 screen in clear text and can be saved to the directory history.
3098 To enable using FTP proxy, prepend
3099 .B !
3100 (an exclamation sign) to the hostname.
3102 Examples:
3105     /#ftp:ftp.nuclecu.unam.mx/linux/local
3106     /#ftp:tsx\-11.mit.edu/pub/linux/packages
3107     /#ftp:!behind.firewall.edu/pub
3108     /#ftp:guest@remote\-host.com:40/pub
3109     /#ftp:miguel:xxx@server/pub
3112 Please check the
3113 .\"LINK2"
3114 Virtual File System
3115 .\"Virtual FS"
3116 dialog box for ftpfs options.
3117 .\"NODE "  Tar File System"
3118 .SH "  Tar File System"
3119 The tar file system provides you with read\-only access to your tar
3120 files and compressed tar files by using the chdir command.  To change
3121 your directory to a tar file, you change your current directory to the
3122 tar file by using the following syntax:
3124 .I /filename.tar#utar/[dir\-inside\-tar]
3126 The mc.ext file already provides a shortcut for tar files, this means
3127 that usually you just point to a tar file and press return to enter
3128 into the tar file, see the
3129 .\"LINK2"
3130 Extension File Edit
3131 .\"Extension File Edit"
3132 section for details on how this is done.
3134 Examples:
3137     mc\-3.0.tar.gz#utar/mc\-3.0/vfs
3138     /ftp/GCC/gcc\-2.7.0.tar#utar
3141 The latter specifies the full path of the tar archive.
3142 .\"NODE "  FIle transfer over SHell filesystem"
3143 .SH "  FIle transfer over SHell filesystem"
3144 The fish file system is a network based file system that allows you to
3145 manipulate the files in a remote machine as if they were local. To use
3146 this, the other side has to either run fish server, or has to have
3147 bash\-compatible shell.
3149 To connect to a remote machine, you just need to chdir
3150 into a special directory which name is in the following
3151 format:
3153 .I /#sh:[user@]machine[:options]/[remote\-dir]
3156 .I user,
3157 .I options
3159 .I remote\-dir
3160 elements are optional.  If you specify the
3161 .I user
3162 element, the Midnight Commander will try to login on the remote
3163 machine as that user, otherwise it will use your login name.
3165 The available
3166 .I options
3167 are:
3169   'C' \- use compression;
3170   'r' \- use rsh instead of ssh;
3171   port \- specify the port used by remote server.
3173 If the
3174 .I remote\-dir
3175 element is present, your current directory on the remote machine will be
3176 set to this one.
3178 Examples:
3181     /#sh:onlyrsh.mx:r/linux/local
3182     /#sh:joe@want.compression.edu:C/private
3183     /#sh:joe@noncompressed.ssh.edu/private
3184     /#sh:joe@somehost.ssh.edu:2222/private
3186 .\"NODE "  Network File System"
3187 .SH "  Network File System"
3188 The Midnight Commander file system is a network base file system that
3189 allows you to manipulate the files in a remote machine as if they were
3190 local.  To use this, the remote machine must be running the mcserv(8)
3191 server program.
3193 To connect to a remote machine, you just need to chdir into a special
3194 directory which name is in the following format:
3196 .I /#mc:[user@]machine[:port][remote\-dir]
3199 .I user, port
3201 .I remote\-dir
3202 elements are optional.  If you specify the
3203 .I user
3204 element then the Midnight Commander will try to logon on the remote
3205 machine as that user, otherwise it will use your login name.
3208 .I port
3209 element is used when the remote server is running on a special port
3210 (see the mcserv(8) manual page for more information about ports);
3211 finally, if the
3212 .I remote\-dir
3213 element is present, your current directory on the remote machine will
3214 be set to this one.
3216 Examples:
3219     /#mc:ftp.nuclecu.unam.mx/linux/local
3220     /#mc:joe@foo.edu:11321/private
3222 .\"NODE "  Undelete File System"
3223 .SH "  Undelete File System"
3224 On Linux systems, if you asked configure to use the ext2fs undelete
3225 facilities, you will have the undelete file system available.
3226 Recovery of deleted files is only available on ext2 file systems.  The
3227 undelete file system is just an interface to the ext2fs library to
3228 retrieve all of the deleted files names on an ext2fs and provides and
3229 to extract the selected files into a regular partition.
3231 To use this file system, you have to chdir into the special file name
3232 formed by the "/#undel" prefix and the file name where the actual
3233 file system resides.
3235 For example, to recover deleted files on the second partition of the
3236 first SCSI disk on Linux, you would use the following path name:
3239     /#undel:sda2
3242 It may take a while for the undelfs to load the required information
3243 before you start browsing files there.
3244 .\"NODE "  SMB File System"
3245 .SH "  SMB File System"
3246 The smbfs allows you to manipulate files on remote machines with SMB
3247 (or CIFS) protocol.  These include Windows for Workgroups,
3248 Windows 9x/ME/XP, Windows NT, Windows 2000 and Samba.
3249 To actually use it, you may try to use the panel command "SMB link..."
3250 (accessible from the menubar) or you may directly change your current
3251 directory to it using the cd command to a path name that looks like this:
3253 .I /#smb:[user@]machine[/service][/remote\-dir]
3256 .IR user ,
3257 .I service
3259 .I remote\-dir
3260 elements are optional.
3262 .IR user ,
3263 .I domain
3265 .I password
3266 can be specified in an input dialog.
3268 Examples:
3271     /#smb:machine/Share
3272     /#smb:other_machine
3273     /#smb:guest@machine/Public/Irlex
3275 .\"NODE "  EXTernal File System"
3276 .SH "  EXTernal File System"
3277 .B extfs
3278 allows to integrate numerous features and file types into GNU Midnight
3279 Commander in an easy way, by writing scripts.
3281 Extfs filesystems can be divided into two categories:
3283 1. Stand\-alone filesystems, which are not associated with any existing
3284 file.  They represent certain system\-wide data as a directory tree.
3285 You can invoke them by typing
3286 .RI ' "cd #fsname" '
3287 where fsname is an extfs short name (see below).  Examples of such
3288 filesystems include audio (list audio tracks on the CD) or apt (list of
3289 all Debian packages in the system).
3291 For example, to list CD\-Audio tracks on your CD\-ROM drive, type
3294   cd #audio
3297 2. 'Archive' filesystems (like rpm, patchfs and more), which represent
3298 contents of a file as a directory tree.  It can consist of 'real' files
3299 compressed in an archive (urar, rpm) or virtual files, like messages
3300 in a mailbox (mailfs) or parts of a patch (patchfs).  To access such
3301 filesystems
3302 .RI ' #fsname '
3303 should be appended to the archive name.  Note that the archive itself
3304 can be on another vfs.
3306 For example, to list contents of a zip archive documents.zip type
3309   cd documents.zip#uzip
3312 In many aspects, you could treat extfs like any other directory.  For
3313 instance, you can add it to the hotlist or change to it from directory
3314 history.  An important limitation is that you cannot invoke shell
3315 commands inside extfs, just like any other non\-local VFS.
3317 Common extfs scripts included with Midnight Commander are:
3319 .B a
3320 access 'A:' DOS/Windows diskette
3321 .RI ( "cd #a" ).
3323 .B apt
3324 front end to Debian's APT package management system
3325 .RI ( "cd #apt" ).
3327 .B audio
3328 audio CD ripping and playing
3329 .RI ( "cd #audio"
3331 .IR "cd device#audio" ).
3333 .B bpp
3334 package of Bad Penguin GNU/Linux distribution
3335 .RI ( "cd file.bpp#bpp" ).
3337 .B deb
3338 package of Debian GNU/Linux distribution
3339 .RI ( "cd file.deb#deb" ).
3341 .B dpkg
3342 Debian GNU/Linux installed packages
3343 .RI ( "cd #deb" ).
3345 .B hp48
3346 view and copy files to/from a HP48 calculator
3347 .RI ( "cd #hp48" ).
3349 .B lslR
3350 browsing of lslR listings as found on many FTPs
3351 .RI ( "cd filename#lslR" ).
3353 .B mailfs
3354 mbox\-style mailbox files support
3355 .RI ( "cd mailbox#mailfs" ).
3357 .B patchfs
3358 extfs to handle unified and context diffs
3359 .RI ( "cd filename#patchfs" ).
3361 .B rpm
3362 RPM package
3363 .RI ( "cd filename#rpm" ).
3365 .B rpms
3366 RPM database management
3367 .RI ( "cd #rpms" ).
3369 .B ulha, urar, uzip, uzoo, uar, uha
3370 archivers
3371 .RI ( "cd archive#xxxx"
3372 where xxxx is one of:
3373 .IR ulha ,
3374 .IR urar ,
3375 .IR uzip ,
3376 .IR uzoo ,
3377 .IR uar ,
3378 .IR uha ).
3380 You could bind file type/extension to specified extfs as described in the
3381 .\"LINK2"
3382 Extension File Edit
3383 .\"Extension File Edit"
3384 section.  Here is an example entry for Debian packages:
3387   regex/\.deb$
3388           Open=%cd %p#deb
3390 .\"NODE "Colors"
3391 .SH "Colors"
3392 The Midnight Commander will try to detect if your terminal supports
3393 color using the terminal database and your terminal name.  Sometimes
3394 it gets confused, so you may force color mode or disable color mode
3395 using the \-c and \-b flag respectively.
3397 If the program is compiled with the Slang screen manager instead of
3398 ncurses, it will also check the variable
3399 .B COLORTERM,
3400 if it is set, it has the same effect as the \-c flag.
3402 You may specify terminals that always force color mode
3403 by adding the
3404 .I color_terminals
3405 variable to the Colors section of the initialization file.  This will
3406 prevent the Midnight Commander from trying to detect if your terminal
3407 supports color.  Example:
3410 [Colors]
3411 color_terminals=linux,xterm
3412 color_terminals=terminal\-name1,terminal\-name2...
3415 The program can be compiled with both ncurses and slang, ncurses does
3416 not provide a way to force color mode: ncurses uses just the
3417 information in the terminal database.
3419 The Midnight Commander provides a way to change the default colors.
3420 Currently the colors are configured using the environment variable
3421 .B MC_COLOR_TABLE
3422 or the Colors section in the initialization file.
3424 In the Colors section, the default color map is loaded from the
3425 .I base_color
3426 variable.  You can specify an alternate color map for a terminal by
3427 using the terminal name as the key in this section.  Example:
3430 [Colors]
3431 base_color=
3432 xterm=menu=magenta:marked=,magenta:markselect=,red
3435 The format for the color definition is:
3438   <keyword>=<foregroundcolor>,<backgroundcolor>:<keyword>= ...
3441 The colors are optional, and the keywords are: normal, selected, marked,
3442 markselect, errors, input, inputmark, inputunchanged, commandlinemark,
3443 reverse, gauge.  Menu colors are: menunormal,
3444 menusel, menuhot, menuhotsel, menuinactive. Dialog colors are: dnormal, dfocus,
3445 dhotnormal, dhotfocus.  Help colors are: helpnormal, helpitalic,
3446 helpbold, helplink, helpslink.  Viewer color is: viewunderline. Editor
3447 colors are: editnormal, editbold, editmarked.
3449 .I input
3450 determines the color of input lines used in query dialogs.
3452 .I gauge
3453 determines the color of the filled part of the progress bar (gauge),
3454 which is used to show the user the progress of file operations, such as
3455 copying.
3457 The dialog boxes use the following colors:
3458 .I dnormal
3459 is used for the normal text,
3460 .I dfocus
3461 is the color used for the currently selected component,
3462 .I dhotnormal
3463 is the color used to differentiate the hotkey color in normal
3464 components, whereas the
3465 .I dhotfocus
3466 color is used for the highlighted color in the currently selected
3467 component.
3469 Menus use the same scheme but uses the menunormal, menusel, menuhot, menuhotsel
3470 and menuinactive tags instead.
3472 Help uses the following colors:
3473 .I helpnormal
3474 is used for normal text,
3475 .I helpitalic
3476 is used for text which is emphasized in italic in the manual page,
3477 .I helpbold
3478 is used for text which is emphasized in bold in the manual page,
3479 .I helplink
3480 is used for not selected hyperlinks and
3481 .I helpslink
3482 is used for selected hyperlink.
3484 The possible colors are: black, gray, red, brightred, green,
3485 brightgreen, brown, yellow, blue, brightblue, magenta, brightmagenta,
3486 cyan, brightcyan, lightgray and white. And there is a special keyword
3487 for transparent background. It is 'default'. The 'default' can only be
3488 used for background color. Example:
3491 [Colors]
3492 base_color=normal=white,default:marked=magenta,default
3495 .\"NODE "Skins"
3496 .SH "Skins"
3497 You can change the appearance of Midnight Commander.
3498 To do this, you must specify a file that contain descriptions of colors
3499 and lines to draw boxes. Redefining of the colors is entirely compatible
3500 with the assignment of colors, as described in Section
3501 .\"LINK2"
3502 Colors\&.
3503 .\"Colors"
3505 A skin\-file is searched on the following algorithm (to the first one found):
3508 1) command line option
3509 .B \-S \<skin\>
3511 .B \-\-skin=\<skin\>
3513 2) Environment variable
3514 .B MC_SKIN
3516 3) In config file parameter
3517 .B skin
3518 in section
3519 .B [Midnight Commander]
3521 4) File
3522 .B @sysconfdir@/mc/skins/default.ini
3524 5) File
3525 .B @prefix@/share/mc/skins/default.ini
3528 Command line option, environment variable and parameter in config file may
3529 contain the absolute path to the skin\-file (with the extension \.ini
3530 or without it). Search of skin\-file will occur in (to the first one found):
3533 .B ~/.mc/skins/
3536 .B @sysconfdir@/mc/skins/
3539 .B @prefix@/share/mc/skins/
3543 For getting extended info, refer to:
3545 .\"LINK2"
3546 Description of section and parameters
3547 .\"Skins sections"
3549 .\"LINK2"
3550 Color pair definitions
3551 .\"Skins colors"
3553 .\"LINK2"
3554 Draw lines
3555 .\"Skins lines"
3557 .\"LINK2"
3558 Compatibility
3559 .\"Skins oldcolors"
3562 .\"NODE "  Skins sections"
3563 .SH "  Description of section and parameters"
3565 Section
3566 .B [skin]
3567 contain metainfo for skin\-file. Parameter
3568 .I description
3569 contain short text about skin.
3572 Section
3573 .B [filehighlight]
3574 contain descriptions of color pairs for filenames highlighting.
3575 Name of parameters must be equal to names of sections into
3576 filehighlight.ini file.
3578 .\"LINK2"
3579 Filenames Highlight
3580 .\"Filenames Highlight"
3581 for getting more info.
3584 Section
3585 .B [core]
3586 describes the elements that are used everywhere.
3588 .I _default_
3589 Default color pair. Used in all other sections if they not contain
3590 color definitions
3592 .I selected
3593 cursor
3595 .I marked
3596 selected data
3598 .I markselect
3599 cursor on selected data
3601 .I gauge
3602 color of the filled part of the progress bar
3604 .I input
3605 color of input lines used in query dialogs
3607 .I inputmark
3608 color of input selected text
3610 .I inputunhanged
3611 color of input text before first modification or cursor movement
3613 .I commandlinemark
3614 color of selected text in command line
3616 .I reverse
3617 reverse color
3619 Section
3620 .B [dialog]
3621 describes the elements that are placed on dialog windows (except error dialogs).
3623 .I _default_
3624 Default color for this section. Used [core]._default_ if not specified
3626 .I dfocus
3627 Color of active element (in focus)
3629 .I dhotnormal
3630 Color of hotkeys
3632 .I dhotfocus
3633 Color of hotkeys in focused element
3636 Section
3637 .B [error]
3638 describes the elements that are placed on error dialog windows
3640 .I _default_
3641 Default color for this section. Used [core]._default_ if not specified
3643 .I errdhotnormal
3644 Color of hotkeys
3646 .I errdhotfocus
3647 Color of hotkeys in focused element
3650 Section
3651 .B [menu]
3652 describes the elements that are placed in menu. This section describes
3653 system menu (called by F9) and user-defined menus (called by F2 in panels
3654 and by F11 in editor).
3656 .I _default_
3657 Default color for this section. Used [core]._default_ if not specified
3659 .I entry
3660 Color of menu items
3662 .I menuhot
3663 Color of menu hotkeys
3665 .I menusel
3666 Color of active menu item (in focus)
3668 .I menuhotsel
3669 Color of menu hotkeys in focused menu item
3671 .I menuinactive
3672 Color of inactive menu
3675 Section
3676 .B [help]
3677 describes the elements that are placed on help window.
3679 .I _default_
3680 Default color for this section. Used [core]._default_ if not specified
3682 .I helpitalic
3683 Color pair for element with
3684 .B italic
3685 attribute
3687 .I helpbold
3688 Color pair for element with
3689 .B bold
3690 attribute
3692 .I helplink
3693 Color of links
3695 .I helpslink
3696 Color of active link (on focus)
3699 Section
3700 .B [editor]
3701 describes the colors of elements placed in editor.
3703 .I _default_
3704 Default color for this section. Used [core]._default_ if not specified
3706 .I editbold
3707 Color pair for element with
3708 .B bold
3709 attribute
3711 .I editmarked
3712 Color of selected text
3714 .I editwhitespace
3715 Color of tabs and trailing spaces highlighting
3717 .I editlinestate
3718 Color for line state area
3721 Section
3722 .B [viewer]
3723 describes the colors of elements placed in viewer.
3725 .I viewunderline
3726 Color pair for element with
3727 .B underline
3728 attribute
3730 .\"NODE "  Skins colors"
3731 .SH "  Color pair definitions"
3732 Any parameter in skin\-file contain definition of color pair.
3734 Color pairs described as two colors separated by ';'. First color
3735 sets the foreground color, second color sets background color.
3736 One of the colors may be omitted, in this case color will be
3737 taken from default color pair (global color pair  or
3738 from default color pair of this section).
3740 Example:
3743 [core]
3744     # green on black
3745     _default_=green;black
3746     # green (default)  on blue
3747     selected=;blue
3748     # yellow on black (default)
3749     marked=yellow;
3753 Possible colors (names) described in
3754 .\"LINK2"
3755 Colors\&.
3756 .\"Colors"
3757 section.
3759 .\"NODE "  Skins lines"
3760 .SH "  Draw lines"
3761 Lines sets in section
3762 .B [Lines]
3763 into skin\-file. By default single lines are used, but you may redefine
3764 to usage of any utf\-8 symbols (like to lines, for example).
3766 .I WARNING!!!
3767 When you build Midnight Commander with the Ncurses screen library
3768 usage of drawing lines is limited!
3769 Possible only drawing a single lines.
3770 For all questions and comments please contact the developers of Ncurses.
3773 Descriptions of parameters
3774 .BR [Lines] :
3776 .I lefttop
3777 left-top line fragment.
3779 .I righttop
3780 right-top line fragment.
3782 .I centertop
3783 down branch of horizontal line
3785 .I centerbottom
3786 up branch of horizontal line
3788 .I leftbottom
3789 left-bottom line fragment
3791 .I rightbottom
3792 right-bottom line fragment
3794 .I leftmiddle
3795 right branch of vertical line
3797 .I rightmiddle
3798 left branch of vertical line
3800 .I centermiddle
3801 cross of lines
3803 .I horiz
3804 horizontal line
3806 .I vert
3807 vertical line
3809 .I thinhoriz
3810 thin horizontal line
3812 .I thinvert
3813 thin vertical line
3816 .\"NODE "  Skins oldcolors"
3817 .SH "  Compatibility"
3819 Appointment of color  by skin\-files fully compatible with
3820 the appointment of the colors described in
3821 .\"LINK2"
3822 Colors\&.
3823 .\"Colors"
3824 section.
3826 In this case, reassignment of colors has priority over the skin file and is
3827 complementary.
3829 .\"NODE "Filenames Highlight"
3830 .SH "Filenames Highlight"
3831 Section [filehighlight] in current skin\-file contains key names as
3832 highlight groups and values as color pairs. Color pairs is documented
3834 .\"LINK2"
3835 Skins
3836 .\"Skins"
3837 section.
3839 Rules of filenames highlight are placed in @prefix@/share/mc/filehighlight.ini file
3840 (~/.mc/filehighlight.ini).
3841 Name of section in this file must be equal to parameters names in
3842 [filehighlight] section (in current skin\-file).
3844 Keys in these groups are:
3846 .I type
3847 file type. If present, all other options are ignored.
3849 .I regexp
3850 regular expression. If present, 'extensions' option is ignored.
3852 .I extensions
3853 list of extensions of files. Separated by ';' sign.
3855 .I extensions_case
3856 (make sense only with 'extensions' parameter) make 'extensions'
3857 rule case sentitive (true) or not (false).
3859 `type' key may have values:
3861 \- FILE (all files)
3862   \- FILE_EXE
3863 \- DIR (all directories)
3864   \- LINK_DIR
3865 \- LINK (all links except stale link)
3866   \- HARDLINK
3867   \- SYMLINK
3868 \- STALE_LINK
3869 \- DEVICE (all device files)
3870   \- DEVICE_BLOCK
3871   \- DEVICE_CHAR
3872 \- SPECIAL (all special files)
3873   \- SPECIAL_SOCKET
3874   \- SPECIAL_FIFO
3875   \- SPECIAL_DOOR
3879 .\"NODE "Special Settings"
3880 .SH "Special Settings"
3881 Most of the Midnight Commander settings can be changed from the
3882 menus. However, there are a small number of settings which can only be
3883 changed by editing the setup file.
3885 These variables may be set in your ~/.mc/ini file:
3887 .I clear_before_exec
3888 By default the Midnight Commander clears the screen before executing a
3889 command.  If you would prefer to see the output of the command at the
3890 bottom of the screen, edit your ~/.mc/ini file and change the value of
3891 the field clear_before_exec to 0.
3893 .I confirm_view_dir
3894 If you press F3 on a directory, normally MC enters that directory.  If
3895 this flag is set to 1, then MC will ask for confirmation before changing
3896 the directory if you have files tagged.
3898 .I ftpfs_retry_seconds
3899 This value is the number of seconds the Midnight Commander will wait
3900 before attempting to reconnect to an FTP server that has denied the
3901 login.  If the value is zero, the login will no be retried.
3903 .I max_dirt_limit
3904 Specifies how many screen updates can be skipped at most in the internal
3905 file viewer.  Normally this value is not significant, because the code
3906 automatically adjusts the number of updates to skip according to the
3907 rate of incoming keystrokes.  However, on very slow machines or
3908 terminals with a fast keyboard auto repeat, a big value can make screen
3909 updates too jumpy.
3911 It seems that setting max_dirt_limit to 10 causes the best behavior,
3912 and that is the default value.
3914 .I mouse_move_pages_viewer
3915 Controls if scrolling with the mouse is done by pages or line by line
3916 on the internal file viewer.
3918 .I only_leading_plus_minus
3919 Allow special treatment for '+', '\-', '*' in the command line (select,
3920 unselect, reverse selection) only if the command line is empty.  You
3921 don't need to quote those characters in the middle of the command line.
3922 On the other hand, you cannot use them to change selection when the
3923 command line is not empty.
3925 .I show_output_starts_shell
3926 This variable only works if you are not using the subshell support.
3927 When you use the C\-o keystroke to go back to the user screen, if this
3928 one is set, you will get a fresh shell.  Otherwise, pressing any key
3929 will bring you back to the Midnight Commander.
3931 .I timeformat_recent
3932 Change the time format used to display dates less than 6 months from
3933 now.
3934 See strftime or date man page for the format specification. If this
3935 option is absent, default timeformat is used.
3937 .I timeformat_old
3938 Change the time format used to display  dates older than 6 months from
3939 now or for dates in the future.
3940 See strftime or date man page for the format specification. If this
3941 option is absent, default timeformat is used.
3943 .I torben_fj_mode
3944 If this flag is set, then the home and end keys will work slightly
3945 different on the panels, instead of moving the selection to the first
3946 and last files in the panels, they will act as follows:
3948 The home key will: Go up to the middle line, if below it; else go to the
3949 top line unless it is already on the top line, in this case it will go
3950 to the first file in the panel.
3952 The end key has a similar behavior: Go down to the middle line, if over
3953 it; else go to the bottom line unless you already are at the bottom
3954 line, in such case it will move the selection to the last file name in
3955 the panel.
3957 .I use_file_to_guess_type
3958 If this variable is on (the default) it will spawn the file command to
3959 match the file types listed on the
3960 .\"LINK2"
3961 mc.ext file\&.
3962 .\"Extension File Edit"
3964 .I xterm_mode
3965 If this variable is on (default is off) when you browse the file system
3966 on a Tree panel, it will automatically reload the other panel with the
3967 contents of the selected directory.
3969 .I fish_directory_timeout
3970 This variable holds the lifetime of a directory cache entry in seconds. The
3971 default value is 900 seconds.
3973 .I autodetect_codeset
3974 This option allows use the `enca' command to autodetect codeset of text files
3975 in internal viewer and editor. List of valid values can be obtain by the
3976 `enca \-\-list languages | cut \-d : \-f1' command. Option must be located
3977 in the [Misc] section.
3979 For example:
3982 autodetect_codeset=russian
3984 .\"NODE "Terminal databases"
3985 .SH "Terminal databases"
3986 The Midnight Commander provides a way to fix your system terminal
3987 database without requiring root privileges.  The Midnight Commander
3988 searches in the system initialization file (the mc.lib file located in
3989 the Midnight Commander library directory) and in the ~/.mc/ini file for
3990 the section "terminal:your\-terminal\-name" and then for the section
3991 "terminal:general", each line of the section contains a key symbol that
3992 you want to define, followed by an equal sign and the definition for the
3993 key.  You can use the special \\e form to represent the escape character
3994 and the ^x to represent the control\-x character.
3996 The possible key symbols are:
3999 f0 to f20     Function keys f0\-f20
4000 bs            backspace
4001 home          home key
4002 end           end key
4003 up            up arrow key
4004 down          down arrow key
4005 left          left arrow key
4006 right         right arrow key
4007 pgdn          page down key
4008 pgup          page up key
4009 insert        the insert character
4010 delete        the delete character
4011 complete      to do completion
4014 For example, to define the key insert to be the Escape + [ + O + p, you
4015 set this in the ini file:
4018 insert=\\e[Op
4022 Also now you can use
4023 .I extended learn keys.
4024 For example:
4027     ctrl-alt-right=\\e[[1;6C
4028     ctrl-alt-left=\\e[[1;6D
4032 This means that ctrl+alt+left sends a \\e[[1;6D escape sequence
4033 and therefore Midnight Commander interprets "\\e[[1;6D" as Ctrl\-Alt\-Left.
4037 .I complete
4038 key symbol represents the escape sequences used to invoke the completion
4039 process, this is invoked with Alt\-tab, but you can define other keys to do
4040 the same work (on those keyboard with tons of nice and unused keys
4041 everywhere).
4042 .SH ""
4043 .\"NODE "FILES"
4044 .SH "FILES"
4045 Full paths below may vary between installations.  They are also affected
4046 by the MC_DATADIR environment variable.  If it's set, its value is used
4047 instead of @prefix@/share/mc in the paths below.
4049 .I @prefix@/share/mc/mc.hlp
4051 The help file for the program.
4053 .I @prefix@/share/mc/mc.ext
4055 The default system\-wide extensions file.
4057 .I ~/.mc/bindings
4059 User's own extension, view configuration and edit configuration
4060 file.  They override the contents of the system wide files if present.
4062 .I @prefix@/share/mc/mc.ini
4064 The default system\-wide setup for the Midnight Commander, used only if
4065 the user doesn't have his own ~/.mc/ini file.
4067 .I @prefix@/share/mc/mc.lib
4069 Global settings for the Midnight Commander.  Settings in this file
4070 affect all users, whether they have ~/.mc/ini or not.  Currently, only
4071 .\"LINK2"
4072 terminal settings
4073 .\"Terminal databases"
4074 are loaded from mc.lib.
4076 .I ~/.mc/ini
4078 User's own setup. If this file is present then the setup is loaded
4079 from here instead of the system\-wide startup file.
4081 .I @prefix@/share/mc/mc.hint
4083 This file contains the hints displayed by the program.
4085 .I @prefix@/share/mc/mc.menu
4087 This file contains the default system\-wide applications menu.
4089 .I ~/.mc/menu
4091 User's own application menu. If this file is present it is used instead
4092 of the system\-wide applications menu.
4094 .I ~/.mc/Tree
4096 The directory list for the directory tree and tree view features.
4098 .I ./.mc.menu
4100 Local user\-defined menu. If this file is present, it is used instead of
4101 the home or system\-wide applications menu.
4102 .\"SKIP_SECTION"
4103 .SH "LICENSE"
4104 This program is distributed under the terms of the GNU General Public
4105 License as published by the Free Software Foundation. See the built\-in
4106 help for details on the License and the lack of warranty.
4107 .\"NODE "AVAILABILITY"
4108 .SH "AVAILABILITY"
4109 The latest version of this program can be found at
4110 ftp://ftp.gnu.org/gnu/mc/.
4111 .\"NODE "SEE ALSO"
4112 .SH "SEE ALSO"
4113 ed(1), gpm(1), mcserv(8), terminfo(1), view(1), sh(1), bash(1),
4114 tcsh(1), zsh(1).
4117 The Midnight Commander page on the World Wide Web:
4118         http://www.midnight\-commander.org/
4120 .\"NODE "AUTHORS"
4121 .SH "AUTHORS"
4122 Authors and contributors are listed in the AUTHORS file in the source
4123 distribution.
4124 .\"NODE "BUGS"
4125 .SH "BUGS"
4126 See the file TODO in the distribution for information on what remains to
4127 be done.
4129 If you want to report a problem with the program, please send mail to
4130 this address: mc\-devel@gnome.org.
4132 Provide a detailed description of the bug, the version of the program
4133 you are running
4134 .RI ( "mc \-V"
4135 displays this information), the operating system you are running the
4136 program on.  If the program crashes, we would appreciate a stack trace.