change name of user bindings file to mc.ext
[midnight-commander.git] / doc / man / mc.1.in
blob30df6a0993e4219ef176fcd45cb5c798f7c0d979
1 .\"TOPICS "Topics:"
2 .TH MC 1 "@DATE_OF_MAN_PAGE@" "MC Version @DISTR_VERSION@" "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 \-F, \-\-datadir\-info
59 Display extended info about compiled\-in paths for
60 Midnight Commander.
61 .TP
62 .I \-\-configure\-options
63 Display configure options.
64 .TP
65 .I \-k, \-\-resetsoft
66 Reset softkeys to their default from the termcap/terminfo
67 database. Only useful on HP terminals when the function keys don't work.
68 .TP
69 .I \-K file
70 Specify a name of keymap file in the command line.
71 .TP
72 .I \-\-nokeymap
73 Don't load key bindings from any file, use default hardcoded keys.
74 .TP
75 .I \-l file, \-\-ftplog=file
76 Save the ftpfs dialog with the server in file.
77 .TP
78 .I \-P file, \-\-printwd=file
79 Print the last working directory to the specified file.  This option is
80 not meant to be used directly.  Instead, it's used from a special shell
81 script that automatically changes the current directory of the shell to
82 the last directory the Midnight Commander was in.  Source the file
83 .B @prefix@/share/mc/bin/mc.sh
84 (bash and zsh users) or
85 .B @prefix@/share/mc/bin/mc.csh
86 (tcsh users) respectively to define
87 .B mc
88 as an alias to the appropriate shell script.
89 .TP
90 .I \-s
91 Set alternative mode drawing of frameworks.
92 If the section [Lines] is not filled, the symbol for the pseudographics
93 frame is a space, otherwise the frame characters are taken from follow params.
95 .B You can redefine the following variables:
96 .TP
97 .B lefttop
98 left\-top corner
99 .TP
100 .B righttop
101 right\-top corner
103 .B centertop
104 center\-top cross
106 .B centerbottom
107 center\-bottom cross
109 .B leftbottom
110 left\-bottom corner
112 .B rightbottom
113 right\-bottom corner
115 .B leftmiddle
116 left\-middle cross
118 .B rightmiddle
119 right\-middle cross
121 .B centermiddle
122 center cross
124 .B horiz
125 default horizontal line
127 .B vert
128 default vertical line
130 .B thinhoriz
131 thin horizontal line
133 .B thinvert
134 thin vertical line
136 .I \-t, \-\-termcap
137 Used only if the code was compiled with Slang and terminfo: it makes
138 the Midnight Commander use the value of the
139 .B TERMCAP
140 variable for the terminal information instead of the information on
141 the system wide terminal database
143 .I \-u, \-\-nosubshell
144 Disable use of the concurrent shell (only makes sense if the Midnight
145 Commander has been built with concurrent shell support).
147 .I \-U, \-\-subshell
148 Enable use of the concurrent shell support (only makes sense if the
149 Midnight Commander was built with the subshell support set as an
150 optional feature).
152 .I \-v file, \-\-view=file
153 Start the internal viewer to view the specified file.  See also
154 .BR "mcview (1)" .
156 .I \-V, \-\-version
157 Display the version of the program.
159 .I \-x, \-\-xterm
160 Force xterm mode.  Used when running on xterm\-capable terminals (two
161 screen modes, and able to send mouse escape sequences).
163 If specified, the first path name is the directory to show in the
164 selected panel; the second path name is the directory to be shown in
165 the other panel.
166 .\"NODE "Overview"
167 .SH "Overview"
168 The screen of the Midnight Commander is divided into four parts.
169 Almost all of the screen space is taken up by two directory panels.
170 By default, the second line from the bottom of the screen is the
171 shell command line, and the bottom line shows the function key labels.
172 The topmost line is the
173 .\"LINK2"
174 menu bar line\&.
175 .\"Menu Bar"
176 The menu bar line may not be visible, but appears if you click the
177 topmost line with the mouse or press the F9 key.
179 The Midnight Commander provides a view of two directories at the same
180 time. One of the panels is the current panel (a selection bar is in
181 the current panel). Almost all operations take place on the current
182 panel. Some file operations like Rename and Copy by default use the
183 directory of the unselected panel as a destination (don't worry, they
184 always ask you for confirmation first). For more information, see the
185 sections on the
186 .\"LINK2"
187 Directory Panels\&,
188 .\"Directory Panels"
190 .\"LINK2"
191 Left and Right Menus
192 .\"Left and Right Menus"
193 and the
194 .\"LINK2"
195 File Menu\&.
196 .\"File Menu"
198 You can execute system commands from the Midnight Commander by simply
199 typing them. Everything you type will appear on the shell command line,
200 and when you press Enter the Midnight Commander will execute the
201 command line you typed; read the
202 .\"LINK2"
203 Shell Command Line
204 .\"Shell Command Line"
206 .\"LINK2"
207 Input Line Keys
208 .\"Input Line Keys"
209 sections to learn more about the command line.
210 .\"NODE "Mouse Support"
211 .SH "Mouse Support"
212 The Midnight Commander comes with mouse support.  It is activated
213 whenever you are running on an
214 .B xterm(1)
215 terminal (it even works if you take a telnet, ssh or rlogin connection to
216 another machine from the xterm) or if you are running on a Linux
217 console and have the
218 .B gpm
219 mouse server running.
221 When you left click on a file in the directory panels, that file is
222 selected; if you click with the right button, the file is marked (or
223 unmarked, depending on the previous state).
225 Double\-clicking on a file will try to execute the command if it is
226 an executable program; and if the
227 .\"LINK2"
228 extension file
229 .\"Extension File Edit"
230 has a program specified for the file's extension, the specified
231 program is executed.
233 Also, it is possible to execute the commands assigned to the function
234 key labels by clicking on them.
236 The default auto repeat rate for the mouse buttons is 400
237 milliseconds. This may be changed to other values by editing the
238 .\"LINK2"
239 \&~/.config/mc/ini
240 .\"Save Setup"
241 file and changing the
242 .I mouse_repeat_rate
243 parameter.
245 If you are running the Midnight Commander with the mouse support, you
246 can get the default mouse behavior (cutting and pasting text) by holding
247 down the Shift key.
248 .SH ""
249 .\"NODE "Keys"
250 .SH "Keys"
251 Some commands in the Midnight Commander involve the use of the
252 .I Control
253 (sometimes labeled CTRL or CTL) and the
254 .I Meta
255 (sometimes labeled ALT or even Compose) keys. In this manual we will
256 use the following abbreviations:
258 .B C\-<chr>
259 means hold the Control key while typing the character <chr>.
260 Thus C\-f would be: hold the Control key and type f.
262 .B Alt\-<chr>
263 means hold the Meta or Alt key down while typing <chr>.
264 If there is no Meta or Alt key, type
265 .IR ESC ,
266 release it, then type the character <chr>.
268 .B S\-<chr>
269 means hold the Shift key down while typing <chr>.
271 All input lines in the Midnight Commander use an approximation to
272 the GNU Emacs editor's key bindings (default).
274 You may redefine key bindings. See
275 .\"LINK2"
276 .I redefine hotkey bindings
277 .\"Keys_redefine"
279 for more info. All other key bindings (described in this manual) relative
280 to default behavior.
283 There are many sections which tell about the keys. The following are
284 the most important.
287 .\"LINK2"
288 File Menu
289 .\"File Menu"
290 section documents the keyboard shortcuts for the commands appearing in
291 the File menu. This section includes the function keys. Most of these
292 commands perform some action, usually on the selected file or the
293 tagged files.
296 .\"LINK2"
297 Directory Panels
298 .\"Directory Panels"
299 section documents the keys which select a file or tag files as a
300 target for a later action (the action is usually one from the file
301 menu).
304 .\"LINK2"
305 Shell Command Line
306 .\"Shell Command Line"
307 section list the keys which are used for entering and editing command
308 lines. Most of these copy file names and such from the directory
309 panels to the command line (to avoid excessive typing) or access the
310 command line history.
312 .\"LINK2"
313 Input Line Keys
314 .\"Input Line Keys"
315 are used for editing input lines. This means both the command line and
316 the input lines in the query dialogs.
318 .\"NODE "  Keys_redefine"
319 .SH "  Redefine hotkey bindings"
320 Hotkey bindings may be read from external file (keymap\-file).
321 A keymap\-file is searched on the following algorithm (to the first one found):
324 1) command line option
325 .BR \-K
326 .BR \<keymap\>
328 .BR \-\-keymap=\<keymap\>
330 2) Environment variable
331 .BR MC_KEYMAP
333 3) In config file parameter
334 .BR keymap
335 in section
336 .BR [Midnight\-Commander]
338 4) File
339 .BR ~/.local/share/mc/mc.keymap
341 5) File
342 .BR @sysconfdir@/mc/mc.keymap
344 6) File
345 .BR @prefix@/share/mc/mc.keymap
347 Command line option, environment variable and parameter in config file may
348 contain the absolute path to the keymap\-file (with the extension \.keymap
349 or without it). Search of keymap\-file will occur in (to the first one found):
352 .BR ~/.local/share
355 .BR @sysconfdir@/mc/
358 .BR @prefix@/share/mc/
360 .\"NODE "  Miscellaneous Keys"
361 .SH "  Miscellaneous Keys"
362 Here are some keys which don't fall into any of the other categories:
364 .B Enter
365 if there is some text in the command line (the one at the bottom of
366 the panels), then that command is executed. If there is no text in the
367 command line then if the selection bar is over a directory the
368 Midnight Commander does a
369 .B chdir(2)
370 to the selected directory and reloads the information on the panel;
371 if the selection is an executable file then it is executed. Finally,
372 if the extension of the selected file name matches one of the
373 extensions in the
374 .\"LINK2"
375 extensions file
376 .\"Extension File Edit"
377 then the corresponding command is executed.
379 .B C\-l
380 repaint all the information in the Midnight Commander.
382 .B C\-x c
383 run the
384 .\"LINK2"
385 Chmod
386 .\"Chmod"
387 command on a file or on the tagged files.
389 .B C\-x o
390 run the
391 .\"LINK2"
392 Chown
393 .\"Chown"
394 command on the current file or on the tagged files.
396 .B C\-x l
397 run the hard link command.
399 .B C\-x s
400 run the absolute symbolic link command.
402 .B C\-x v
403 run the relative symbolic link command. See the
404 .\"LINK2"
405 File Menu
406 .\"File Menu"
407 section for more information about symbolic links.
409 .B C\-x i
410 set the other panel display mode to information.
412 .B C\-x q
413 set the other panel display mode to quick view.
415 .B C\-x !
416 execute the
417 .\"LINK2"
418 External panelize
419 .\"External panelize"
420 command.
422 .B C\-x h
423 run the
424 .\"LINK2"
425 add directory to hotlist
426 .\"Hotlist"
427 command.
429 .B Alt\-!
430 executes the Filtered view command, described in the
431 .\"LINK2"
432 view command\&.
433 .\"Internal File Viewer"
435 .B Alt\-?
436 executes the
437 .\"LINK2"
438 Find file
439 .\"Find File"
440 command.
442 .B Alt\-c
443 pops up the
444 .\"LINK2"
445 quick cd
446 .\"Quick cd"
447 dialog.
449 .B C\-o
450 when the program is being run in the Linux or FreeBSD console or under
451 an xterm, it will show you the output of the previous command.  When ran
452 on the Linux console, the Midnight Commander uses an external program
453 (cons.saver) to handle saving and restoring of information on the
454 screen.
456 When the subshell support is compiled in, you can type C\-o at any time
457 and you will be taken back to the Midnight Commander main screen, to
458 return to your application just type C\-o.  If you have an application
459 suspended by using this trick, you won't be able to execute other
460 programs from the Midnight Commander until you terminate the suspended
461 application.
462 .\"NODE "  Directory Panels"
463 .SH "  Directory Panels"
464 This section lists the keys which operate on the directory panels. If
465 you want to know how to change the appearance of the panels take a
466 look at the section on
467 .\"LINK2"
468 Left and Right Menus\&.
469 .\"Left and Right Menus"
471 .B Tab, C\-i
472 change the current panel. The old other panel becomes the new current
473 panel and the old current panel becomes the new other panel. The
474 selection bar moves from the old current panel to the new current
475 panel.
477 .B Insert, C\-t
478 to tag files you may use the Insert key (the kich1 terminfo sequence).
479 To untag files, just retag a tagged file.
481 .B M\-e
482 to change charset of panel you may use M\-e (Alt\-e).
483 Recoding is made from selected codepage into system codepage. To
484 cancel the recoding you may select "directory up" (..) in active panel.
485 To cancel the charsets in all directories, select "No translation " in
486 the dialog of encodings.
488 .B Alt\-g, Alt\-r, Alt\-j
489 used to select the top file in a panel, the middle file and the bottom one,
490 respectively.
492 .B Alt\-t
493 toggle the current display listing to show the next display listing
494 mode.
495 With this it is possible to quickly switch to brief listing, long
496 listing, user defined listing mode, and back to the default.
498 .B C\-\\\\ (control\-backslash)
499 show the
500 .\"LINK2"
501 directory hotlist
502 .\"Hotlist"
503 and change to the selected directory.
505 .B + \ (plus)
506 this is used to select (tag) a group of files.  The Midnight Commander
507 will prompt for a selection options. When
508 .I Files only
509 checkbox is on, only files will be selected.  If
510 .I Files only
511 is off, as files as directories will be selected.
512 When
513 .I Shell Patterns
514 checkbox is on, the regular expression is much like the filename globbing
515 in the shell (* standing for zero or more characters and ? standing
516 for one character). If
517 .I Shell Patterns
518 is off, then the tagging of files is done with normal regular
519 expressions (see ed (1)). When
520 .I Case sensitive
521 checkbox is on, the selection will be case sensitive characters.
523 .I Case sensitive
524 is off, the case will be ignored.
526 .B \\\\ (backslash)
527 use the "\\" key to unselect a group of files. This is the opposite of
528 the Plus key.
530 .B up\-key, C\-p
531 move the selection bar to the previous entry in the panel.
533 .B down\-key, C\-n
534 move the selection bar to the next entry in the panel.
536 .B home, a1, Alt\-<
537 move the selection bar to the first entry in the panel.
539 .B end, c1, Alt\->
540 move the selection bar to the last entry in the panel.
542 .B next\-page, C\-v
543 move the selection bar one page down.
545 .B prev\-page, Alt\-v
546 move the selection bar one page up.
548 .B Alt\-o
549 If the currently selected file is a directory, load that directory on
550 the other panel and moves the selection to the next file. If the
551 currently selected file is not a directory, load the parent directory
552 on the other panel and moves the selection to the next file.
554 .B Alt\-i
555 make the current directory of the current panel also the current
556 directory of the other panel.  Put the other panel to the listing mode
557 if needed.  If the current panel is panelized, the other panel doesn't
558 become panelized.
560 .B C\-PageUp, C\-PageDown
561 only when supported by the terminal: change to ".." and to the currently
562 selected directory respectively.
564 .B Alt\-y
565 moves to the previous directory in the history, equivalent to clicking
567 .I <
568 with the mouse.
570 .B Alt\-u
571 moves to the next directory in the history, equivalent to clicking the
572 .I >
573 with the mouse.
575 .B Alt\-Shift\-h, Alt\-H
576 displays the directory history, equivalent to depressing the 'v' with
577 the mouse.
578 .\"NODE "  Quick search"
579 .SH "  Quick search"
580 The Quick search mode allows to perform fast file search in file panel.
581 Press
582 .I C\-s
584 .I Alt\-s
585 to start a filename search in the directory listing.
587 When the search is active, the user input will be added to the search string
588 instead of the command line. If the
589 .I Show mini\-status
590 option is enabled the search string is shown on the mini\-status
591 line. When typing, the selection bar will move to the next file
592 starting with the typed letters. The
593 .I Backspace
595 .I DEL
596 keys can be used to correct typing mistakes. If C\-s is pressed
597 again, the next match is searched for.
599 If quick search is started with double pressing of C\-s, the previous quick
600 search pattern will be used for current search.
602 Besides the filename characters, you can also use wildcard
603 characters '*' and '?'.
604 .\"NODE "  Shell Command Line"
605 .SH "  Shell Command Line"
606 This section lists keys which are useful to avoid excessive typing when
607 entering shell commands.
609 .B Alt\-Enter
610 copy the currently selected file name to the command line.
612 .B C\-Enter
613 same a Alt\-Enter.  May not work on remote systems and some terminals.
615 .B C\-Shift\-Enter
616 copy the full path name of the currently selected file to the command
617 line.  May not work on remote systems and some terminals.
619 .B Alt\-Tab
620 does the filename, command, variable, username and hostname
621 .\"LINK2"
622 completion
623 .\"Completion"
624 for you.
626 .B C\-x t, C\-x C\-t
627 copy the tagged files (or if there are no tagged files, the selected
628 file) of the current panel (C\-x t) or of the other panel (C\-x C\-t) to
629 the command line.
631 .B C\-x p, C\-x C\-p
632 the first key sequence copies the current path name to the command
633 line, and the second one copies the unselected panel's path name to
634 the command line.
636 .B C\-q
637 the quote command can be used to insert characters that are otherwise
638 interpreted by the Midnight Commander (like the '+' symbol)
640 .B Alt\-p, Alt\-n
641 use these keys to browse through the command history. Alt\-p takes you
642 to the last entry, Alt\-n takes you to the next one.
644 .B Alt\-h
645 displays the history for the current input line.
646 .\"NODE "  General Movement Keys"
647 .SH "  General Movement Keys"
648 The help viewer, the file viewer and the directory tree use common
649 code to handle moving. Therefore they accept exactly the same
650 keys. Each of them also accepts some keys of its own.
652 Other parts of the Midnight Commander use some of the same movement
653 keys, so this section may be of use for those parts too.
655 .B Up, C\-p
656 moves one line backward.
658 .B Down, C\-n
659 moves one line forward.
661 .B Prev Page, Page Up, Alt\-v
662 moves one page up.
664 .B Next Page, Page Down, C\-v
665 moves one page down.
667 .B Home, A1
668 moves to the beginning.
670 .B End, C1
671 move to the end.
673 The help viewer and the file viewer accept the following keys in
674 addition the to ones mentioned above:
676 .B b, C\-b, C\-h, Backspace, Delete
677 moves one page up.
679 .B Space bar
680 moves one page down.
682 .B u, d
683 moves one half of a page up or down.
685 .B g, G
686 moves to the beginning or to the end.
687 .\"NODE "  Input Line Keys"
688 .SH "  Input Line Keys"
689 The input lines (they are used for the
690 .\"LINK2"
691 command line
692 .\"Shell Command Line"
693 and for the query dialogs in the program) accept these keys:
695 .B C\-a
696 puts the cursor at the beginning of line.
698 .B C\-e
699 puts the cursor at the end of the line.
701 .B C\-b, move\-left
702 move the cursor one position left.
704 .B C\-f, move\-right
705 move the cursor one position right.
707 .B Alt\-f
708 moves one word forward.
710 .B Alt\-b
711 moves one word backward.
713 .B C\-h, Backspace
714 delete the previous character.
716 .B C\-d, Delete
717 delete the character in the point (over the cursor).
719 .B C\-@
720 sets the mark for cutting.
722 .B C\-w
723 copies the text between the cursor and the mark to a kill buffer and
724 removes the text from the input line.
726 .B Alt\-w
727 copies the text between the cursor and the mark to a kill buffer.
729 .B C\-y
730 yanks back the contents of the kill buffer.
732 .B C\-k
733 kills the text from the cursor to the end of the line.
735 .B Alt\-p, Alt\-n
736 Use these keys to browse through the command history. Alt\-p takes you
737 to the last entry, Alt\-n takes you to the next one.
739 .B Alt\-C\-h, Alt\-Backspace
740 delete one word backward.
742 .B Alt\-Tab
743 does the filename, command, variable, username and hostname
744 .\"LINK2"
745 completion
746 .\"Completion"
747 for you.
748 .SH ""
749 .\"NODE "Menu Bar"
750 .SH "Menu Bar"
751 The menu bar pops up when you press F9 or click the mouse on the top
752 row of the screen. The menu bar has five menus: "Left", "File",
753 "Command", "Options" and "Right".
756 .\"LINK2"
757 Left and Right Menus
758 .\"Left and Right Menus"
759 allow you to modify the appearance of the left and right directory
760 panels.
763 .\"LINK2"
764 File Menu
765 .\"File Menu"
766 lists the actions you can perform on the currently selected file or
767 the tagged files.
770 .\"LINK2"
771 Command Menu
772 .\"Command Menu"
773 lists the actions which are more general and bear no relation to the
774 currently selected file or the tagged files.
777 .\"LINK2"
778 Options Menu
779 .\"Options Menu"
780 lists the actions which allow you to customize the Midnight Commander.
781 .\"NODE "  Left and Right Menus"
782 .SH "  Left and Right (Above and Below) Menus"
783 The outlook of the directory panels can be changed from the
784 .B Left
786 .B Right
787 menus (they are named
788 .B Above
790 .B Below
791 when the horizontal panel split is chosen from the
792 .\"LINK2"
793 Layout
794 .\"Layout"
795 options dialog).
796 .\"NODE "    Listing Mode..."
797 .SH "    Listing Mode..."
798 The listing mode view is used to display a listing of files, there are
799 four different listing modes available:
800 .BR Full ,
801 .BR Brief ,
802 .B Long
804 .BR User .
805 The full directory view shows the file name, the size of the file and
806 the modification time.
808 The brief view shows only the file name and it has two columns
809 (therefore showing twice as many files as other views). The long view
810 is similar to the output of
811 .B "ls \-l"
812 command. The long view takes the whole screen width.
814 If you choose the "User" display format, then you have to specify
815 the display format.
817 The user display format must start with a panel size specifier.  This
818 may be "half" or "full", and they specify a half screen panel and a
819 full screen panel respectively.
821 After the panel size, you may specify the two columns mode on the
822 panel, this is done by adding the number "2" to the user format
823 string.
825 After this you add the name of the fields with an optional size
826 specifier.  This are the available fields you may display:
828 .B name
829 displays the file name.
831 .B size
832 displays the file size.
834 .B bsize
835 is an alternative form of the
836 .B size
837 format. It displays the size of the files and for directories it just
838 shows SUB\-DIR or UP\-\-DIR.
840 .B type
841 displays a one character wide type field.  This character is similar to
842 what is displayed by ls with the \-F flag \-
843 .B *
844 for executable files,
845 .B /
846 for directories,
847 .B @
848 for links,
849 .B =
850 for sockets,
851 .B \-
852 for character devices,
853 .B +
854 for block devices,
855 .B |
856 for pipes,
857 .B ~
858 for symbolic links to directories and
859 .B !
860 for stale symlinks (links that point nowhere).
862 .B mark
863 an asterisk if the file is tagged, a space if it's not.
865 .B mtime
866 file's last modification time.
868 .B atime
869 file's last access time.
871 .B ctime
872 file's status change time.
874 .B perm
875 a string representing the current permission bits of the file.
877 .B mode
878 an octal value with the current permission bits of the file.
880 .B nlink
881 the number of links to the file.
883 .B ngid
884 the GID (numeric).
886 .B nuid
887 the UID (numeric).
889 .B owner
890 the owner of the file.
892 .B group
893 the group of the file.
895 .B inode
896 the inode of the file.
898 Also you can use following keywords to define the panel layout:
900 .B space
901 a space in the display format.
903 .B |
904 add a vertical line to the display format.
906 To force one field to a fixed size (a size specifier), you just add
907 .B :
908 followed by the number of characters you want the field to have.  If the
909 number is followed by the symbol
910 .BR + ,
911 then the size specifies the minimal field size \- if the program finds
912 out that there is more space on the screen, it will then expand that
913 field.
915 For example, the
916 .B Full
917 display corresponds to this format:
919 half type name | size | mtime
921 And the
922 .B Long
923 display corresponds to this format:
925 full perm space nlink space owner space group space size space mtime
926 space name
928 This is a nice user display format:
930 half name | size:7 | type mode:3
932 Panels may also be set to the following modes:
934 .B "Info"
935 The info view display information related to the currently
936 selected file and if possible information about the current file
937 system.
939 .B "Tree"
940 The tree view is quite similar to the
941 .\"LINK2"
942 directory tree
943 .\"Directory Tree"
944 feature. See the section about it for more information.
946 .B "Quick View"
947 In this mode, the panel will switch to a reduced
948 .\"LINK2"
949 viewer
950 .\"Internal File Viewer"
951 that displays the contents of the currently selected file, if you
952 select the panel (with the tab key or the mouse), you will have access
953 to the usual viewer commands.
954 .\"NODE "    Sort Order..."
955 .SH "    Sort Order..."
956 The eight sort orders are by name, by extension, by modification time,
957 by access time, and by inode information modification time, by size,
958 by inode and unsorted.  In the Sort order dialog box you can choose
959 the sort order and you may also specify if you want to sort in reverse
960 order by checking the reverse box.
962 By default directories are sorted before files but this can be changed
963 from the
964 .\"LINK2"
965 Panel options
966 .\"Panel options"
967 menu (option
968 .BR "Mix all files" ).
969 .\"NODE "    Filter..."
970 .SH "    Filter..."
971 The filter command allows you to specify a shell pattern (for example
972 .BR "*.tar.gz" )
973 which the files must match to be shown. Regardless
974 of the filter pattern, the directories and the links to directories
975 are always shown in the directory panel.
976 .\"NODE "    Reread"
977 .SH "    Reread"
978 The reread command reload the list of files in the directory. It is
979 useful if other processes have created or removed files.  If you
980 have panelized file names in a panel this will reload the directory
981 contents and remove the panelized information (See the section
982 .\"LINK2"
983 External panelize
984 .\"External panelize"
985 for more information).
986 .\"NODE "  File Menu"
987 .SH "  File Menu"
988 The Midnight Commander uses the F1 \- F10 keys as keyboard shortcuts
989 for commands appearing in the file menu.  The escape sequences for the
990 function keys are terminfo capabilities kf1 trough kf10.  On terminals
991 without function key support, you can achieve the same functionality by
992 pressing the ESC key and then a number in the range 1 through 9 and 0
993 (corresponding to F1 to F9 and F10 respectively).
995 The File menu has the following commands (keyboard shortcuts in parentheses):
997 .B Help (F1)
999 Invokes the built\-in hypertext help viewer. Inside the
1000 .\"LINK2"
1001 help viewer\&,
1002 .\"Contents"
1003 you can use the Tab key to select the next link and the Enter key to
1004 follow that link. The keys Space and Backspace are used to move
1005 forward and backward in a help page. Press F1 again to get the full
1006 list of accepted keys.
1008 .B Menu (F2)
1010 Invoke the
1011 .\"LINK2"
1012 user menu\&.
1013 .\"Menu File Edit"
1014 The user menu provides an easy way to provide users with a menu and
1015 add extra features to the Midnight Commander.
1017 .B View (F3, F13)
1019 View the currently selected file. By default this invokes the
1020 .\"LINK2"
1021 Internal File Viewer
1022 .\"Internal File Viewer"
1023 but if the option "Use internal view" is off, it invokes an external
1024 file viewer specified by the
1025 .B VIEWER
1026 environment variable.  If
1027 .B VIEWER
1028 is undefined, the
1029 .B PAGER
1030 environment variable is tried.  If
1031 .B PAGER
1032 is also undefined, the "view" command is invoked.  If you use F13
1033 instead, the viewer will be invoked without doing any formatting or
1034 preprocessing to the file.
1036 .B Filtered View (Alt\-!)
1038 This command prompts for a command
1039 and its arguments (the argument defaults to the currently selected
1040 file name), the output from such command is shown in the internal file
1041 viewer.
1043 .B Edit (F4, F14)
1045 Press F4 to edit the highlighted file.  Press F14 (usually F14)
1046 to start the editor with a new, empty file.
1047 Currently they invoke the
1048 .B vi
1049 editor, or the editor specified in the
1050 .B EDITOR
1051 environment variable, or the
1052 .\"LINK2"
1053 Internal File Editor
1054 .\"Internal File Editor"
1055 if the use_internal_edit option is on.
1057 .B Copy (F5, F15)
1059 Press F5 to pop up an input dialog to copy the currently selected file (or
1060 the tagged files, if there is at least one file tagged) to the
1061 directory/filename you specify in the input dialog.  The destination
1062 defaults to the directory in the non\-selected panel. During this
1063 process, you can press C\-c or ESC to abort the operation. For details
1064 about source mask (which will be usually either * or ^\\(.*\\)$ depending
1065 on setting of Use shell patterns) and possible wildcards in the destination
1067 .\"LINK2"
1068 Mask copy/rename\&.
1069 .\"Mask Copy/Rename"
1071 F15 (usually F15) is similar, but defaults to the directory in the
1072 selected panel. It always operates on the selected file, regardless of
1073 any tagged files.
1075 On some systems, it is possible to do the copy in the background by
1076 clicking on the background button (or pressing Alt\-b in the dialog
1077 box).  The
1078 .\"LINK2"
1079 Background Jobs
1080 .\"Background jobs"
1081 is used to control the background process.
1083 .B Link (C\-x l)
1085 Create a hard link to the current file.
1087 .B Absolute symlink (C\-x s)
1089 Create a absolute symbolic link to the current file.
1091 .B Relative symLink (C\-x v)
1093 Create a relative symbolic link to the current file.
1095 To those of you who don't know what links are: creating a link to a file
1096 is a bit like copying the file, but both the source filename and the destination
1097 filename represent the same file image. For example, if you edit one of these
1098 files, all changes you make will appear in both files. Some people call
1099 links aliases or shortcuts.
1101 A hard link appears as a real file. After making it, there is no way of
1102 telling which one is the original and which is the link. If you delete
1103 either one of them the other one is still intact. It is very difficult
1104 to notice that the files represent the same image. Use hard links when
1105 you don't even want to know.
1107 A symbolic link is a reference to the name of the original file. If
1108 the original file is deleted the symbolic link is useless. It is quite
1109 easy to notice that the files represent the same image. The Midnight
1110 Commander shows an "@"\-sign in front of the file name if it is a
1111 symbolic link to somewhere (except to directory, where it shows a tilde (~)).
1112 The original file which the link points to is shown on mini\-status line if the
1113 .I "Show mini\-status"
1114 option is enabled. Use symbolic links when you want to avoid the
1115 confusion that can be caused by hard links.
1117 When you press "C\-x s" Midnight Commander will automatically fill in the
1118 complete path+filename of the original file and suggest a name for the link.
1119 You can change either one.
1121 Sometimes you may want to change the absolute path of the original into
1122 a relative path. An absolute path starts from the root directory:
1124 .I /home/frodo/mc/mc -> /home/frodo/new/mc
1126 A relative link describes the original file's location starting from the
1127 location of the link itself:
1129 .I /home/frodo/mc/mc -> ../new/mc
1131 You can force Midnight Commander to suggest a relative path by pressing
1132 "C\-x v" instead of "C\-x s".
1134 .B Rename/Move (F6, F16)
1136 Press F6 to pop up an input dialog to copy the currently selected file (or
1137 the tagged files, if there is at least one file tagged) to the
1138 directory/filename you specify in the input dialog.  The destination
1139 defaults to the directory in the non\-selected panel. For more details
1140 look at Copy (F5) operation above, most of the things are quite similar.
1142 F16 (usually F16) is similar, but defaults to the directory in the
1143 selected panel. It always operates on the selected file, regardless of
1144 any tagged files.
1146 On some systems, it is possible to do the copy in the background by
1147 clicking on the background button (or pressing Alt\-b in the dialog
1148 box).  The
1149 .\"LINK2"
1150 Background Jobs
1151 .\"Background jobs"
1152 is used to control the background process.
1154 .B Mkdir (F7)
1156 Pop up an input dialog and creates the directory specified.
1158 .B Delete (F8)
1160 Delete the currently selected file or the tagged files in the
1161 currently selected panel. During the process, you can press C\-c or
1162 ESC to abort the operation.
1164 .B Quick cd (Alt\-c)
1165 Use the
1166 .\"LINK2"
1167 quick cd
1168 .\"Quick cd"
1169 command if you have full command line and want to cd somewhere.
1171 .B Select group (+)
1173 This is used to select (tag) a group of files. The Midnight Commander
1174 will prompt for a selection options. When
1175 .I Files only
1176 checkbox is on, only files will be selected.  If
1177 .I Files only
1178 is off, as files as directories will be selected.
1179 When
1180 .I Shell Patterns
1181 checkbox is on, the regular expression is much like the filename globbing
1182 in the shell (* standing for zero or more characters and ?  standing
1183 for one character). If
1184 .I Shell Patterns
1185 is off, then the tagging of files is done with normal regular
1186 expressions (see ed (1)). When
1187 .I Case sensitive
1188 checkbox is on, the selection will be case sensitive characters.
1190 .I Case sensitive
1191 is off, the case will be ignored.
1193 .B Unselect group (\\\\)
1195 Used to unselect a group of files. This is the opposite of the
1196 .I "Select group"
1197 command.
1199 .B Quit (F10, Shift\-F10)
1201 Terminate the Midnight Commander.  Shift\-F10 is used when you want to
1202 quit and you are using the shell wrapper.  Shift\-F10 will not take you
1203 to the last directory you visited with the Midnight Commander, instead
1204 it will stay at the directory where you started the Midnight Commander.
1205 .\"NODE "    Quick cd"
1206 .SH "    Quick cd"
1207 This command is useful if you have a full command line and want to
1208 .\"LINK2"
1210 .\"The cd internal command"
1211 somewhere without having to yank and paste the command line. This command
1212 pops up a small dialog, where you enter everything you would enter after
1213 .B cd
1214 on the command line and then you press enter. This features all the things
1215 that are already in the
1216 .\"LINK2"
1217 internal cd command\&.
1218 .\"The cd internal command"
1219 .\"NODE "  Command Menu"
1220 .SH "  Command Menu"
1222 .\"LINK2"
1223 Directory tree
1224 .\"Directory Tree"
1225 command shows a tree figure of the directories.
1228 .\"LINK2"
1229 "Find file"
1230 .\"Find File"
1231 command allows you to search for a specific file.
1233 The "Swap panels" command swaps the contents of the two directory panels.
1235 The "Switch panels on/off" command shows the output of the last shell command.
1236 This works only on xterm and on Linux and FreeBSD console.
1238 The "Compare directories" command compares the directory
1239 panels with each other. You can then use the Copy (F5) command to make
1240 the panels identical. There are three compare methods. The quick method
1241 compares only file size and file date. The thorough method makes a
1242 full byte\-by\-byte compare. The thorough method is not available if the
1243 machine does not support the mmap(2) system call.  The size\-only
1244 compare method just compares the file sizes and does not check the
1245 contents or the date times, it just checks the file size.
1248 .\"LINK2"
1249 "External panelize"
1250 .\"External panelize"
1251 allows you to execute an external program, and make the output of that
1252 program the contents of the current panel.
1254 The "Command history" command shows a list of typed commands. The
1255 selected command is copied to the command line. The command history
1256 can also be accessed by typing Alt\-p or Alt\-n.
1259 .\"LINK2"
1260 "Directory hotlist"
1261 .\"Hotlist"
1262 command makes changing of the current directory to often used directories
1263 faster.
1266 .\"LINK2"
1267 "Screen list"
1268 .\"Screen selector"
1269 command shows a dialog window with the list of currently running
1270 internal editors, viewers and other MC modules that support this mode.
1273 .\"LINK2"
1274 "Edit extension file"
1275 .\"Extension File Edit"
1276 command allows you to specify programs to executed when you try to
1277 execute, view, edit and do a bunch of other thing on files
1278 with certain extensions (filename endings).
1281 .\"LINK2"
1282 "Edit menu file"
1283 .\"Menu File Edit"
1284 command may be used for editing the user menu (which appears by
1285 pressing F2).
1286 .\"NODE "    Directory Tree"
1287 .SH "    Directory Tree"
1288 The Directory Tree command shows a tree figure of the directories. You
1289 can select a directory from the figure and the Midnight Commander will
1290 change to that directory.
1292 There are two ways to invoke the tree. The real directory tree command
1293 is available from Commands menu. The other way is to select tree view
1294 from the Left or Right menu.
1296 To get rid of long delays the Midnight Commander creates the tree
1297 figure by scanning only a small subset of all the directories. If the
1298 directory which you want to see is missing, move to its parent
1299 directory and press C\-r (or F2).
1301 You can use the following keys:
1303 .\"LINK2"
1304 General movement keys
1305 .\"General Movement Keys"
1306 are accepted.
1308 .B Enter.
1309 In the directory tree, exits the directory tree and changes to this
1310 directory in the current panel. In the tree view, changes to this
1311 directory in the other panel and stays in tree view mode in the
1312 current panel.
1314 .B C\-r, F2 (Rescan).
1315 Rescan this directory. Use this when the tree figure is out of date:
1316 it is missing subdirectories or shows some subdirectories which don't
1317 exist any more.
1319 .B F3 (Forget).
1320 Delete this directory from the tree figure. Use this to remove clutter
1321 from the figure. If you want the directory back to the tree figure
1322 press F2 in its parent directory.
1324 .B F4 (Static/Dynamic).
1325 Toggle between the dynamic navigation mode (default) and the static
1326 navigation mode.
1328 In the static navigation mode you can use the Up and Down keys to
1329 select a directory. All known directories are shown.
1331 In the dynamic navigation mode you can use the Up and Down keys to
1332 select a sibling directory, the Left key to move to the parent
1333 directory, and the Right key to move to a child directory. Only the
1334 parent, sibling and children directories are shown, others are left
1335 out. The tree figure changes dynamically as you traverse.
1337 .B F5 (Copy).
1338 Copy the directory.
1340 .B F6 (RenMov).
1341 Move the directory.
1343 .B F7 (Mkdir).
1344 Make a new directory below this directory.
1346 .B F8 (Delete).
1347 Delete this directory from the file system.
1349 .B C\-s, Alt\-s.
1350 Search the next directory matching the search string. If there is
1351 no such directory these keys will move one line down.
1353 .B C\-h, Backspace.
1354 Delete the last character of the search string.
1356 .B Any other character.
1357 Add the character to the search string and move to the next directory
1358 which starts with these characters. In the tree view you must first
1359 activate the search mode by pressing C\-s. The search string is shown
1360 in the mini status line.
1362 The following actions are available only in the directory tree. They
1363 aren't supported in the tree view.
1365 .B F1 (Help).
1366 Invoke the help viewer and show this section.
1368 .B Esc, F10.
1369 Exit the directory tree. Do not change the directory.
1371 The mouse is supported. A double\-click behaves like Enter. See
1372 also the section on
1373 .\"LINK2"
1374 mouse support\&.
1375 .\"Mouse Support"
1376 .\"NODE "    Find File"
1377 .SH "    Find File"
1378 The Find File feature first asks for the start directory for the
1379 search and the filename to be searched for. By pressing the Tree
1380 button you can select the start directory from the
1381 .\"LINK2"
1382 directory tree
1383 .\"Directory Tree"
1384 figure.
1386 Option \"Whole words\" allows select only those files containing matches that
1387 form whole words. Like grep \-w.
1389 You can start the search by pressing the OK button.
1390 During the search you can stop from the Stop button and continue from
1391 the Start button.
1393 You can browse the filelist with the up and down arrow keys. The Chdir
1394 button will change to the directory of the currently selected
1395 file. The Again button will ask for the parameters for a new
1396 search. The Quit button quits the search operation. The Panelize
1397 button will place the found files to the current directory panel so
1398 that you can do additional operations on them (view, copy, move,
1399 delete and so on). After panelizing you can press C\-r to return to the
1400 normal file listing.
1402 The 'Enable ignore directories' checkbox and input field below it
1403 allow to set up the list of directories that should be skip during the search
1404 files (for example, you may want to avoid searches on a CD\-ROM or on a NFS
1405 directory that is mounted across a slow link). List components must be separated
1406 with a colon, here is an example:
1409 /cdrom:/nfs/wuarchive:/afs
1412 Relative paths are supported also. The following example shows how to skip special
1413 directories of version control systems:
1415 /cdrom:/nfs/wuarchive:/afs:.svn:.git:CVS
1418 Attention: input field can contain a dot (.), this means the current absolute path.
1420 You may consider using the
1421 .\"LINK2"
1422 External panelize
1423 .\"External panelize"
1424 command for some operations. Find file command is for simple queries
1425 only, while using External panelize you can do as mysterious searches
1426 as you would like.
1427 .\"NODE "    External panelize"
1428 .SH "    External panelize"
1429 The External panelize allows you to execute an external program, and
1430 make the output of that program the contents of the current panel.
1432 For example, if you want to manipulate in one of the panels all the
1433 symbolic links in the current directory, you can use external
1434 panelization to run the following command:
1437 find . \-type l \-print
1440 Upon command completion, the directory contents of the panel will no
1441 longer be the directory listing of the current directory, but all the
1442 files that are symbolic links.
1444 If you want to panelize all of the files that have been downloaded
1445 from your FTP server, you can use this awk command to extract the file
1446 name from the transfer log files:
1449 awk '$9 ~! /incoming/ { print $9 }' < /var/log/xferlog
1452 You may want to save often used panelize commands under a descriptive name,
1453 so that you can recall them quickly. You do this by typing the command on
1454 the input line and pressing Add new button. Then you enter a name under
1455 which you want the command to be saved. Next time, you just choose that
1456 command from the list and do not have to type it again.
1457 .\"NODE "    Hotlist"
1458 .SH "    Hotlist"
1459 The Directory hotlist command shows the labels of the directories
1460 in the directory hotlist.  The Midnight Commander will change to the
1461 directory corresponding to the selected label.  From the hotlist dialog,
1462 you can remove already created label/directory pairs and add new ones.
1463 To add new directories quickly, you can use the Add to hotlist command
1464 (C\-x h), which adds the current directory into the directory hotlist,
1465 asking just for the label for the directory.
1467 This makes cd to often used directories faster. You may consider using the
1468 CDPATH variable as described in
1469 .\"LINK2"
1470 internal cd command
1471 .\"The cd internal command"
1472 description.
1473 .\"NODE "    Extension File Edit"
1474 .SH "    Extension File Edit"
1475 This will invoke your editor on the file
1476 .IR ~/.local/share/mc/mc.ext .
1477 The format of this file following:
1479 All lines starting with # or empty lines are thrown away.
1481 Lines starting in the first column should have following format:
1483 .IR keyword/expr ,
1484 i.e. everything after the slash until new line is
1485 .IR expr .
1487 .I keyword
1488 can be:
1490 .I shell
1492 .I expr
1493 is an extension (no wildcards).  File matches it its name ends
1494 with
1495 .IR expr .
1496 Example:
1497 .I shell/.tar
1498 matches
1499 .IR *.tar .
1501 .I regex
1503 .I expr
1504 is a regular expression.  File matches if its name matches the regular
1505 expression.
1507 .I directory
1509 .I expr
1510 is a regular expression.  File matches if it is a directory and its name
1511 matches the regular expression.
1513 .I type
1515 .I expr
1516 is a regular expression.  File matches if the output of
1517 .I file %f
1518 without the initial "filename:" part matches regular expression
1519 .IR expr .
1521 .I default
1522 \- matches any file.
1523 .I expr
1524 is ignored.
1526 .I include
1527 \- denotes a common section.
1528 .I expr
1529 is the name of the section.
1531 Other lines should start with a space or tab and should be of the format:
1532 .I keyword=command
1533 (with no spaces around =), where
1534 .I keyword
1535 should be:
1536 .I Open
1537 (invoked on Enter or double click),
1538 .I View
1539 (F3),
1540 .I Edit
1541 (F4) or
1542 .I Include
1543 (to add rules from the common section).
1544 .I command
1545 is any one\-line shell command, with the simple
1546 .\"LINK2"
1547 macro substitution\&.
1548 .\"Macro Substitution"
1550 Rules are matched from top to bottom, thus the order is important.  If
1551 the appropriate action is missing, search continues as if this rule
1552 didn't match (i.e. if a file matches the first and second entry and View
1553 action is missing in the first one, then on pressing F3 the View action
1554 from the second entry will be used).
1555 .I default
1556 should match all the actions.
1557 .\"NODE "    Background jobs"
1558 .SH "    Background Jobs"
1559 This lets you control the state of any background Midnight Commander
1560 process (only copy and move files operations can be done in the
1561 background).  You can stop, restart and kill a background job from
1562 here.
1563 .\"NODE "    Menu File Edit"
1564 .SH "    Menu File Edit"
1565 The user menu is a menu of useful actions that can be customized by
1566 the user. When you access the user menu, the
1567 file .mc.menu from the current directory is used if it exists,
1568 but only if it is owned by user or root and is not world\-writable.
1569 If no such file found, ~/.local/share/mc/menu is tried in the same way,
1570 and otherwise mc uses the default system\-wide menu
1571 @prefix@/share/mc/mc.menu.
1573 The format of the menu file is very simple. Lines that start with
1574 anything but space or tab are considered entries for the menu (in
1575 order to be able to use it like a hot key, the first character should
1576 be a letter). All the lines that start with a space or a tab are the
1577 commands that will be executed when the entry is selected.
1579 When an option is selected all the command lines of the option are
1580 copied to a temporary file in the temporary directory (usually
1581 /usr/tmp) and then that file is executed. This allows the user to put
1582 normal shell constructs in the menus. Also simple macro substitution
1583 takes place before executing the menu code. For more information, see
1584 .\"LINK2"
1585 macro substitution\&.
1586 .\"Macro Substitution"
1588 Here is a sample mc.menu file:
1591 A       Dump the currently selected file
1592         od \-c %f
1594 B       Edit a bug report and send it to root
1595         I=`mktemp ${MC_TMPDIR:\-/tmp}/mail.XXXXXX` || exit 1
1596         vi $I
1597         mail \-s "Midnight Commander bug" root < $I
1598         rm \-f $I
1600 M       Read mail
1601         emacs \-f rmail
1603 N       Read Usenet news
1604         emacs \-f gnus
1606 H       Call the info hypertext browser
1607         info
1609 J       Copy current directory to other panel recursively
1610         tar cf \- . | (cd %D && tar xvpf \-)
1612 K       Make a release of the current subdirectory
1613         echo \-n "Name of distribution file: "
1614         read tar
1615         ln \-s %d `dirname %d`/$tar
1616         cd ..
1617         tar cvhf ${tar}.tar $tar
1619 = f *.tar.gz | f *.tgz & t n
1620 X       Extract the contents of a compressed tar file
1621         tar xzvf %f
1624 .B Default Conditions
1626 Each menu entry may be preceded by a condition. The condition must
1627 start from the first column with a '=' character. If the condition is
1628 true, the menu entry will be the default entry.
1631 Condition syntax:       = <sub\-cond>
1632   or:                   = <sub\-cond> | <sub\-cond> ...
1633   or:                   = <sub\-cond> & <sub\-cond> ...
1635 Sub\-condition is one of following:
1637   y <pattern>           syntax of current file matching pattern?
1638                         (for edit menu only)
1639   f <pattern>           current file matching pattern?
1640   F <pattern>           other file matching pattern?
1641   d <pattern>           current directory matching pattern?
1642   D <pattern>           other directory matching pattern?
1643   t <type>              current file of type?
1644   T <type>              other file of type?
1645   x <filename>          is it executable filename?
1646   ! <sub\-cond>         negate the result of sub\-condition
1649 Pattern is a normal shell pattern or a regular expression, according
1650 to the shell patterns option. You can override the global value of
1651 the shell patterns option by writing "shell_patterns=x" on the first
1652 line of the menu file (where "x" is either 0 or 1).
1654 Type is one or more of the following characters:
1657   n     not a directory
1658   r     regular file
1659   d     directory
1660   l     link
1661   c     character device
1662   b     block device
1663   f     FIFO (pipe)
1664   s     socket
1665   x     executable file
1666   t     tagged
1669 For example 'rlf' means either regular file, link or fifo. The 't'
1670 type is a little special because it acts on the panel instead of the
1671 file. The condition '=t t' is true if there are tagged files in the
1672 current panel and false if not.
1674 If the condition starts with '=?' instead of '=' a debug trace will be
1675 shown whenever the value of the condition is calculated.
1677 The conditions are calculated from left to right. This means
1679         = f *.tar.gz | f *.tgz & t n
1681 is calculated as
1683         ( (f *.tar.gz) | (f *.tgz) ) & (t n)
1686 Here is a sample of the use of conditions:
1689 = f *.tar.gz | f *.tgz & t n
1690 L       List the contents of a compressed tar\-archive
1691         gzip \-cd %f | tar xvf \-
1694 .B Addition Conditions
1696 If the condition begins with '+' (or '+?') instead of '=' (or '=?') it
1697 is an addition condition. If the condition is true the menu entry will
1698 be included in the menu. If the condition is false the menu entry will
1699 not be included in the menu.
1701 You can combine default and addition conditions by starting condition
1702 with '+=' or '=+' (or '+=?' or '=+?' if you want debug trace). If you
1703 want to use two different conditions, one for adding and another for
1704 defaulting, you can precede a menu entry with two condition lines, one
1705 starting with '+' and another starting with '='.
1707 Comments are started with '#'. The additional comment lines must start
1708 with '#', space or tab.
1709 .\"NODE "  Options Menu"
1710 .SH "  Options Menu"
1711 The Midnight Commander has some options that may be toggled on and
1712 off in several dialogs which are accessible from this menu. Options
1713 are enabled if they have an asterisk or "x" in front of them.
1716 .\"LINK2"
1717 Configuration
1718 .\"Configuration"
1719 command pops up a dialog from which you can change most of settings of
1720 the Midnight Commander.
1723 .\"LINK2"
1724 Layout
1725 .\"Layout"
1726 command pops up a dialog from which you specify a bunch of options how mc
1727 looks like on the screen.
1730 .\"LINK2"
1731 Panel options
1732 .\"Panel options"
1733 command pops up a dialog from which you specify options of file manager panels.
1736 .\"LINK2"
1737 Confirmation
1738 .\"Confirmation"
1739 command pops up a dialog from which you specify which actions you want to
1740 confirm.
1743 .\"LINK2"
1744 Display bits
1745 .\"Display bits"
1746 command pops up a dialog from which you may select which characters is your
1747 terminal able to display.
1750 .\"LINK2"
1751 Learn keys
1752 .\"Learn keys"
1753 command pops up a dialog from which you test some keys which are not working
1754 on some terminals and you may fix them.
1757 .\"LINK2"
1758 Virtual FS
1759 .\"Virtual FS"
1760 command pops up a dialog from which you specify some VFS related options.
1763 .\"LINK2"
1764 Save setup
1765 .\"Save Setup"
1766 command saves the current settings of the Left, Right and Options
1767 menus. A small number of other settings is saved, too.
1768 .\"NODE "    Configuration"
1769 .SH "    Configuration"
1770 The options in this dialog are divided into several groups: "File
1771 operation options", "Esc key mode", "Pause after run" and "Other options".
1773 .B File operation options
1775 .I Verbose operation.
1776 This toggles whether the file Copy, Rename and Delete operations are
1777 verbose (i.e., display a dialog box for each operation). If you have a
1778 slow terminal, you may wish to disable the verbose operation. It is
1779 automatically turned off if the speed of your terminal is less than
1780 9600 bps.
1782 .I Compute totals.
1783 If this option is enabled, the Midnight Commander computes total byte
1784 sizes and total number of files prior to any Copy, Rename and Delete
1785 operations. This will provide you with a more accurate progress bar
1786 at the expense of some speed. This option has no effect, if
1787 .I Verbose  operation
1788 is disabled.
1790 .I Classic progressbar.
1791 If this option is enabled, the progressbar of Copy/Move/Delete operations
1792 is always grown form left to right. If disabled, the growing direction
1793 of progressbar follows to direction of Copy/Move/Delete operation:
1794 from left panel to right one and vice versa. Enabled by default.
1796 .I Mkdir autoname
1797 When you press F7 to create a new directory, the input line in popup dialog
1798 will be filled by name of current file or directory in active panel.
1799 Disabled by default.
1801 .B Esc key mode.
1803 By default the Midnight Commander treats the ESC key as a key prefix.
1804 Therefore, you should press Esc code twice to exit a dialog. But there is
1805 a possibility to use a single press of ESC key for that action.
1807 .I Single press.
1808 By default this option is disabled. If you'll enable it, the ESC key
1809 will act as a prefix key for set up time interval (see
1810 .I Timeout
1811 option below), and if no extra keys have arrived, then the ESC key
1812 is interpreted as a cancel key (ESC ESC).
1814 .I Timeout.
1815 This options is used to setup the time interval (in microseconds)
1816 for single press of ESC key. By default, this inrerval is one second
1817 (1000000 microseconds). Also the timeout can be set via KEYBOARD_KEY_TIMEOUT_US
1818 environment variable (also in microseconds), which has higher priority
1819 than Timeout option value.
1821 .B Pause after run
1823 After executing your commands, the Midnight Commander can pause, so
1824 that you can examine the output of the command.  There are three
1825 possible settings for this variable:
1827 .IR Never .
1828 Means that you do not want to see the output of your command.  If you
1829 are using the Linux or FreeBSD console or an xterm, you will be able to
1830 see the output of the command by typing C\-o.
1832 .IR On dumb terminals .
1833 You will get the pause message on terminals that are not capable of
1834 showing the output of the last command executed (any terminal that is
1835 not an xterm or the Linux console).
1837 .IR Always .
1838 The program will pause after executing all of your commands.
1840 .B Other options
1842 .I Use internal editor.
1843 If this option is enabled, the built\-in file editor is used to edit
1844 files. If the option is disabled, the editor specified in the
1845 .B EDITOR
1846 environment variable is used.
1847 If no editor is specified,
1848 .B vi
1849 is used.  See the section on the
1850 .\"LINK2"
1851 internal file editor\&.
1852 .\"Internal File Editor"
1854 .I Use internal viewer.
1855 If this option is enabled, the built\-in file viewer is used to view
1856 files. If the option is disabled, the pager specified in the
1857 .B PAGER
1858 environment variable is used.
1859 If no pager is specified, the
1860 .B view
1861 command is used.  See the section on the
1862 .\"LINK2"
1863 internal file viewer\&.
1864 .\"Internal File Viewer"
1866 .I Auto menus.
1867 If this option is enabled, the user menu will be invoked at startup.
1868 Useful for building menus for non\-unixers.
1870 .I Drop down menus.
1871 When this option is enabled, the pull down menus will be activated as
1872 soon as you press the F9 key. Otherwise, you will only get the menu title,
1873 and you will have to activate the menu either with the arrow keys or with
1874 the hotkeys. It is recommended if you are using hotkeys.
1876 .I Shell Patterns.
1877 By default the Select, Unselect and Filter commands will use shell\-like
1878 regular expressions. The following conversions are performed to achieve
1879 this: the '*' is replaced by '.*' (zero or more characters); the '?'
1880 is replaced by '.' (exactly one character) and '.' by the literal
1881 dot. If the option is disabled, then the regular expressions are the
1882 ones described in ed(1).
1884 .I Complete: show all.
1885 By default the Midnight Commander pops up all possible
1886 .\"LINK2"
1887 completions
1888 .\"Completion"
1889 if the completion is ambiguous only when you press
1890 .B Alt\-Tab
1891 for the second time.  For the first time, it just completes as much as
1892 possible and beeps in the case of ambiguity.  Enable this option if you
1893 want to see all possible completions even after pressing
1894 .B Alt\-Tab
1895 the first time.
1897 .I Rotating dash.
1898 If this option is enabled, the
1899 Midnight Commander shows a rotating dash in the upper right corner
1900 as a work in progress indicator.
1902 .I Cd follows links.
1903 This option, if set, causes the Midnight Commander to follow the
1904 logical chain of directories when changing current directory
1905 either in the panels, or using the cd command. This is the default
1906 behavior of bash. When unset, the Midnight Commander follows the
1907 real directory structure, so cd .. if you've entered that directory
1908 through a link will move you to the current directory's real parent
1909 and not to the directory where the link was present.
1911 .I Safe delete.
1912 If this option is enabled, deleting files and directory hotlist entries
1913 unintentionally becomes more difficult.  The default selection in the
1914 confirmation dialogs for deletion changes from "Yes" to "No".
1915 This option is disabled by default.
1917 .I Auto save setup.
1918 If this option is enabled, when you exit the Midnight Commander the
1919 configurable options of the Midnight Commander are saved in the
1920 ~/.config/mc/ini file.
1921 .\"NODE "    Layout"
1922 .SH "    Layout"
1923 The layout dialog gives you a possibility to change the general layout
1924 of screen. The options in this dialog are divided into several groups:
1925 "Panel split", "Console output" and "Other options".
1927 .B Panel split
1929 The rest of the screen area is used for the two directory panels. You
1930 can specify whether the area is split to the panels in
1931 .I Vertical
1932  or
1933 .I Horizontal
1934 direction. Panel layout can be changed using Alt\-, (Alt\-comma) shortcut.
1936 .I Equal split.
1937 By default, panels have equal sizes. Using this option you can specify
1938 an unequal split.
1940 .B Console output
1942 On the Linux or FreeBSD console you can specify how many lines are shown
1943 in the output window. This option is available if Midnight Commander runs
1944 on native console only.
1946 .B Other options
1948 .I Menu bar visible.
1949 If enabled, main menu of Midnight Commander is always visible on the top row
1950 of screen above panels. Enabled by default.
1952 .I Command prompt.
1953 If enabled, command line is avalable. Enabled by default.
1955 .I Keybar visible.
1956 If enabled, 10 lables associated with F1\-F10 keys are located at the bottom
1957 row of screen. Enabled by default.
1959 .I Hintbar visible.
1960 If enabled, the one\-line hints are visible below panels. Enabled by default.
1962 .I XTerm window title.
1963 When run in a terminal emulator for X11, Midnight Commander sets the
1964 terminal window title to the current working directory and updates it
1965 when necessary.  If your terminal emulator is broken and you see some
1966 incorrect output on startup and directory change, turn off this option.
1967 Enabled by default.
1969 .I Show free space.
1970 If enabled, free space and total space of current file system is shown
1971 at the bottom frame of panel. Enabled by default.
1972 .\"NODE "    Panel options"
1973 .SH "    Panel options"
1974 .B Main panel options
1976 .I Show mini\-status.
1977 If enabled, one line of status information about the currently selected item
1978 is shown at the bottom of the panels. Enabled by default.
1980 .I Use SI size units.
1981 If this option is enabled, Midnight Commander will use SI units (powers of 1000)
1982 when displaying any byte sizes. The suffixes (k, m ...) are shown in lowercase.
1983 If disabled (default), Midnight Commander will use binary units (powers of 1024)
1984 and the suffixes are shown in upper case (K, M ...)
1986 .I Mix all files.
1987 If this option is enabled, all files and directories are shown mixed
1988 together.  If the option is desabled (default), directories (and links to
1989 directories) are shown at the beginning of the listing, and other files below.
1991 .I Show backup files.
1992 If enabled, the Midnight Commander will show files ending with a tilde.
1993 Otherwise, they won't be shown (like GNU's ls option \-B). Enabled by default.
1995 .I Show hidden files.
1996 If enabled, the Midnight Commander will show all files that start with
1997 a dot (like ls \-a). Disabled by default.
1999 .I Fast directory reload.
2000 If this option is enabled, the Midnight Commander will use a trick to
2001 determine if the directory contents have changed.  The trick is to reload
2002 the directory only if the i\-node of the directory has changed; this means
2003 that reloads only happen when files are created or deleted.  If what
2004 changes is the i\-node for a file in the directory (file size changes,
2005 mode or owner changes, etc) the display is not updated.  In these cases,
2006 if you have the option on, you have to rescan the directory manually
2007 (with C\-r). Disabled by default.
2009 .I Mark moves down.
2010 If enabled, the selection bar will move down when you mark a file (with
2011 Insert key). Enabled by default.
2013 .I Reverse files only.
2014 Allow revert selection of files only. Enabled by default.
2015 If enabled, the reverse selection is applied to files only, not to directories.
2016 The selection of directories is untouched. If off, the reverse selection
2017 is applied to files as well to directories: all unselected items become
2018 selected, and vice versa.
2020 .I Simple swap.
2021 If both panels contain file listing, simple swap means that panels exchange
2022 its screen positions: left panel become right one, and vice versa. If this
2023 option is unchecked, file listing panels exchange its content keeping listing
2024 format and sort options. Unchecked by default.
2026 .I Auto save panels setup.
2027 If this option is enabled, when you exit the Midnight Commander the
2028 current settings of panels are saved in the ~/.cache/mc/panels.ini file.
2029 Disabled by default.
2031 .B Navigation
2033 .I Lynx\-like motion.
2034 If this option is enabled, you may use the arrows keys to automatically
2035 chdir if the current selection is a subdirectory and the shell command
2036 line is empty. By default, this setting is off.
2038 .I Page scrolling.
2039 If set (the default), panel will scroll by half the display when the
2040 cursor reaches the end or the beginning of the panel, otherwise it
2041 will just scroll a file at a time.
2043 .I Mouse page scrolling.
2044 Controls whenever scrolling with the mouse wheel is done by pages or
2045 line by line on the panels.
2047 .B File highlight
2049 You can specify whether
2050 .I permissions
2052 .I file types
2053 should be highlighted with distinctive
2054 .\"LINK2"
2055 Colors\&.
2056 .\"Colors"
2057 If the permission highlighting is enabled, the parts of the
2058 .I perm
2060 .I mode
2061 .\"LINK2"
2062 display fields
2063 .\"Listing Mode..."
2064 which apply to the user running Midnight Commander are highlighted with
2065 the color defined by the
2066 .I selected
2067 keyword.  If the file type highlighting is enabled, file names are colored
2068 according to rules described in @sysconfdir@/mc/filehighlight.ini file. See
2069 .\"LINK2"
2070 Filenames Highlight
2071 .\"Filenames Highlight"
2072 for more info.
2074 .B Quick search
2076 You can specify how the
2077 .\"LINK2"
2078 Quick search
2079 .\"Quick search"
2080 mode should works: case insensitively, case sensitively or be matched
2081 to the the panel sort order: case sensitive or not.
2082 .\"NODE "    Confirmation"
2083 .SH "    Confirmation"
2084 In this dialog you configure the confirmation options for file deletion,
2085 overwriting files, execution by pressing enter, quitting the program,
2086 directory hotlist entries deletion and history cleanup.
2087  and.
2088 .\"NODE "    Display bits"
2089 .SH "    Display bits"
2090 This is used to configure the range of visible characters on the
2091 screen.  This setting may be 7\-bits if your terminal/curses supports
2092 only seven output bits, ISO\-8859\-1 displays all the characters in the
2093 ISO\-8859\-1 map and full 8 bits is for those terminals that can display
2094 full 8 bit characters.
2095 .\"NODE "    Learn keys"
2096 .SH "    Learn keys"
2097 This dialog allows you to test and redefine functional keys, cursor
2098 arrows and some other keys to make them work properly on your terminal.
2099 They often don't, since many terminal databases are incomplete or broken.
2101 You can move around with the Tab key and with the vi moving keys ('h'
2102 left, 'j' down, 'k' up and 'l' right).  Once you press any cursor movement
2103 key and it is recognized, you can use that key as well.
2105 You can test keys just by pressing each of them.  When you press a
2106 key and it is recognized properly, OK should appear next to the name
2107 of that key.  Once a key is marked OK it starts working as usually,
2108 e.g. F1 pressed the first time will just check that the F1 key works,
2109 but after that it will show help.  The same applies to the arrow keys.
2110 The Tab key should be working always.
2112 If some keys do not work properly then you won't see OK appear after
2113 pressing one of these.  Then you may want to redefine it.  Do it by pressing
2114 the button with the name of that key (either by the mouse or by Enter
2115 or Space after selecting the button with Tab or arrows).  Then a message
2116 box will appear asking you to press that key.  Do it and wait until the
2117 message box disappears.  If you want to abort, just press Escape once
2118 and wait.
2120 When you finish with all the keys, you can Save them.  The definitions
2121 for the keys you have redefined will be written into the [terminal:TERM]
2122 section of your ~/.config/mc/ini file (where TERM is the name of your current
2123 terminal).  The definitions of the keys that were already working properly
2124 are not saved.
2125 .\"NODE "    Virtual FS"
2126 .SH "    Virtual FS"
2127 This option gives you control over the settings of the
2128 .\"LINK2"
2129 Virtual File System\&.
2130 .\"Virtual File System"
2132 The Midnight Commander keeps in memory the information related to some
2133 of the virtual file systems to speed up the access to the files in the
2134 file system (for example, directory listings fetched from FTP servers).
2136 Also, in order to access the contents of compressed files (for example,
2137 compressed tar files) the Midnight Commander needs to create temporary
2138 uncompressed files on your disk.
2140 Since both the information in memory and the temporary files on disk
2141 take up resources, you may want to tune the parameters of the cached
2142 information to decrease your resource usage or to maximize the speed of
2143 access to frequently used file systems.
2145 Because of the format of the tar archives, the
2146 .I Tar filesystem
2147 needs to read the whole file just to load the file entries.  Since most
2148 tar files are usually kept compressed (plain tar files are species in
2149 extinction), the tar file system has to uncompress the file on the disk
2150 in a temporary location and then access the uncompressed file as a
2151 regular tar file.
2153 Now, since we all love to browse files and tar files all over the disk,
2154 it's common that you will leave a tar file and then re\-enter it later.
2155 Since decompression is slow, the Midnight Commander will cache the
2156 information in memory for a limited time.  When the timeout expires, all
2157 the resources associated with the file system are released.  The default
2158 timeout is set to one minute.
2161 .\"LINK2"
2162 FTP File System
2163 .\"FTP File System"
2164 (ftpfs) allows you to browse directories on remote FTP servers.  It has
2165 several options.
2167 .I ftp anonymous password
2168 is the password used when you login as "anonymous".  Some sites require
2169 a valid e\-mail address.  On the other hand, you probably don't want to
2170 give your real e\-mail address to untrusted sites, especially if you are
2171 not using spam filtering.
2173 ftpfs keeps the directory listing it fetches from a FTP server in a cache.
2174 The cache expire time is configurable with the
2175 .I ftpfs directory cache timeout
2176 option.  A low value for this option may slow down every operation on
2177 the ftpfs because every operation would require sending a request to the
2178 FTP server.
2180 You can define an FTP proxy host for doing FTP.  Note that most modern
2181 firewalls are fully transparent at least for passive FTP (see below), so
2182 FTP proxies are considered obsolete.
2185 .I Always use ftp proxy
2186 is not set, you can use the exclamation sign to enable proxy for certain
2187 hosts.  See
2188 .\"LINK2"
2189 FTP File System
2190 .\"FTP File System"
2191 for examples.
2193 If this option is set, the program will do two things: consult the
2194 @prefix@/lib/mc/mc.no_proxy file for lines containing host names that
2195 are local (if the host name starts with a dot, it is assumed to be a
2196 domain) and to assume that any hostnames without dots in their names are
2197 directly accessible.  All other hosts will be accessed through the
2198 specified FTP proxy.
2200 You can enable using
2201 .I ~/.netrc
2202 file, which keeps login names and passwords for ftp servers.  See netrc
2203 (5) for the description of the .netrc format.
2205 .I Use passive mode
2206 enables using FTP passive mode, when the connection for data transfer is
2207 initiated by the client, not by the server.  This option is recommended
2208 and enabled by default.  If this option is turned off, the data
2209 connection is initiated by the server.  This may not work with some
2210 firewalls.
2211 .\"NODE "    Save Setup"
2212 .SH "    Save Setup"
2213 At startup the Midnight Commander will try to load initialization
2214 information from the ~/.config/mc/ini file. If this file
2215 doesn't exist, it will load the information from the system\-wide
2216 configuration file, located in @prefix@/share/mc/mc.ini. If the 
2217 system\-wide configuration file doesn't exist, MC uses the default settings.
2220 .I Save Setup
2221 command creates the ~/.config/mc/ini file by saving the
2222 current settings of the
2223 .\"LINK2"
2224 Left, Right
2225 .\"Left and Right Menus"
2227 .\"LINK2"
2228 Options
2229 .\"Options Menu"
2230 menus.
2232 If you activate the
2233 .I auto save setup
2234 option, MC will always save the current settings when exiting.
2236 There also exist settings which can't be changed from the menus. To
2237 change these settings you have to edit the setup file with your
2238 favorite editor. See the section on
2239 .\"LINK2"
2240 Special Settings
2241 .\"Special Settings"
2242 for more information.
2243 .SH ""
2244 .\"NODE "Executing operating system commands"
2245 .SH "Executing operating system commands"
2246 You may execute commands by typing them directly in the Midnight
2247 Commander's input line, or by selecting the program you want to
2248 execute with the selection bar in one of the panels and hitting Enter.
2250 If you press Enter over a file that is not executable, the Midnight
2251 Commander checks the extension of the selected file against the
2252 extensions in the
2253 .\"LINK2"
2254 Extensions File\&.
2255 .\"Extension File Edit"
2256 If a match is found then the code associated with that extension is
2257 executed. A very simple
2258 .\"LINK2"
2259 macro expansion
2260 .\"Macro Substitution"
2261 takes place before executing the command.
2262 .\"NODE "  The cd internal command"
2263 .SH "  The cd internal command"
2265 .I cd
2266 command is interpreted by the Midnight Commander, it is not passed to
2267 the command shell for execution.  Thus it may not handle all of the
2268 nice macro expansion and substitution that your shell does, although it
2269 does some of them:
2271 .I Tilde substitution.
2272 The (~) will be substituted with your home directory, if you append a
2273 username after the tilde, then it will be substituted with the login
2274 directory of the specified user.
2276 For example, ~guest is the home directory for the user guest, while
2277 ~/guest is the directory guest in your home directory.
2279 .I Previous directory.
2280 You can jump to the directory you were previously by using the special
2281 directory name '\-' like this:
2282 .B cd \-
2284 .I CDPATH directories.
2285 If the directory specified to the
2286 .B cd
2287 command is not in the current directory, then The Midnight Commander
2288 uses the value in the environment variable
2289 .B CDPATH
2290 to search for the directory in any of the named directories.
2292 For example you could set your
2293 .B CDPATH
2294 variable to ~/src:/usr/src, allowing you to change your directory to
2295 any of the directories inside the ~/src and /usr/src directories, from
2296 any place in the file system by using its relative name (for example
2297 cd linux could take you to /usr/src/linux).
2298 .\"NODE "  Macro Substitution"
2299 .SH "  Macro Substitution"
2300 When accessing a
2301 .\"LINK2"
2302 user menu\&,
2303 .\"Menu File Edit"
2304 or executing an
2305 .\"LINK2"
2306 extension dependent command\&,
2307 .\"Extension File Edit"
2308 or running a command from the command line input, a simple macro
2309 substitution takes place.
2311 The macros are:
2313 .I %i
2314 The indent of blank space, equal the cursor column position.  For edit
2315 menu only.
2317 .I %y
2318 The syntax type of current file. For edit menu only.
2320 .I %k
2321 The block file name.
2323 .I %e
2324 The error file name.
2326 .I %m
2327 The current menu name.
2329 .IR %f " and " %p
2330 The current file name.
2332 .I %x
2333 The extension of current file name.
2335 .I %b
2336 The current file name without extension.
2338 .I %d
2339 The current directory name.
2341 .I %F
2342 The current file in the unselected panel.
2344 .I %D
2345 The directory name of the unselected panel.
2347 .I %t
2348 The currently tagged files.
2350 .I %T
2351 The tagged files in the unselected panel.
2353 .IR %u " and " %U
2354 Similar to the %t and %T macros, but in addition the files are untagged.
2355 You can use this macro only once per menu file entry or extension file
2356 entry, because next time there will be no tagged files.
2358 .IR %s " and " %S
2359 The selected files: The tagged files if there are any. Otherwise the
2360 current file.
2362 .I %cd
2363 This is a special macro that is used to change the current directory
2364 to the directory specified in front of it.  This is used primarily as
2365 an interface to the
2366 .\"LINK2"
2367 Virtual File System\&.
2368 .\"Virtual File System"
2370 .I %view
2371 This macro is used to invoke the internal viewer.  This macro can be
2372 used alone, or with arguments.  If you pass any arguments to this
2373 macro, they should be enclosed in brackets.
2375 The arguments are:
2376 .I ascii
2377 to force the viewer into ascii mode;
2378 .I hex
2379 to force the viewer into hex mode;
2380 .I nroff
2381 to tell the viewer that it should interpret the bold and underline
2382 sequences of nroff;
2383 .I unformatted
2384 to tell the viewer to not interpret nroff commands for making the text
2385 bold or underlined.
2387 .I %%
2388 The % character
2390 .I %{some text}
2391 Prompt for the substitution. An input box is shown and the text inside
2392 the braces is used as a prompt. The macro is substituted by the text
2393 typed by the user. The user can press ESC or F10 to cancel. This macro
2394 doesn't work on the command line yet.
2396 .I %var{ENV:default}
2397 If environment variable
2398 .I ENV
2399 is unset, the
2400 .I default
2401 is substituted.  Otherwise, the value of
2402 .I ENV
2403 is substituted.
2404 .\"NODE "  The subshell support"
2405 .SH "  The subshell support"
2406 The subshell support is a compile time option, that works with the
2407 shells: bash, tcsh and zsh.
2409 When the subshell code is activated the Midnight Commander will
2410 spawn a concurrent copy of your shell (the one defined in the
2411 .B SHELL
2412 variable and if it is not defined, then the one in the /etc/passwd
2413 file) and run it in a pseudo terminal, instead of invoking a new shell
2414 each time you execute a command, the command will be passed to the
2415 subshell as if you had typed it.  This also allows you to change the
2416 environment variables, use shell functions and define aliases that are
2417 valid until you quit the Midnight Commander.
2419 If you are using
2420 .B bash
2421 you can specify startup
2422 commands for the subshell in your ~/.local/share/mc/bashrc file and
2423 special keyboard maps in the ~/.local/share/mc/inputrc file.
2424 .B tcsh
2425 users may specify startup commands in the ~/.local/share/mc/tcshrc file.
2427 When the subshell code is used, you can suspend applications at any
2428 time with the sequence C\-o and jump back to the Midnight Commander, if
2429 you interrupt an application, you will not be able to run other
2430 external commands until you quit the application you interrupted.
2432 An extra added feature of using the subshell is that the prompt
2433 displayed by the Midnight Commander is the same prompt that you are
2434 currently using in your shell.
2437 .\"LINK2"
2438 OPTIONS
2439 .\"OPTIONS"
2440 section has more information on how you can control the subshell code.
2441 .\"NODE "Chmod"
2442 .SH "Chmod"
2443 The Chmod window is used to change the attribute bits in a group of
2444 files and directories.  It can be invoked with the C\-x c key combination.
2446 The Chmod window has two parts \-
2447 .I Permissions
2449 .IR File .
2451 In the File section are displayed the name of the file or directory
2452 and its permissions in octal form, as well as its owner and group.
2454 In the Permissions section there is a set of check buttons which
2455 correspond to the file attribute bits.  As you change the attribute
2456 bits, you can see the octal value change in the File section.
2458 To move between the widgets (buttons and check buttons) use the
2459 .I arrow keys
2460 or the
2461 .I Tab
2462 key.  To change the state of the check buttons or to select a button
2464 .I Space.
2465 You can also use the hotkeys on the buttons to quickly activate them.
2466 Hotkeys are shown as highlighted letters on the buttons.
2468 To set the attribute bits, use the Enter key.
2470 When working with a group of files or directories, you just click on
2471 the bits you want to set or clear.  Once you have selected the bits
2472 you want to change, you select one of the action buttons (Set marked
2473 or Clear marked).
2475 Finally, to set the attributes exactly to those specified, you can use
2477 .B [Set all]
2478 button, which will act on all the tagged files.
2480 .B [Marked all]
2481 set only marked attributes to all selected files
2483 .B [Set marked]
2484 set marked bits in attributes of all selected files
2486 .B [Clean marked]
2487 clear marked bits in attributes of all selected files
2489 .B [Set]
2490 set the attributes of one file
2492 .B [Cancel]
2493 cancel the Chmod command
2494 .\"NODE "Chown"
2495 .SH "Chown"
2496 The Chown command is used to change the owner/group of a file. The hot
2497 key for this command is C\-x o.
2498 .\"NODE "Advanced Chown"
2499 .SH "Advanced Chown"
2500 The Advanced Chown command is the
2501 .\"LINK2"
2502 Chmod
2503 .\"Chmod"
2505 .\"LINK2"
2506 Chown
2507 .\"Chown"
2508 command combined into one window. You can change the permissions and
2509 owner/group of files at once.
2510 .\"NODE "File Operations"
2511 .SH "File Operations"
2512 When you copy, move or delete files the Midnight Commander shows the
2513 file operations dialog.  It shows the files currently being processed
2514 and uses up to three progress bars.  The file bar indicates the
2515 percentage of the current file that has been processed so far.  The
2516 count bar shows how many of the tagged files have been handled.  The
2517 bytes bar indicates the percentage of the total size of the tagged files
2518 that has been handled.  If the verbose option is off, the file and bytes
2519 bars are not shown.
2521 There are two buttons at the bottom of the dialog. Pressing the Skip
2522 button will skip the rest of the current file. Pressing the Abort
2523 button will abort the whole operation, the rest of the files are
2524 skipped.
2526 There are three other dialogs which you can run into during the file
2527 operations.
2529 The error dialog informs about error conditions and has three choices.
2530 Normally you select either the Skip button to skip the file or the Abort
2531 button to abort the operation altogether.  You can also select the Retry
2532 button if you fixed the problem from another terminal.
2534 The replace dialog is shown when you attempt to copy or move a file on
2535 the top of an existing file.  The dialog shows the dates and sizes of
2536 the both files.  Press the Yes button to overwrite the file, the No
2537 button to skip the file, the All button to overwrite all the files, the
2538 None button to never overwrite and the Update button to overwrite if the
2539 source file is newer than the target file.  You can abort the whole
2540 operation by pressing the Abort button.
2542 The recursive delete dialog is shown when you try to delete a directory
2543 which is not empty.  Press the Yes button to delete the directory
2544 recursively, the No button to skip the directory, the All button to
2545 delete all the directories and the None button to skip all the non\-empty
2546 directories.  You can abort the whole operation by pressing the Abort
2547 button.  If you selected the Yes or All button you will be asked for a
2548 confirmation.  Type "yes" only if you are really sure you want to do the
2549 recursive delete.
2551 If you have tagged files and perform an operation on them only the files
2552 on which the operation succeeded are untagged. Failed and skipped files
2553 are left tagged.
2554 .\"NODE "Mask Copy/Rename"
2555 .SH "Mask Copy/Rename"
2556 The copy/move operations let you translate the names of files in an
2557 easy way.  To do it, you have to specify the correct source mask and
2558 usually in the trailing part of the destination specify some wildcards.
2559 All the files matching the source mask are copied/renamed according to
2560 the target mask.  If there are tagged files, only the tagged files
2561 matching the source mask are renamed.
2563 There are other options which you can set:
2565 .B Follow links
2567 determines whether make the symlinks and hardlinks in the source
2568 directory (recursively in subdirectories) new links in the target
2569 directory or whether would you like to copy their content.
2571 .B Dive into subdirs
2573 determines the behavior when the source directory is about to be copied,
2574 but the target directory already exists.  The default action is to copy
2575 the contents of the source directory into the target directory.
2576 Enabling this option causes copying the source directory itself into the
2577 target directory.
2579 For example, you want to copy directory
2580 .I /foo
2581 containing file
2582 .I bar
2584 .IR /bla/foo ,
2585 which is an already existing directory.  Normally (when
2586 .B Dive into subdirs
2587 is not set), mc would copy file
2588 .I /foo/bar
2589 into the file
2590 .IR /bla/foo/bar .
2591 By enabling this option the
2592 .I /bla/foo/foo
2593 directory will be created, and
2594 .I /foo/bar
2595 will be copied into
2596 .IR /bla/foo/foo/bar .
2598 .B Preserve attributes
2600 determines whether to preserve the permissions, timestamps and (if you
2601 are root) the ownership of the original files.  If this option is not
2602 set, the current value of the umask will be respected.
2604 .B Use shell patterns on
2606 When the shell patterns option is on you can use the '*' and '?'
2607 wildcards in the source mask.  They work like they do in the shell.  In
2608 the target mask only the '*' and '\\<digit>' wildcards are allowed.  The
2609 first '*' wildcard in the target mask corresponds to the first wildcard
2610 group in the source mask, the second '*' corresponds to the second group
2611 and so on.  The '\\1' wildcard corresponds to the first wildcard group
2612 in the source mask, the '\\2' wildcard corresponds to the second group
2613 and so on all the way up to '\\9'.  The '\\0' wildcard is the whole
2614 filename of the source file.
2616 Two examples:
2618 If the source mask is "*.tar.gz", the destination is "/bla/*.tgz" and the
2619 file to be copied is "foo.tar.gz", the copy will be "foo.tgz" in "/bla".
2621 Suppose you want to swap basename and extension so that "file.c" would
2622 become "c.file" and so on.  The source mask for this is "*.*" and the
2623 destination is "\\2.\\1".
2625 .B Use shell patterns off
2627 When the shell patterns option is off the MC doesn't do automatic
2628 grouping anymore. You must use '\\(...\\)' expressions in the source
2629 mask to specify meaning for the wildcards in the target mask. This is
2630 more flexible but also requires more typing. Otherwise target masks
2631 are similar to the situation when the shell patterns option is on.
2633 Two examples:
2635 If the source mask is "^\\(.*\\)\\.tar\\.gz$", the destination is
2636 "/bla/*.tgz" and the file to be copied is "foo.tar.gz", the copy
2637 will be "/bla/foo.tgz".
2639 Let's suppose you want to swap basename and extension so that "file.c"
2640 will become "c.file" and so on. The source mask for this is
2641 "^\\(.*\\)\\.\\(.*\\)$" and the destination is "\\2.\\1".
2643 .B Case Conversions
2645 You can also change the case of the filenames.  If you use '\\u'
2646 or '\\l' in the target mask, the next character will be converted to
2647 uppercase or lowercase correspondingly.
2649 If you use '\\U' or '\\L' in the target mask, the next characters will
2650 be converted to uppercase or lowercase correspondingly up to the
2651 next '\\E' or next '\\U', '\\L' or the end of the file name.
2653 The '\\u' and '\\l' are stronger than '\\U' and '\\L'.
2655 For example, if the source mask is '*' (shell patterns on) or '^\\(.*\\)$'
2656 (shell patterns off) and the target mask is '\\L\\u*' the file names
2657 will be converted to have initial upper case and otherwise lower case.
2659 You can also use '\\' as a quote character. For example, '\\\\' is
2660 a backslash and '\\*' is an asterisk.
2662 .B Stable symlinks
2664 commands Midnight Commander, that it should change symlinks in the target,
2665 so that they'll point to the same location as it did before. With absolute
2666 symbolic links this does nothing, but if you have a relative one, it will
2667 recompute its value, adding necessary ../ and other directory parts and making
2668 the value as short as possible (most modern filesystems keep short symlinks
2669 inside inodes and thus don't waste much disk space).
2671 .\"NODE "Select/Unselect Files"
2672 .SH "Select/Unselect Files"
2673 The dialog of group of files and directories selection or uselection.
2675 .\"LINK2"
2676 input line
2677 .\"Input Line Keys"
2678 allow enter the regular expression of filenames that will be
2679 selected/unselected.
2681 When
2682 .I Files only
2683 checkbox is on, only files will be selected.  If
2684 .I Files only
2685 is off, as files as directories will be selected.
2686 When
2687 .I Shell Patterns
2688 checkbox is on, the regular expression is much like the filename globbing
2689 in the shell (* standing for zero or more characters and ?  standing
2690 for one character). If
2691 .I Shell Patterns
2692 is off, then the tagging of files is done with normal regular
2693 expressions (see ed (1)). When
2694 .I Case sensitive
2695 checkbox is on, the selection will be case sensitive characters.
2697 .I Case sensitive
2698 is off, the case will be ignored.
2699 .\"NODE "Diff Viewer"
2700 .SH "Internal Diff Viewer"
2701 The mcdiff is a visual diff tool. You can compare two files and edit them
2702 in\-place (diffs are updated dynamically). You can browse and view a working
2703 copy from popular version control systems (GIT, Subversion, etc).
2705 Following shortcuts are available in internal diff viewer of Midnight
2706 Commander.
2708 .B F1
2709 Invoke the built\-in hypertext help viewer.
2711 .B F2
2712 Save modified files.
2714 .B F4
2715 Edit file of the left panel in the internal editor.
2717 .B F14
2718 Edit file of the right panel in the internal editor.
2720 .B F5
2721 Merge the current hunk. Only the current hunk will be merged.
2723 .B F7
2724 Start search.
2726 .B F17
2727 Continue search.
2729 .B F10, Esc, q
2730 Exit from diff viewer.
2732 .B Alt\-s, s
2733 Toggle show of hunk status.
2735 .B Alt\-n, l
2736 Toggle show of line numbers.
2738 .B f
2739 Maximize left panel.
2741 .B \=
2742 Make panels equal in width.
2744 .B \>
2745 Reduce the size of the right panel.
2747 .B \<
2748 Reduce the size of the left panel.
2750 .B c
2751 Toggle show of trailing carriage return (CR) symbol as ^M.
2753 .B 2, 3, 4, 8
2754 Set tabulation size
2756 .B C\-u
2757 Swap contents of diff panels.
2759 .B C\-r
2760 Refresh the screen.
2762 .B C\-o
2763 Switch to the subshell and show the command screen.
2765 .B Enter, Space, n
2766 Find next diff hunk.
2768 .B Backspace, p
2769 Find previous diff hunk.
2771 .B g
2772 Go to line.
2774 .B Down
2775 Scroll one line forward.
2777 .B Up
2778 Scroll one line backward.
2780 .B PageUp
2781 Move one page up.
2783 .B PageDown
2784 Mves one page down.
2786 .B Home, A1
2787 Moves to the line beginning.
2789 .B End
2790 Moves to the line end.
2792 .B C\-Home
2793 Move to the file beginning.
2795 .B C\-End, C1
2796 Move to the file end.
2797 .\"NODE "Internal File Viewer"
2798 .SH "Internal File Viewer"
2799 The internal file viewer provides two display modes: ASCII and hex.
2800 To toggle between modes, use the F4 key.
2802 The viewer will try to use the best method provided by your system or
2803 the file type to display the information.
2804 Some character sequences, which appear most often in preformatted manual
2805 pages, are displayed bold and underlined, thus making a pretty display
2806 of your files.
2808 When in hex mode, the search function accepts text in quotes and
2809 constant numbers.  Text in quotes is matched exactly after removing
2810 the quotes.  Each number matches one byte.  You can mix quoted text
2811 with constants like this:
2814 "String" \-1 0xBB 012 "more text"
2817 Note that 012 is an octal number.  \-1 is converted to 0xFF.
2819 Here is a listing of the actions associated with each key that the
2820 Midnight Commander handles in the internal file viewer.
2822 .B F1
2823 Invoke the built\-in hypertext help viewer.
2825 .B F2
2826 Toggle the wrap mode.
2828 .B F4
2829 Toggle the hex mode.
2831 .B F5
2832 Goto line.  This will prompt you for a line number and will display
2833 that line.
2835 .B F6, /.
2836 Regular expression search.
2838 .B ?,
2839 Reverse regular expression search.
2841 .B F7
2842 Normal search / hex mode search.
2844 .B C\-s, F17, n.
2845 Start normal search if there was no previous search expression else
2846 find next match.
2848 .B C\-r.
2849 Start reverse search if there was no previous search expression else
2850 find next match.
2852 .B F8
2853 Toggle Raw/Parsed mode: This will show the file as found on disk or if
2854 a processing filter has been specified in the mc.ext file, then the
2855 output from the filter. Current mode is always the other than written
2856 on the button label, since on the button is the mode which you enter
2857 by that key.
2859 .B F9
2860 Toggle the format/unformat mode: when format mode is on the viewer
2861 will interpret some string sequences to show bold and underline with
2862 different colors. Also, on button label is the other mode than current.
2864 .B F10, Esc.
2865 Exit the internal file viewer.
2867 .B next\-page, space, C\-v.
2868 Scroll one page forward.
2870 .B prev\-page, Alt\-v, C\-b, Backspace.
2871 Scroll one page backward.
2873 .B down\-key
2874 Scroll one line forward.
2876 .B up\-key
2877 Scroll one line backward.
2879 .B C\-l
2880 Refresh the screen.
2882 .B C\-o
2883 Switch to the subshell and show the command screen.
2885 .B !
2886 Like C\-o, but run a new shell if the subshell is not running.
2888 .B "[n] m"
2889 Set the mark n.
2891 .B "[n] r"
2892 Jump to the mark n.
2894 .B C\-f
2895 Jump to the next file.
2897 .B C\-b
2898 Jump to the previous file.
2900 .B Alt\-r
2901 Toggle the ruler.
2903 .B Alt\-e
2904 to change charset of displayed text may use M\-e (Alt\-e).
2905 Recoding is made from selected codepage into system codepage. To
2906 cancel the recoding you may select "<No translation>" in charset
2907 selection dialog.
2909 It's possible to instruct the file viewer how to display a file, look
2910 at the
2911 .\"LINK2"
2912 Extension File Edit section
2913 .\"Extension File Edit"
2915 .\"NODE "Internal File Editor"
2916 .SH "Internal File Editor"
2917 The internal file editor is a full\-featured full screen editor.  It can
2918 edit files up to 64 megabytes.  It is possible to edit binary files.
2919 The internal file editor is invoked using
2920 .B F4
2921 if the
2922 .I use_internal_edit
2923 option is set in the initialization file.
2925 The features it presently supports are: block copy, move, delete, cut,
2926 paste; key for key undo; pull\-down menus; file insertion; macro
2927 commands; regular expression search and replace; shift\-arrow text highlighting
2928 (if supported by the terminal); insert\-overwrite toggle; word wrap;
2929 autoindent; tunable tab size; syntax highlighting for various file
2930 types; and an option to pipe text blocks through shell commands like
2931 indent and ispell.
2933 Sections:
2935 .\"LINK2"
2936 Options of editor in ini\-file
2937 .\"Internal File Editor / options"
2939 The editor is very easy to use and requires no tutoring. To see what
2940 keys do what, just consult the appropriate pull\-down menu. Other keys
2941 are: Shift movement keys do text highlighting.
2942 .B Ctrl\-Ins
2943 copies to the file
2944 .B mcedit.clip
2946 .B Shift\-Ins
2947 pastes from mcedit.clip.
2948 .B Shift\-Del
2949 cuts to
2950 .BR mcedit.clip ,
2952 .B Ctrl\-Del
2953 deletes highlighted text. Mouse highlighting also works, and you
2954 can override the mouse as usual by holding down the shift key
2955 while dragging the mouse to let normal terminal mouse highlighting
2956 work.
2958 To define a macro, press
2959 .B Ctrl\-R
2960 and then type out the key
2961 strokes you want to be executed. Press
2962 .B Ctrl\-R
2963 again when finished. You can then assign the macro to any key you
2964 like by pressing that key. The macro is executed when you press
2965 .B Ctrl\-A
2966 and then the assigned key. The macro is also executed if
2967 you press Meta, Ctrl, or Esc and the assigned key, provided that the
2968 key is not used for any other function. Once defined, the macro
2969 commands go into the file
2970 .B ~/.local/share/mc/mcedit/mcedit.macros
2971 You can delete a macro by deleting the
2972 appropriate line in this file.
2974 To change charset of displayed text may use M\-e (Alt\-e).
2975 Recoding is made from selected codepage into system codepage. To
2976 cancel the recoding you may select "<No translation>" in charset
2977 selection dialog.
2979 .B F19
2980 will format the currently highlighted block (plain text or
2981 .B C
2983 .B C++
2984 code or another). This is controlled by the
2985 file
2986 .B @prefix@/share/mc/edit.indent.rc
2987 which is copied to
2988 .B ~/.local/share/mc/mcedit/edit.indent.rc
2989 in your home directory the first time you use it.
2991 The editor also displays non\-us characters (160+). When editing
2992 binary files, you should set
2993 .B display bits
2994 to 7 bits in the options menu to keep the spacing clean.
2996 .\"NODE "Internal File Editor / options"
2997 .SH "Options of editor in ini\-file"
2999 Some editor options of ini\-file are described in this section.
3000 Options are placed in [Midnight\-Commander] section
3002 .I editor_wordcompletion_collect_entire_file
3003 Search autocomplete candidates in entire of file or just from
3004 begin of file to cursor position (0)
3006 .\"NODE "Screen selector"
3007 .SH "Screen selector"
3008 Midnight Commander supports running many internal modules (such as
3009 editor, viewer and diff viewer) simultaneously and switching between
3010 them without closing open files. Using several file managers at a time,
3011 however, is not currently supported.
3013 Let's call each of these modules a screen. There are three ways to
3014 switch between screens, using one of these global shortcuts:
3016 .B Alt\-}
3017 switch to the next screen;
3019 .B Alt\-{
3020 switch to the previous screen;
3022 .B Alt\-`
3023 open a dialog window with the list of currently open screens (or use the
3024 "Screen list" menu item).
3025 .\"NODE "Completion"
3026 .SH "Completion"
3027 Let the Midnight Commander type for you.
3029 Attempt to perform completion on the text before current position.  MC
3030 attempts completion treating the text as variable (if the text begins
3031 with
3032 .BR $ ),
3033 username (if the text begins with
3034 .BR ~ ),
3035 hostname (if the text begins with
3036 .BR @ )
3037 or command (if you are on the command line in the position where you
3038 might type a command, possible completions then include shell reserved
3039 words and shell built\-in commands as well) in turn.  If none of these
3040 matches, filename completion is attempted.
3042 Filename, username, variable and hostname completion works on all input
3043 lines, command completion is command line specific.  If the completion
3044 is ambiguous (there are more different possibilities), MC beeps and the
3045 following action depends on the setting of the
3046 .I Complete: show all
3047 option in the
3048 .\"LINK2"
3049 Configuration
3050 .\"Configuration"
3051 dialog.  If it is enabled, a list of all possibilities pops up next to
3052 the current position and you can select with the arrow keys and
3053 .B Enter
3054 the correct entry.  You can also type the first letters in which the
3055 possibilities differ to move to a subset of all possibilities and
3056 complete as much as possible.  If you press
3057 .B Alt\-Tab
3058 again, only the subset will be shown in the listbox, otherwise the first
3059 item which matches all the previous characters will be highlighted.  As
3060 soon as there is no ambiguity, dialog disappears, but you can hide it by
3061 canceling keys
3062 .BR Esc ,
3063 .B F10
3064 and left and right arrow keys. If
3065 .\"LINK2"
3066 Complete: show all
3067 .\"Configuration"
3068 is disabled, the dialog pops up only if you press
3069 .B Alt\-Tab
3070 for the second time, for the first time MC just beeps.
3071 .\"NODE "Virtual File System"
3072 .SH "Virtual File System"
3073 The Midnight Commander is provided with a code layer to access the file
3074 system; this code layer is known as the virtual file system switch.  The
3075 virtual file system switch allows the Midnight Commander to manipulate
3076 files not located on the Unix file system.
3078 Currently the Midnight Commander is packaged with some Virtual File
3079 Systems (VFS): the
3080 .I local
3081 file system, used for accessing the regular Unix file system; the
3082 .IR ftpfs ,
3083 used to manipulate files on remote systems with the FTP protocol; the
3084 .IR tarfs ,
3085 used to manipulate tar and compressed tar files; the
3086 .IR undelfs ,
3087 used to recover deleted files on ext2 file systems (the default file
3088 system for Linux systems),
3089 .I fish
3090 (for manipulating files over shell connections such as rsh and ssh).
3091 If the code was compiled with
3092 .I smbfs
3093 support, you can manipulate files on remote systems with the SMB (CIFS)
3094 protocol.
3096 A generic
3097 .I extfs
3098 (EXTernal virtual File System) is provided in order to easily expand
3099 VFS capabilities using scripts and external software.
3101 The VFS switch code will interpret all of the path names used and will
3102 forward them to the correct file system, the formats used for each one
3103 of the file systems is described later in their own section.
3104 .\"NODE "  FTP File System"
3105 .SH "  FTP File System"
3106 The FTP File System (ftpfs) allows you to manipulate files on remote
3107 machines.  To actually use it, you can use the
3108 .I FTP link
3109 item in the menu or directly change your current directory using the
3110 .I cd
3111 command to a path name that looks like this:
3113 .I /#ftp:[!][user[:pass]@]machine[:port][remote\-dir]
3116 .IR user ,
3117 .I port
3119 .I remote\-dir
3120 elements are optional.  If you specify the
3121 .I user
3122 element, the Midnight Commander will login to the remote machine as that
3123 user, otherwise it will use anonymous login or the login name from the
3124 .I ~/.netrc
3125 file.  The optional
3126 .I pass
3127 element is the password used for the connection.  Using the password in
3128 the VFS directory name is not recommended, because it can appear on the
3129 screen in clear text and can be saved to the directory history.
3131 To enable using FTP proxy, prepend
3132 .B !
3133 (an exclamation sign) to the hostname.
3135 Examples:
3138     /#ftp:ftp.nuclecu.unam.mx/linux/local
3139     /#ftp:tsx\-11.mit.edu/pub/linux/packages
3140     /#ftp:!behind.firewall.edu/pub
3141     /#ftp:guest@remote\-host.com:40/pub
3142     /#ftp:miguel:xxx@server/pub
3145 Please check the
3146 .\"LINK2"
3147 Virtual File System
3148 .\"Virtual FS"
3149 dialog box for ftpfs options.
3150 .\"NODE "  Tar File System"
3151 .SH "  Tar File System"
3152 The tar file system provides you with read\-only access to your tar
3153 files and compressed tar files by using the chdir command.  To change
3154 your directory to a tar file, you change your current directory to the
3155 tar file by using the following syntax:
3157 .I /filename.tar#utar/[dir\-inside\-tar]
3159 The mc.ext file already provides a shortcut for tar files, this means
3160 that usually you just point to a tar file and press return to enter
3161 into the tar file, see the
3162 .\"LINK2"
3163 Extension File Edit
3164 .\"Extension File Edit"
3165 section for details on how this is done.
3167 Examples:
3170     mc\-3.0.tar.gz#utar/mc\-3.0/vfs
3171     /ftp/GCC/gcc\-2.7.0.tar#utar
3174 The latter specifies the full path of the tar archive.
3175 .\"NODE "  FIle transfer over SHell filesystem"
3176 .SH "  FIle transfer over SHell filesystem"
3177 The fish file system is a network based file system that allows you to
3178 manipulate the files in a remote machine as if they were local. To use
3179 this, the other side has to either run fish server, or has to have
3180 bash\-compatible shell.
3182 To connect to a remote machine, you just need to chdir
3183 into a special directory which name is in the following
3184 format:
3186 .I /#sh:[user@]machine[:options]/[remote\-dir]
3189 .I user,
3190 .I options
3192 .I remote\-dir
3193 elements are optional.  If you specify the
3194 .I user
3195 element, the Midnight Commander will try to login on the remote
3196 machine as that user, otherwise it will use your login name.
3198 The available
3199 .I options
3200 are:
3202   'C' \- use compression;
3203   'r' \- use rsh instead of ssh;
3204   port \- specify the port used by remote server.
3206 If the
3207 .I remote\-dir
3208 element is present, your current directory on the remote machine will be
3209 set to this one.
3211 Examples:
3214     /#sh:onlyrsh.mx:r/linux/local
3215     /#sh:joe@want.compression.edu:C/private
3216     /#sh:joe@noncompressed.ssh.edu/private
3217     /#sh:joe@somehost.ssh.edu:2222/private
3219 .\"NODE "  Undelete File System"
3220 .SH "  Undelete File System"
3221 On Linux systems, if you asked configure to use the ext2fs undelete
3222 facilities, you will have the undelete file system available.
3223 Recovery of deleted files is only available on ext2 file systems.  The
3224 undelete file system is just an interface to the ext2fs library to
3225 retrieve all of the deleted files names on an ext2fs and provides and
3226 to extract the selected files into a regular partition.
3228 To use this file system, you have to chdir into the special file name
3229 formed by the "/#undel" prefix and the file name where the actual
3230 file system resides.
3232 For example, to recover deleted files on the second partition of the
3233 first SCSI disk on Linux, you would use the following path name:
3236     /#undel:sda2
3239 It may take a while for the undelfs to load the required information
3240 before you start browsing files there.
3241 .\"NODE "  SMB File System"
3242 .SH "  SMB File System"
3243 The smbfs allows you to manipulate files on remote machines with SMB
3244 (or CIFS) protocol.  These include Windows for Workgroups,
3245 Windows 9x/ME/XP, Windows NT, Windows 2000 and Samba.
3246 To actually use it, you may try to use the panel command "SMB link..."
3247 (accessible from the menubar) or you may directly change your current
3248 directory to it using the cd command to a path name that looks like this:
3250 .I /#smb:[user@]machine[/service][/remote\-dir]
3253 .IR user ,
3254 .I service
3256 .I remote\-dir
3257 elements are optional.
3259 .IR user ,
3260 .I domain
3262 .I password
3263 can be specified in an input dialog.
3265 Examples:
3268     /#smb:machine/Share
3269     /#smb:other_machine
3270     /#smb:guest@machine/Public/Irlex
3272 .\"NODE "  EXTernal File System"
3273 .SH "  EXTernal File System"
3274 .B extfs
3275 allows to integrate numerous features and file types into GNU Midnight
3276 Commander in an easy way, by writing scripts.
3278 Extfs filesystems can be divided into two categories:
3280 1. Stand\-alone filesystems, which are not associated with any existing
3281 file.  They represent certain system\-wide data as a directory tree.
3282 You can invoke them by typing
3283 .RI ' "cd #fsname" '
3284 where fsname is an extfs short name (see below).  Examples of such
3285 filesystems include audio (list audio tracks on the CD) or apt (list of
3286 all Debian packages in the system).
3288 For example, to list CD\-Audio tracks on your CD\-ROM drive, type
3291   cd #audio
3294 2. 'Archive' filesystems (like rpm, patchfs and more), which represent
3295 contents of a file as a directory tree.  It can consist of 'real' files
3296 compressed in an archive (urar, rpm) or virtual files, like messages
3297 in a mailbox (mailfs) or parts of a patch (patchfs).  To access such
3298 filesystems
3299 .RI ' #fsname '
3300 should be appended to the archive name.  Note that the archive itself
3301 can be on another vfs.
3303 For example, to list contents of a zip archive documents.zip type
3306   cd documents.zip#uzip
3309 In many aspects, you could treat extfs like any other directory.  For
3310 instance, you can add it to the hotlist or change to it from directory
3311 history.  An important limitation is that you cannot invoke shell
3312 commands inside extfs, just like any other non\-local VFS.
3314 Common extfs scripts included with Midnight Commander are:
3316 .B a
3317 access 'A:' DOS/Windows diskette
3318 .RI ( "cd #a" ).
3320 .B apt
3321 front end to Debian's APT package management system
3322 .RI ( "cd #apt" ).
3324 .B audio
3325 audio CD ripping and playing
3326 .RI ( "cd #audio"
3328 .IR "cd device#audio" ).
3330 .B bpp
3331 package of Bad Penguin GNU/Linux distribution
3332 .RI ( "cd file.bpp#bpp" ).
3334 .B deb
3335 package of Debian GNU/Linux distribution
3336 .RI ( "cd file.deb#deb" ).
3338 .B dpkg
3339 Debian GNU/Linux installed packages
3340 .RI ( "cd #deb" ).
3342 .B hp48
3343 view and copy files to/from a HP48 calculator
3344 .RI ( "cd #hp48" ).
3346 .B lslR
3347 browsing of lslR listings as found on many FTPs
3348 .RI ( "cd filename#lslR" ).
3350 .B mailfs
3351 mbox\-style mailbox files support
3352 .RI ( "cd mailbox#mailfs" ).
3354 .B patchfs
3355 extfs to handle unified and context diffs
3356 .RI ( "cd filename#patchfs" ).
3358 .B rpm
3359 RPM package
3360 .RI ( "cd filename#rpm" ).
3362 .B rpms
3363 RPM database management
3364 .RI ( "cd #rpms" ).
3366 .B ulha, urar, uzip, uzoo, uar, uha
3367 archivers
3368 .RI ( "cd archive#xxxx"
3369 where xxxx is one of:
3370 .IR ulha ,
3371 .IR urar ,
3372 .IR uzip ,
3373 .IR uzoo ,
3374 .IR uar ,
3375 .IR uha ).
3377 You could bind file type/extension to specified extfs as described in the
3378 .\"LINK2"
3379 Extension File Edit
3380 .\"Extension File Edit"
3381 section.  Here is an example entry for Debian packages:
3384   regex/\.deb$
3385           Open=%cd %p#deb
3387 .\"NODE "Colors"
3388 .SH "Colors"
3389 The Midnight Commander will try to detect if your terminal supports
3390 color using the terminal database and your terminal name.  Sometimes
3391 it gets confused, so you may force color mode or disable color mode
3392 using the \-c and \-b flag respectively.
3394 If the program is compiled with the Slang screen manager instead of
3395 ncurses, it will also check the variable
3396 .B COLORTERM,
3397 if it is set, it has the same effect as the \-c flag.
3399 You may specify terminals that always force color mode
3400 by adding the
3401 .I color_terminals
3402 variable to the Colors section of the initialization file.  This will
3403 prevent the Midnight Commander from trying to detect if your terminal
3404 supports color.  Example:
3407 [Colors]
3408 color_terminals=linux,xterm
3409 color_terminals=terminal\-name1,terminal\-name2...
3412 The program can be compiled with both ncurses and slang, ncurses does
3413 not provide a way to force color mode: ncurses uses just the
3414 information in the terminal database.
3416 The Midnight Commander provides a way to change the default colors.
3417 Currently the colors are configured using the environment variable
3418 .B MC_COLOR_TABLE
3419 or the Colors section in the initialization file.
3421 In the Colors section, the default color map is loaded from the
3422 .I base_color
3423 variable.  You can specify an alternate color map for a terminal by
3424 using the terminal name as the key in this section.  Example:
3427 [Colors]
3428 base_color=
3429 xterm=menu=magenta:marked=,magenta:markselect=,red
3432 The format for the color definition is:
3435   <keyword>=<fgcolor>,<bgcolor>,<attributes>:<keyword>=...
3438 The colors are optional, and the keywords are: normal, selected, disabled, marked,
3439 markselect, errors, input, inputmark, inputunchanged, commandlinemark,
3440 reverse, gauge, header, inputhistory, commandhistory. Button bar colors are:
3441 bbarhotkey, bbarbutton. Status bar color: statusbar. Menu colors are: menunormal,
3442 menusel, menuhot, menuhotsel, menuinactive. Dialog colors are: dnormal, dfocus,
3443 dhotnormal, dhotfocus, dtitle. Error dialog colors are: errdfocus, errdhotnormal,
3444 errdhotfocus, errdtitle.  Help colors are: helpnormal, helpitalic, helpbold,
3445 helplink, helpslink, helptitle.  Viewer color are: viewbold, viewunderline, viewselected.
3446 Editor colors are: editnormal, editbold, editmarked, editwhitespace, editlinestate.
3447 Popup menu colors are: pmenunormal, pmenusel, pmenutitle.
3449 .I header
3450 determines the color of panel header, the line that contains column titles
3451 and sort mode indicator.
3453 .I input
3454 determines the color of input lines used in query dialogs.
3456 .I gauge
3457 determines the color of the filled part of the progress bar (gauge),
3458 which is used to show the user the progress of file operations, such as
3459 copying.
3461 .I disabled
3462 determines the color of the widget that cannot be selected.
3464 The dialog boxes use the following colors:
3465 .I dnormal
3466 is used for the normal text,
3467 .I dfocus
3468 is the color used for the currently selected component,
3469 .I dhotnormal
3470 is the color used to differentiate the hotkey color in normal
3471 components, whereas the
3472 .I dhotfocus
3473 color is used for the highlighted color in the currently selected
3474 component.
3476 Menus use the same scheme but uses the menunormal, menusel, menuhot, menuhotsel
3477 and menuinactive tags instead.
3479 Help uses the following colors:
3480 .I helpnormal
3481 is used for normal text,
3482 .I helpitalic
3483 is used for text which is emphasized in italic in the manual page,
3484 .I helpbold
3485 is used for text which is emphasized in bold in the manual page,
3486 .I helplink
3487 is used for not selected hyperlinks and
3488 .I helpslink
3489 is used for selected hyperlink.
3491 Popup menu uses following colors:
3492 .I pmenunormal
3493 is used for non-selected menu items and as a main color of popup menu window,
3494 .I pmenusel
3495 is used for selected menu item,
3496 .I pmenutitle
3497 is used for popup menu title.
3499 The possible colors are: black, gray, red, brightred, green,
3500 brightgreen, brown, yellow, blue, brightblue, magenta, brightmagenta,
3501 cyan, brightcyan, lightgray and white. And there is a special keyword
3502 for transparent background. It is 'default'. The 'default' can only be
3503 used for background color. Another special keyword "base" means mc's main
3504 colors.  When 256 colors are available, they can be specified either as
3505 color16 to color255, or as rgb000 to rgb555 and gray0 to gray23. Example:
3508 [Colors]
3509 base_color=normal=white,default:marked=magenta,default
3512 Attributes can be any of bold, underline, reverse and blink, appended by a
3513 plus sign if more than one are desired.  The special word "none" means no
3514 attributes, without attempting to fall back to base_color.  Example:
3517 menuhotsel=yellow;black;bold+underline
3520 .\"NODE "Skins"
3521 .SH "Skins"
3522 You can change the appearance of Midnight Commander.
3523 To do this, you must specify a file that contain descriptions of colors
3524 and lines to draw boxes. Redefining of the colors is entirely compatible
3525 with the assignment of colors, as described in Section
3526 .\"LINK2"
3527 Colors\&.
3528 .\"Colors"
3530 If your skin contains any of 256\-color definitions, you should define the
3531 '256colors' key set to TRUE value in [skin] section.
3534 A skin\-file is searched on the following algorithm (to the first one found):
3537 1) command line option
3538 .B \-S \<skin\>
3540 .B \-\-skin=\<skin\>
3542 2) Environment variable
3543 .B MC_SKIN
3545 3) In config file parameter
3546 .B skin
3547 in section
3548 .B [Midnight\-Commander]
3550 4) File
3551 .B @sysconfdir@/mc/skins/default.ini
3553 5) File
3554 .B @prefix@/share/mc/skins/default.ini
3557 Command line option, environment variable and parameter in config file may
3558 contain the absolute path to the skin\-file (with the extension \.ini
3559 or without it). Search of skin\-file will occur in (to the first one found):
3562 .B ~/.local/share/mc/skins/
3565 .B @sysconfdir@/mc/skins/
3568 .B @prefix@/share/mc/skins/
3572 For getting extended info, refer to:
3574 .\"LINK2"
3575 Description of section and parameters
3576 .\"Skins sections"
3578 .\"LINK2"
3579 Color pair definitions
3580 .\"Skins colors"
3582 .\"LINK2"
3583 Draw lines
3584 .\"Skins lines"
3586 .\"LINK2"
3587 Compatibility
3588 .\"Skins oldcolors"
3591 .\"NODE "  Skins sections"
3592 .SH "  Description of section and parameters"
3594 Section
3595 .B [skin]
3596 contain metainfo for skin\-file. Parameter
3597 .I description
3598 contain short text about skin.
3601 Section
3602 .B [filehighlight]
3603 contain descriptions of color pairs for filenames highlighting.
3604 Name of parameters must be equal to names of sections into
3605 filehighlight.ini file.
3607 .\"LINK2"
3608 Filenames Highlight
3609 .\"Filenames Highlight"
3610 for getting more info.
3613 Section
3614 .B [core]
3615 describes the elements that are used everywhere.
3617 .I _default_
3618 Default color pair. Used in all other sections if they not contain
3619 color definitions
3621 .I selected
3622 cursor
3624 .I marked
3625 selected data
3627 .I markselect
3628 cursor on selected data
3630 .I gauge
3631 color of the filled part of the progress bar
3633 .I input
3634 color of input lines used in query dialogs
3636 .I inputmark
3637 color of input selected text
3639 .I inputunhanged
3640 color of input text before first modification or cursor movement
3642 .I commandlinemark
3643 color of selected text in command line
3645 .I reverse
3646 reverse color
3648 Section
3649 .B [dialog]
3650 describes the elements that are placed on dialog windows (except error dialogs).
3652 .I _default_
3653 Default color for this section. Used [core]._default_ if not specified
3655 .I dfocus
3656 Color of active element (in focus)
3658 .I dhotnormal
3659 Color of hotkeys
3661 .I dhotfocus
3662 Color of hotkeys in focused element
3665 Section
3666 .B [error]
3667 describes the elements that are placed on error dialog windows
3669 .I _default_
3670 Default color for this section. Used [core]._default_ if not specified
3672 .I errdhotnormal
3673 Color of hotkeys
3675 .I errdhotfocus
3676 Color of hotkeys in focused element
3679 Section
3680 .B [menu]
3681 describes the elements that are placed in menu. This section describes
3682 system menu (called by F9) and user\-defined menus (called by F2 in panels
3683 and by F11 in editor).
3685 .I _default_
3686 Default color for this section. Used [core]._default_ if not specified
3688 .I entry
3689 Color of menu items
3691 .I menuhot
3692 Color of menu hotkeys
3694 .I menusel
3695 Color of active menu item (in focus)
3697 .I menuhotsel
3698 Color of menu hotkeys in focused menu item
3700 .I menuinactive
3701 Color of inactive menu
3704 Section
3705 .B [help]
3706 describes the elements that are placed on help window.
3708 .I _default_
3709 Default color for this section. Used [core]._default_ if not specified
3711 .I helpitalic
3712 Color pair for element with
3713 .B italic
3714 attribute
3716 .I helpbold
3717 Color pair for element with
3718 .B bold
3719 attribute
3721 .I helplink
3722 Color of links
3724 .I helpslink
3725 Color of active link (on focus)
3728 Section
3729 .B [editor]
3730 describes the colors of elements placed in editor.
3732 .I _default_
3733 Default color for this section. Used [core]._default_ if not specified
3735 .I editbold
3736 Color pair for element with
3737 .B bold
3738 attribute
3740 .I editmarked
3741 Color of selected text
3743 .I editwhitespace
3744 Color of tabs and trailing spaces highlighting
3746 .I editlinestate
3747 Color for line state area
3750 Section
3751 .B [viewer]
3752 describes the colors of elements placed in viewer.
3754 .I viewunderline
3755 Color pair for element with
3756 .B underline
3757 attribute
3759 .\"NODE "  Skins colors"
3760 .SH "  Color pair definitions"
3761 Any parameter in skin\-file contain definition of color pair.
3763 Color pairs described as two colors and the optional attributes
3764 separated by ';'. First field sets the foreground color, second
3765 field sets background color, third field sets the attributes.
3766 Any of the fields may be omitted, in this case value will be
3767 taken from default color pair (global color pair or from default
3768 color pair of this section).
3770 Example:
3773 [core]
3774     # green on black
3775     _default_=green;black
3776     # green (default) on blue
3777     selected=;blue
3778     # yellow on black (default)
3779     # underlined yellow on black (default)
3780     marked=yellow;;underline
3784 Possible colors (names) and attributes are described in
3785 .\"LINK2"
3786 Colors\&.
3787 .\"Colors"
3788 section.
3790 .\"NODE "  Skins lines"
3791 .SH "  Draw lines"
3792 Lines sets in section
3793 .B [Lines]
3794 into skin\-file. By default single lines are used, but you may redefine
3795 to usage of any utf\-8 symbols (like to lines, for example).
3797 .I WARNING!!!
3798 When you build Midnight Commander with the Ncurses screen library
3799 usage of drawing lines is limited!
3800 Possible only drawing a single lines.
3801 For all questions and comments please contact the developers of Ncurses.
3804 Descriptions of parameters
3805 .BR [Lines] :
3807 .I lefttop
3808 left\-top line fragment.
3810 .I righttop
3811 right\-top line fragment.
3813 .I centertop
3814 down branch of horizontal line
3816 .I centerbottom
3817 up branch of horizontal line
3819 .I leftbottom
3820 left\-bottom line fragment
3822 .I rightbottom
3823 right\-bottom line fragment
3825 .I leftmiddle
3826 right branch of vertical line
3828 .I rightmiddle
3829 left branch of vertical line
3831 .I centermiddle
3832 cross of lines
3834 .I horiz
3835 horizontal line
3837 .I vert
3838 vertical line
3840 .I thinhoriz
3841 thin horizontal line
3843 .I thinvert
3844 thin vertical line
3847 .\"NODE "  Skins oldcolors"
3848 .SH "  Compatibility"
3850 Appointment of color  by skin\-files fully compatible with
3851 the appointment of the colors described in
3852 .\"LINK2"
3853 Colors\&.
3854 .\"Colors"
3855 section.
3857 In this case, reassignment of colors has priority over the skin file and is
3858 complementary.
3860 .\"NODE "Filenames Highlight"
3861 .SH "Filenames Highlight"
3862 Section [filehighlight] in current skin\-file contains key names as
3863 highlight groups and values as color pairs. Color pairs is documented
3865 .\"LINK2"
3866 Skins
3867 .\"Skins"
3868 section.
3870 Rules of filenames highlight are placed in @prefix@/share/mc/filehighlight.ini file
3871 (~/.config/mc/filehighlight.ini).
3872 Name of section in this file must be equal to parameters names in
3873 [filehighlight] section (in current skin\-file).
3875 Keys in these groups are:
3877 .I type
3878 file type. If present, all other options are ignored.
3880 .I regexp
3881 regular expression. If present, 'extensions' option is ignored.
3883 .I extensions
3884 list of extensions of files. Separated by ';' sign.
3886 .I extensions_case
3887 (make sense only with 'extensions' parameter) make 'extensions'
3888 rule case sentitive (true) or not (false).
3890 `type' key may have values:
3892 \- FILE (all files)
3893   \- FILE_EXE
3894 \- DIR (all directories)
3895   \- LINK_DIR
3896 \- LINK (all links except stale link)
3897   \- HARDLINK
3898   \- SYMLINK
3899 \- STALE_LINK
3900 \- DEVICE (all device files)
3901   \- DEVICE_BLOCK
3902   \- DEVICE_CHAR
3903 \- SPECIAL (all special files)
3904   \- SPECIAL_SOCKET
3905   \- SPECIAL_FIFO
3906   \- SPECIAL_DOOR
3910 .\"NODE "Special Settings"
3911 .SH "Special Settings"
3912 Most of the Midnight Commander settings can be changed from the
3913 menus. However, there are a small number of settings which can only be
3914 changed by editing the setup file.
3916 These variables may be set in your ~/.config/mc/ini file:
3918 .I clear_before_exec
3919 By default the Midnight Commander clears the screen before executing a
3920 command.  If you would prefer to see the output of the command at the
3921 bottom of the screen, edit your ~/.config/mc/ini file and change the value of
3922 the field clear_before_exec to 0.
3924 .I confirm_view_dir
3925 If you press F3 on a directory, normally MC enters that directory.  If
3926 this flag is set to 1, then MC will ask for confirmation before changing
3927 the directory if you have files tagged.
3929 .I ftpfs_retry_seconds
3930 This value is the number of seconds the Midnight Commander will wait
3931 before attempting to reconnect to an FTP server that has denied the
3932 login.  If the value is zero, the login will no be retried.
3934 .I max_dirt_limit
3935 Specifies how many screen updates can be skipped at most in the internal
3936 file viewer.  Normally this value is not significant, because the code
3937 automatically adjusts the number of updates to skip according to the
3938 rate of incoming keystrokes.  However, on very slow machines or
3939 terminals with a fast keyboard auto repeat, a big value can make screen
3940 updates too jumpy.
3942 It seems that setting max_dirt_limit to 10 causes the best behavior,
3943 and that is the default value.
3945 .I mouse_move_pages_viewer
3946 Controls if scrolling with the mouse is done by pages or line by line
3947 on the internal file viewer.
3949 .I only_leading_plus_minus
3950 Allow special treatment for '+', '\-', '*' in the command line (select,
3951 unselect, reverse selection) only if the command line is empty.  You
3952 don't need to quote those characters in the middle of the command line.
3953 On the other hand, you cannot use them to change selection when the
3954 command line is not empty.
3956 .I show_output_starts_shell
3957 This variable only works if you are not using the subshell support.
3958 When you use the C\-o keystroke to go back to the user screen, if this
3959 one is set, you will get a fresh shell.  Otherwise, pressing any key
3960 will bring you back to the Midnight Commander.
3962 .I timeformat_recent
3963 Change the time format used to display dates less than 6 months from
3964 now.
3965 See strftime or date man page for the format specification. If this
3966 option is absent, default timeformat is used.
3968 .I timeformat_old
3969 Change the time format used to display  dates older than 6 months from
3970 now or for dates in the future.
3971 See strftime or date man page for the format specification. If this
3972 option is absent, default timeformat is used.
3974 .I torben_fj_mode
3975 If this flag is set, then the home and end keys will work slightly
3976 different on the panels, instead of moving the selection to the first
3977 and last files in the panels, they will act as follows:
3979 The home key will: Go up to the middle line, if below it; else go to the
3980 top line unless it is already on the top line, in this case it will go
3981 to the first file in the panel.
3983 The end key has a similar behavior: Go down to the middle line, if over
3984 it; else go to the bottom line unless you already are at the bottom
3985 line, in such case it will move the selection to the last file name in
3986 the panel.
3988 .I use_file_to_guess_type
3989 If this variable is on (the default) it will spawn the file command to
3990 match the file types listed on the
3991 .\"LINK2"
3992 mc.ext file\&.
3993 .\"Extension File Edit"
3995 .I xtree_mode
3996 If this variable is on (default is off) when you browse the file system
3997 on a Tree panel, it will automatically reload the other panel with the
3998 contents of the selected directory.
4000 .I fish_directory_timeout
4001 This variable holds the lifetime of a directory cache entry in seconds. The
4002 default value is 900 seconds.
4004 .I clipboard_store
4005 This variable contains path (with options) to the external clipboard
4006 utility like 'xclip' to read text into X selection from file.
4007 For example:
4010 clipboard_store=xclip \-i
4013 .I clipboard_paste
4014 This variable contains path (with options) to the external clipboard
4015 utility like 'xclip' to print the selection to standard out.
4016 For example:
4019 clipboard_pastee=xclip \-o
4022 .I autodetect_codeset
4023 This option allows use the `enca' command to autodetect codeset of text files
4024 in internal viewer and editor. List of valid values can be obtain by the
4025 `enca \-\-list languages | cut \-d : \-f1' command. Option must be located
4026 in the [Misc] section.
4028 For example:
4031 autodetect_codeset=russian
4033 .\"NODE "Terminal databases"
4034 .SH "Terminal databases"
4035 The Midnight Commander provides a way to fix your system terminal
4036 database without requiring root privileges.  The Midnight Commander
4037 searches in the system initialization file (the mc.lib file located in
4038 the Midnight Commander library directory) and in the 
4039 ~/.config/mc/ini file for the section 
4040 "terminal:your\-terminal\-name" and then for the section
4041 "terminal:general", each line of the section contains a key symbol that
4042 you want to define, followed by an equal sign and the definition for the
4043 key.  You can use the special \\e form to represent the escape character
4044 and the ^x to represent the control\-x character.
4046 The possible key symbols are:
4049 f0 to f20     Function keys f0\-f20
4050 bs            backspace
4051 home          home key
4052 end           end key
4053 up            up arrow key
4054 down          down arrow key
4055 left          left arrow key
4056 right         right arrow key
4057 pgdn          page down key
4058 pgup          page up key
4059 insert        the insert character
4060 delete        the delete character
4061 complete      to do completion
4064 For example, to define the key insert to be the Escape + [ + O + p, you
4065 set this in the ini file:
4068 insert=\\e[Op
4072 Also now you can use
4073 .I extended learn keys.
4074 For example:
4077     ctrl\-alt\-right=\\e[[1;6C
4078     ctrl\-alt\-left=\\e[[1;6D
4082 This means that ctrl+alt+left sends a \\e[[1;6D escape sequence
4083 and therefore Midnight Commander interprets "\\e[[1;6D" as Ctrl\-Alt\-Left.
4087 .I complete
4088 key symbol represents the escape sequences used to invoke the completion
4089 process, this is invoked with Alt\-tab, but you can define other keys to do
4090 the same work (on those keyboard with tons of nice and unused keys
4091 everywhere).
4092 .SH ""
4093 .\"NODE "FILES"
4094 .SH "FILES"
4095 Full paths below may vary between installations.  They are also affected
4096 by the MC_DATADIR environment variable.  If it's set, its value is used
4097 instead of @prefix@/share/mc in the paths below.
4099 .I @prefix@/share/mc/mc.hlp
4101 The help file for the program.
4103 .I @prefix@/share/mc/mc.ext
4105 The default system\-wide extensions file.
4107 .I ~/.local/share/mc/mc.ext
4109 User's own extension, view configuration and edit configuration
4110 file.  They override the contents of the system wide files if present.
4112 .I @prefix@/share/mc/mc.ini
4114 The default system\-wide setup for the Midnight Commander, used only if
4115 the user doesn't have his own ~/.config/mc/ini file.
4117 .I @prefix@/share/mc/mc.lib
4119 Global settings for the Midnight Commander.  Settings in this file
4120 affect all users, whether they have ~/.config/mc/ini or not.  Currently, only
4121 .\"LINK2"
4122 terminal settings
4123 .\"Terminal databases"
4124 are loaded from mc.lib.
4126 .I ~/.config/mc/ini
4128 User's own setup. If this file is present then the setup is loaded
4129 from here instead of the system\-wide startup file.
4131 .I @prefix@/share/mc/mc.hint
4133 This file contains the hints displayed by the program.
4135 .I @prefix@/share/mc/mc.menu
4137 This file contains the default system\-wide applications menu.
4139 .I ~/.local/share/mc/menu
4141 User's own application menu. If this file is present it is used instead
4142 of the system\-wide applications menu.
4144 .I ~/.cache/mc/Tree
4146 The directory list for the directory tree and tree view features.
4148 .I ~/.local/share/mc.menu
4150 Local user\-defined menu. If this file is present, it is used instead of
4151 the home or system\-wide applications menu.
4152 .\"SKIP_SECTION"
4153 .SH "LICENSE"
4154 This program is distributed under the terms of the GNU General Public
4155 License as published by the Free Software Foundation. See the built\-in
4156 help for details on the License and the lack of warranty.
4157 .\"NODE "AVAILABILITY"
4158 .SH "AVAILABILITY"
4159 The latest version of this program can be found at
4160 ftp://ftp.gnu.org/gnu/mc/.
4161 .\"NODE "SEE ALSO"
4162 .SH "SEE ALSO"
4163 ed(1), gpm(1), terminfo(1), view(1), sh(1), bash(1),
4164 tcsh(1), zsh(1).
4167 The Midnight Commander page on the World Wide Web:
4168         http://www.midnight\-commander.org/
4170 .\"NODE "AUTHORS"
4171 .SH "AUTHORS"
4172 Authors and contributors are listed in the AUTHORS file in the source
4173 distribution.
4174 .\"NODE "BUGS"
4175 .SH "BUGS"
4176 See the file TODO in the distribution for information on what remains to
4177 be done.
4179 If you want to report a problem with the program, please send mail to
4180 this address: mc\-devel@gnome.org.
4182 Provide a detailed description of the bug, the version of the program
4183 you are running
4184 .RI ( "mc \-V"
4185 displays this information), the operating system you are running the
4186 program on.  If the program crashes, we would appreciate a stack trace.