neulab/tldr huggingface dataset:
The replace dialog is shown when you attempt to copy or move a file on the top of an existing file.  The dialog shows the dates and sizes of the both files.  Press the Yes button to overwrite the file, the No button to skip the file, the All button to overwrite all the files, the None button to never overwrite and the Update button to overwrite if the source file is newer than the target file.  You can abort the whole operation by pressing the Abort button.
The recursive delete dialog is shown when you try to delete a directory which is not empty.  Press the Yes button to delete the directory recursively, the No button to skip the directory, the All button to delete all the directories and the None button to skip all the non-empty directories.  You can abort the whole operation by pressing the Abort button.  If you selected the Yes or All button you will be asked for a confirmation.  Type "yes" only if you are really sure you want to do the recursive delete.
If you have tagged files and perform an operation on them only the files on which the operation succeeded are untagged. Failed and skipped files are left tagged.
Mask Copy/Rename The copy/move operations let you translate the names of files in an easy way.  To do it, you have to specify the correct source mask and usually in the trailing part of the destination specify some wildcards.  All the files matching the source mask are copied/renamed according to the target mask.  If there are tagged files, only the tagged files matching the source mask are renamed.
There are other options which you can set:
determines whether make the symlinks and hardlinks in the source directory (recursively in subdirectories) new links in the target directory or whether would you like to copy their content.
Dive into subdirs
determines the behavior when the source directory is about to be copied, but the target directory already exists.  The default action is to copy the contents of the source directory into the target directory.  Enabling this option causes copying the source directory itself into the target directory.
For example, you want to copy directory /foo containing file bar to /bla/foo, which is an already existing directory.  Normally (when Dive into subdirs is not set), mc would copy file /foo/bar into the file /bla/foo/bar.  By enabling this option the /bla/foo/foo directory will be created, and /foo/bar will be copied into /bla/foo/foo/bar.
Preserve attributes
determines whether to preserve the permissions, timestamps and (if you are root) the ownership of the original files.  If this option is not set, the current value of the umask will be respected.
Use shell patterns
When this option is on you can use the '*' and '?' wildcards in the source mask. They work like they do in the shell. In the target mask only the '*' and '\<digit>' wildcards are allowed. The first '*' wildcard in the target mask corresponds to the first wildcard group in the source mask, the second '*' corresponds to the second group and so on.  The '\1' wildcard corresponds to the first wildcard group in the source mask, the '\2' wildcard corresponds to the second group and so on all the way up to '\9'.  The '\0' wildcard is the whole filename of the source file.
Two examples:
If the source mask is "*.tar.gz", the destination is "/bla/*.tgz" and the file to be copied is "foo.tar.gz", the copy will be "foo.tgz" in "/bla".
Suppose you want to swap basename and extension so that "file.c" would become "c.file" and so on.  The source mask for this is "*.*" and the destination is "\2.\1".
Use shell patterns off
When the shell patterns option is off the MC doesn't do automatic grouping anymore. You must use '\(...\)' expressions in the source mask to specify meaning for the wildcards in the target mask. This is more flexible but also requires more typing. Otherwise target masks are similar to the situation when the shell patterns option is on.
If the source mask is "^\(.*\)\.tar\.gz$", the destination is "/bla/*.tgz" and the file to be copied is "foo.tar.gz", the copy will be "/bla/foo.tgz".
Let's suppose you want to swap basename and extension so that "file.c" will become "c.file" and so on. The source mask for this is "^\(.*\)\.\(.*\)$" and the destination is "\2.\1".
Case Conversions
You can also change the case of the filenames.  If you use '\u' or '\l' in the target mask, the next character will be converted to uppercase or lowercase correspondingly.
If you use '\U' or '\L' in the target mask, the next characters will be converted to uppercase or lowercase correspondingly up to the next '\E' or next '\U', '\L' or the end of the file name.
The '\u' and '\l' are stronger than '\U' and '\L'.
For example, if the source mask is '*' ( Use shell patterns on) or '^\(.*\)$' ( Use shell patterns off) and the target mask is '\L\u*' the file names will be converted to have initial upper case and otherwise lower case.
You can also use '\' as a quote character. For example, '\\' is a backslash and '\*' is an asterisk.
Stable symlinks
commands Midnight Commander, that it should change symlinks in the target, so that they'll point to the same location as it did before. With absolute symbolic links this does nothing, but if you have a relative one, it will recompute its value, adding necessary ../ and other directory parts and making the value as short as possible (most modern filesystems keep short symlinks inside inodes and thus don't waste much disk space).
Select/Unselect Files The dialog of group of files and directories selection or uselection. The input line allow enter the regular expression of filenames that will be selected/unselected.
When Files only checkbox is on, only files will be selected.  If Files only is off, as files as directories will be selected.  When Shell Patterns checkbox is on, the regular expression is much like the filename globbing in the shell (* standing for zero or more characters and ? standing for one character). If Shell Patterns is off, then the tagging of files is done with normal regular expressions (see ed (1)). When Case sensitive checkbox is on, the selection will be case sensitive characters.  If Case sensitive is off, the case will be ignored.
Internal Diff Viewer The mcdiff is a visual diff tool. You can compare two files and edit them in-place (diffs are updated dynamically). You can browse and view a working copy from popular version control systems (GIT, Subversion, etc).
Following shortcuts are available in internal diff viewer of Midnight Commander.
F1     Invoke the built-in hypertext help viewer.
F2     Save modified files.
F4     Edit file of the left panel in the internal editor.
F14    Edit file of the right panel in the internal editor.
F5     Merge the current hunk. Only the current hunk will be merged.
F7     Start search.
F17    Continue search.
F10, Esc, q Exit from diff viewer.
Alt-s, s Toggle show of hunk status.
Alt-n, l Toggle show of line numbers.
f      Maximize left panel.
=      Make panels equal in width.
>      Reduce the size of the right panel.
<      Reduce the size of the left panel.
c      Toggle show of trailing carriage return (CR) symbol as ^M.
2, 3, 4, 8 Set tabulation size
C-u    Swap contents of diff panels.
C-r    Refresh the screen.
C-o    Switch to the subshell and show the command screen.
Enter, Space, n Find next diff hunk.
Backspace, p Find previous diff hunk.
g      Go to line.
Down   Scroll one line forward.
Up     Scroll one line backward.
PageUp Move one page up.
PageDown Mves one page down.
Home, A1 Moves to the line beginning.
End    Moves to the line end.
C-Home Move to the file beginning.
C-End, C1 Move to the file end.
Internal File Viewer The internal file viewer provides two display modes: ASCII and hex.  To toggle between modes, use the F4 key.
The viewer will try to use the best method provided by your system or the file type to display the information.  Some character sequences, which appear most often in preformatted manual pages, are displayed bold and underlined, thus making a pretty display of your files.
When in hex mode, the search function accepts text in quotes and constant numbers.  Text in quotes is matched exactly after removing the quotes. Each number matches one byte.  You can mix quoted text with constants like this:
"String" 34 0xBB 012 "more text"
Numbers are always interpreted in hex. In the example above, "34" is interpreted as 0x34. The prefix "0x" isn't really needed: we could type "BB" instead of "0xBB". And "012" is interpreted as 0x12, not as an octal number.
Here is a listing of the actions associated with each key that the Midnight Commander handles in the internal file viewer.
F2     Toggle the wrap mode.
F4     Toggle the hex mode.
F5     Goto. You can specify a line number, offset or percentage of file size of position that you want to view.
F7, /, ? Start search. These keys call the dialog window that allows you to set up the search options. If key is ? the "Backwards" option is on.
C-s    Continue forward search.
C-r    Continue reverse search.
F17, n Continue search in the chosen direction.
N      Temporary change the search direction: backwards if forward search is chosen, and vice versa.
F8     Toggle Raw/Parsed mode: This will show the file as found on disk or if a processing filter has been specified in the mc.ext file, then the output from the filter. Current mode is always the other than written on the button label, since on the button is the mode which you enter by that key.
F9     Toggle the format/unformat mode: when format mode is on the viewer will interpret some string sequences to show bold and underline with different colors. Also, on button label is the other mode than current.
F10, Esc. Exit the internal file viewer.
PageDown, space, C-v. Scroll one page forward.
PageUp, Alt-v, C-b, Backspace. Scroll one page backward.
C-l    Refresh the screen.
[n] m  Set the mark n.
[n] r  Jump to the mark n.
C-f    Jump to the next file.
C-b    Jump to the previous file.
Alt-r  Toggle the ruler.
Alt-e  to change charset of displayed text may use Alt-e (M-e).  Recoding is made from selected codepage into system codepage. To cancel the recoding you may select "<No translation>" in charset selection dialog.
It's possible to instruct the file viewer how to display a file, look at the Edit Extension File section
Internal File Editor The internal file editor is a full-featured full screen editor.  It can edit files up to 64 megabytes.  It is possible to edit binary files.  The internal file editor is invoked using F4 if the use_internal_edit option is set in the initialization file.
The features it presently supports are: block copy, move, delete, cut, paste; key for key undo; pull-down menus; file insertion; macro commands; regular expression search and replace; S-arrow text highlighting (if supported by the terminal); insert-overwrite toggle; word wrap; autoindent; tunable tab size; syntax highlighting for various file types; and an option to pipe text blocks through shell commands like indent and ispell.
Sections:
Options of editor in ini-file
The editor is very easy to use and requires no tutoring. To see what keys do what, just consult the appropriate pull-down menu. Other keys are: Shift movement keys do text highlighting.  C-Ins copies to the file mcedit.clip and S-Ins pastes from mcedit.clip.  S-Del cuts to mcedit.clip, and C-Del deletes highlighted text. Mouse highlighting also works, and you can override the mouse as usual by holding down the shift key while dragging the mouse to let normal terminal mouse highlighting work.
To define a macro, press C-R and then type out the key strokes you want to be executed. Press C-R again when finished. You can then assign the macro to any key you like by pressing that key. The macro is executed when you press C-A and then the assigned key. The macro is also executed if you press Meta, Ctrl, or Esc and the assigned key, provided that the key is not used for any other function. Once defined, the macro commands go into the file ~/.local/share/mc/mcedit/mcedit.macros You can delete a macro by deleting the appropriate line in this file.
To change charset of displayed text may use Alt-e (M-e).  Recoding is made from selected codepage into system codepage. To cancel the recoding you may select "<No translation>" in charset selection dialog.
F19 will format the currently highlighted block (plain text or C or C++ code or another). This is controlled by the file /usr/share/mc/edit.indent.rc which is copied to ~/.local/share/mc/mcedit/edit.indent.rc in your home directory the first time you use it.
The editor also displays non-us characters (160+). When editing binary files, you should set display bits to 7 bits in the options menu to keep the spacing clean.
Options of editor in ini-file Some editor options of ini-file are described in this section.  Options are placed in [Midnight-Commander] section
editor_wordcompletion_collect_entire_file Search autocomplete candidates in entire of file or just from begin of file to cursor position (0)
Screen selector Midnight Commander supports running many internal modules (such as editor, viewer and diff viewer) simultaneously and switching between them without closing open files. Using several file managers at a time, however, is not currently supported.
Let's call each of these modules a screen. There are three ways to switch between screens, using one of these global shortcuts:
Alt-}  switch to the next screen;
Alt-{  switch to the previous screen;
Alt-`  open a dialog window with the list of currently open screens (or use the "Screen list" menu item).
Completion Let Midnight Commander type for you.
Attempt to perform completion on the text before current position.  MC attempts completion treating the text as variable (if the text begins with $), username (if the text begins with ~), hostname (if the text begins with @) or command (if you are on the command line in the position where you might type a command, possible completions then include shell reserved words and shell built-in commands as well) in turn.  If none of these matches, filename completion is attempted.
Filename, username, variable and hostname completion works on all input lines, command completion is command line specific.  If the completion is ambiguous (there are more different possibilities), MC beeps and the following action depends on the setting of the Complete: show all option in the Configuration dialog.  If it is enabled, a list of all possibilities pops up next to the current position and you can select with the arrow keys and Enter the correct entry.  You can also type the first letters in which the possibilities differ to move to a subset of all possibilities and complete as much as possible.  If you press Alt-Tab again, only the subset will be shown in the listbox, otherwise the first item which matches all the previous characters will be highlighted.  As soon as there is no ambiguity, dialog disappears, but you can hide it by canceling keys Esc, F10 and left and right arrow keys. If Complete: show all is disabled, the dialog pops up only if you press Alt-Tab for the second time, for the first time MC just beeps.
Apply escaping of ?, *, and & symbols (as \?, \*, and \&) in filenames to disallow use them as metasymbols in regular expressions when substitution is performed in the input line.
Virtual File System Midnight Commander is provided with a code layer to access the file system; this code layer is known as the virtual file system switch.  The virtual file system switch allows Midnight Commander to manipulate files not located on the Unix file system.
Currently, Midnight Commander is packaged with some Virtual File Systems (VFS): the local file system, used for accessing the regular Unix file system; the ftpfs, used to manipulate files on remote systems with the FTP protocol; the tarfs, used to manipulate tar and compressed tar files; the undelfs, used to recover deleted files on ext2 file systems (the default file system for Linux systems), fish (for manipulating files over shell connections such as rsh and ssh).  If the code was compiled with sftpfs (for manipulating files over SFTP connections).  If the code was compiled with smbfs support, you can manipulate files on remote systems with the SMB (CIFS) protocol.
A generic extfs (EXTernal virtual File System) is provided in order to easily expand VFS capabilities using scripts and external software.
The VFS switch code will interpret all of the path names used and will forward them to the correct file system, the formats used for each one of the file systems is described later in their own section.
FTP File System The FTP File System (ftpfs) allows you to manipulate files on remote machines.  To actually use it, you can use the FTP link item in the menu or directly change your current directory using the cd command to a path name that looks like this:
ftp://[!][user[:pass]@]machine[:port][remote-dir]
The user, port and remote-dir elements are optional.  If you specify the user element, Midnight Commander will login to the remote machine as that user, otherwise it will use anonymous login or the login name from the ~/.netrc file.  The optional pass element is the password used for the connection.  Using the password in the VFS directory name is not recommended, because it can appear on the screen in clear text and can be saved to the directory history.
To enable using FTP proxy, prepend !  (an exclamation sign) to the hostname.
ftp://ftp.nuclecu.unam.mx/linux/local ftp://tsx-11.mit.edu/pub/linux/packages ftp://!behind.firewall.edu/pub ftp://guest@remote-host.com:40/pub ftp://miguel:xxx@server/pub
Please check the Virtual File System dialog box for ftpfs options.
Tar File System The tar file system provides you with read-only access to your tar files and compressed tar files by using the chdir command.  To change your directory to a tar file, you change your current directory to the tar file by using the following syntax:
/filename.tar/utar://[dir-inside-tar]
The mc.ext file already provides a shortcut for tar files, this means that usually you just point to a tar file and press return to enter into the tar file, see the Edit Extension File section for details on how this is done.
mc-3.0.tar.gz/utar://mc-3.0/vfs /ftp/GCC/gcc-2.7.0.tar/utar://
The latter specifies the full path of the tar archive.
FIle transfer over SHell filesystem The fish file system is a network based file system that allows you to manipulate the files in a remote machine as if they were local. To use this, the other side has to either run fish server, or has to have bash-compatible shell.
To connect to a remote machine, you just need to chdir into a special directory which name is in the following format:
sh://[user@]machine[:options]/[remote-dir]
The user, options and remote-dir elements are optional.  If you specify the user element, Midnight Commander will try to login on the remote machine as that user, otherwise it will use your login name.
The available options are: 'C' - use compression; 'r' - use rsh instead of ssh; port - specify the port used by remote server. If the remote-dir element is present, your current directory on the remote machine will be set to this one.
sh://onlyrsh.mx:r/linux/local sh://joe@want.compression.edu:C/private sh://joe@noncompressed.ssh.edu/private sh://joe@somehost.ssh.edu:2222/private
SFTP (SSH File Transfer Protocol) filesystem The SFTP file system is a network based file system that allows you to manipulate the files in a remote machine as if they were local.
sftp://[user@]machine:[port]/[remote-dir]
The user, port and remote-dir elements are optional.  If you specify the user element, Midnight Commander will try to login on the remote machine as that user, otherwise it will use your login name.  port - specify the port used by remote server (22 by default).  If the remote-dir element is present, your current directory on the remote machine will be set to this one.
sftp://onlyrsh.mx/linux/local sftp://joe:password@want.compression.edu/private sftp://joe@noncompressed.ssh.edu/private sftp://joe@somehost.ssh.edu:2222/private
When establishing the connection, server key fingerprint is verified using the ~/.ssh/known_hosts file. If the host/key pair is not found or the host is found, but the key doesn't match, an appropriate message is shown.  There are three buttons in the message dialog:
[Yes] add new host/key pair to the ~/.ssh/known_hosts file and continue.
[Ignore] do not add new host/key pair to the ~/.ssh/known_hosts file, but continue nevertheless (at you own risk).
[No] abort connection.
Undelete File System On Linux systems, if you asked configure to use the ext2fs undelete facilities, you will have the undelete file system available.  Recovery of deleted files is only available on ext2 file systems.  The undelete file system is just an interface to the ext2fs library to retrieve all of the deleted files names on an ext2fs and provides and to extract the selected files into a regular partition.
To use this file system, you have to chdir into the special file name formed by the "undel://" prefix and the file name where the actual file system resides.
For example, to recover deleted files on the second partition of the first SCSI disk on Linux, you would use the following path name:
undel://sda2
It may take a while for the undelfs to load the required information before you start browsing files there.
SMB File System The smbfs allows you to manipulate files on remote machines with SMB (or CIFS) protocol.  These include Windows for Workgroups, Windows 9x/ME/XP, Windows NT, Windows 2000 and Samba.  To actually use it, you may try to use the panel command "SMB link..."  (accessible from the menubar) or you may directly change your current directory to it using the cd command to a path name that looks like this:
smb://[user@]machine[/service][/remote-dir]
The user, service and remote-dir elements are optional.  The user, domain and password can be specified in an input dialog.
smb://machine/Share smb://other_machine smb://guest@machine/Public/Irlex
EXTernal File System extfs allows you to integrate numerous features and file types into GNU Midnight Commander in an easy way, by writing scripts.
Extfs filesystems can be divided into two categories:
1. Stand-alone filesystems, which are not associated with any existing file.  They represent certain system-wide data as a directory tree.  You can invoke them by typing cd fsname:// where fsname is an extfs short name (see below).  Examples of such filesystems include audio (list audio tracks on the CD) or apt (list of all Debian packages in the system).
For example, to list CD-Audio tracks on your CD-ROM drive, type
cd audio://
2. 'Archive' filesystems (like rpm, patchfs and more), which represent contents of a file as a directory tree.  It can consist of 'real' files compressed in an archive (urar, rpm) or virtual files, like messages in a mailbox (mailfs) or parts of a patch (patchfs).  To access such filesystems fsname:// should be appended to the archive name.  Note that the archive itself can be on another vfs.
For example, to list contents of a zip archive documents.zip type
cd documents.zip/uzip://
In many aspects, you could treat extfs like any other directory.  For instance, you can add it to the hotlist or change to it from directory history.  An important limitation is that you cannot invoke shell commands inside extfs, just like any other non-local VFS.
Common extfs scripts included with Midnight Commander are:
a      access 'A:' DOS/Windows diskette (cd a://).
apt    front end to Debian's APT package management system (cd apt://).
audio  audio CD ripping and playing (cd audio:// or cd device/audio://).
bpp    package of Bad Penguin GNU/Linux distribution (cd file.bpp/bpp://).
deb    package of Debian GNU/Linux distribution (cd file.deb/deb://).
dpkg   Debian GNU/Linux installed packages (cd deb://).
hp48   view and copy files to/from a HP48 calculator (cd hp48://).
lslR   browsing of lslR listings as found on many FTPs (cd filename/lslR://).
mailfs mbox-style mailbox files support (cd mailbox/mailfs://).
patchfs extfs to handle unified and context diffs (cd filename/patchfs://).
rpm    RPM package (cd filename/rpm://).
rpms   RPM database management (cd rpms://).
ulha, urar, uzip, uzoo, uar, uha archivers (cd archive/xxxx:// where xxxx is one of: ulha, urar, uzip, uzoo, uar, uha).
You could bind file type/extension to specified extfs as described in the Edit Extension File section.  Here is an example entry for Debian packages:
regex/.deb$ Open=%cd %p/deb://
Colors Midnight Commander will try to detect if your terminal supports color using the terminal database and your terminal name.  Sometimes it gets confused, so you may force color mode or disable color mode using the -c and -b flag respectively.
If the program is compiled with the S-Lang screen manager instead of ncurses, it will also check the variable COLORTERM, if it is set, it has the same effect as the -c flag.
You may specify terminals that always force color mode by adding the color_terminals variable to the Colors section of the initialization file.  This will prevent Midnight Commander from trying to detect if your terminal supports color.  Example:
[Colors] color_terminals=linux,xterm color_terminals=terminal-name1,terminal-name2...
The program can be compiled with both ncurses and S-Lang, ncurses does not provide a way to force color mode: ncurses uses just the information in the terminal database.
Midnight Commander provides a way to change the default colors. Currently the colors are configured using the environment variable MC_COLOR_TABLE or the Colors section in the initialization file.
In the Colors section, the default color map is loaded from the base_color variable.  You can specify an alternate color map for a terminal by using the terminal name as the key in this section.  Example:
[Colors] base_color= xterm=menu=magenta:marked=,magenta:markselect=,red
The format for the color definition is:
<keyword>=<fgcolor>,<bgcolor>,<attributes>:<keyword>=...
The colors are optional, and the keywords are: normal, selected, disabled, marked, markselect, errors, input, inputmark, inputunchanged, commandlinemark, reverse, gauge, header, inputhistory, commandhistory. Button bar colors are: bbarhotkey, bbarbutton. Status bar color: statusbar. Menu colors are: menunormal, menusel, menuhot, menuhotsel, menuinactive. Dialog colors are: dnormal, dfocus, dhotnormal, dhotfocus, dtitle. Error dialog colors are: errdfocus, errdhotnormal, errdhotfocus, errdtitle.  Help colors are: helpnormal, helpitalic, helpbold, helplink, helpslink, helptitle.  Viewer colors are: viewnormal, viewbold, viewunderline, viewselected. Editor colors are: editnormal, editbold, editmarked, editwhitespace, editlinestate. Popup menu colors are: pmenunormal, pmenusel, pmenutitle.
header determines the color of panel header, the line that contains column titles and sort mode indicator.
input determines the color of input lines used in query dialogs.
gauge determines the color of the filled part of the progress bar (gauge), which is used to show the user the progress of file operations, such as copying.
disabled determines the color of the widget that cannot be selected.
The dialog boxes use the following colors: dnormal is used for the normal text, dfocus is the color used for the currently selected component, dhotnormal is the color used to differentiate the hotkey color in normal components, whereas the dhotfocus color is used for the highlighted color in the currently selected component.
Menus use the same scheme but uses the menunormal, menusel, menuhot, menuhotsel and menuinactive tags instead.
Help uses the following colors: helpnormal is used for normal text, helpitalic is used for text which is emphasized in italic in the manual page, helpbold is used for text which is emphasized in bold in the manual page, helplink is used for not selected hyperlinks and helpslink is used for selected hyperlink.
Popup menu uses following colors: pmenunormal is used for non-selected menu items and as a main color of popup menu window, pmenusel is used for selected menu item, pmenutitle is used for popup menu title.
The possible colors are: black, gray, red, brightred, green, brightgreen, brown, yellow, blue, brightblue, magenta, brightmagenta, cyan, brightcyan, lightgray and white. And there is a special keyword for transparent background. It is 'default'. The 'default' can only be used for background color. Another special keyword "base" means mc's main colors.  When 256 colors are available, they can be specified either as color16 to color255, or as rgb000 to rgb555 and gray0 to gray23. Example:
[Colors] base_color=normal=white,default:marked=magenta,default
Attributes can be any of bold, italic, underline, reverse and blink, appended by a plus sign if more than one are desired.  The special word "none" means no attributes, without attempting to fall back to base_color.  Example:
menuhotsel=yellow;black;bold+underline
Skins You can change the appearance of Midnight Commander.  To do this, you must specify a file that contain descriptions of colors and lines to draw boxes. Redefining of the colors is entirely compatible with the assignment of colors, as described in Section Colors.
If your skin contains any true-color definitions, you should define the 'truecolors' key set to TRUE value in [skin] section. If true-color is not used but 256-color is, you should define '256colors' instead.
A skin-file is searched on the following algorithm (to the first one found):
1) command line option -S <skin> or --skin=<skin> 2) Environment variable MC_SKIN 3) Parameter skin in section [Midnight-Commander] in config file. 4) File /etc/mc/skins/default.ini 5) File /usr/share/mc/skins/default.ini
Command line option, environment variable and parameter in config file may contain the absolute path to the skin-file (with the extension .ini or without it). Search of skin-file will occur in (to the first one found):
1) ~/.local/share/mc/skins/ 2) /etc/mc/skins/ 3) /usr/share/mc/skins/
For getting extended info, refer to:
Description of section and parameters Color pair definitions Color and attribute aliases Draw lines Compatibility
Description of section and parameters Section [skin] contain metainfo for skin-file. Parameter description contain short text about skin.
Section [filehighlight] contain descriptions of color pairs for filenames highlighting.  Name of parameters must be equal to names of sections into filehighlight.ini file.  See Filenames Highlight for getting more info.
Section [core] describes the elements that are used everywhere.
_default_ Default color pair. Used in all other sections if they not contain color definitions
selected cursor
marked selected data
markselect cursor on selected data
gauge  color of the filled part of the progress bar
input  color of input lines used in query dialogs
inputmark color of input selected text
inputunchanged color of input text before first modification or cursor movement
commandlinemark color of selected text in command line
reverse reverse color
Section [dialog] describes the elements that are placed on dialog windows (except error dialogs).
_default_ Default color for this section. Used [core]._default_ if not specified
dfocus Color of active element (in focus)
dhotnormal Color of hotkeys
dhotfocus Color of hotkeys in focused element
Section [error] describes the elements that are placed on error dialog windows
errdhotnormal Color of hotkeys
errdhotfocus Color of hotkeys in focused element
Section [menu] describes the elements that are placed in menu. This section describes system menu (called by F9) and user-defined menus (called by F2 in panels and by F11 in editor).
entry  Color of menu items
menuhot Color of menu hotkeys
menusel Color of active menu item (in focus)
menuhotsel Color of menu hotkeys in focused menu item
menuinactive Color of inactive menu
Section [help] describes the elements that are placed on help window.
helpitalic Color pair for element with italic attribute
helpbold Color pair for element with bold attribute
helplink Color of links
helpslink Color of active link (on focus)
Section [editor] describes the colors of elements placed in editor.
editbold Color pair for element with bold attribute
editmarked Color of selected text
editwhitespace Color of tabs and trailing spaces highlighting
editlinestate Color for line state area
Section [viewer] describes the colors of elements placed in viewer.
viewunderline Color pair for element with underline attribute
Color pair definitions Any parameter in skin-file contain definition of color pair.
Color pairs described as two colors and the optional attributes separated by ';'. First field sets the foreground color, second field sets background color, third field sets the attributes.  Any of the fields may be omitted, in this case value will be taken from default color pair (global color pair or from default color pair of this section).
Example: [core] # green on black _default_=green;black # green (default) on blue selected=;blue # yellow on black (default) # underlined yellow on black (default) marked=yellow;;underline
Possible colors (names) and attributes are described in Colors.  section.
Color and attribute aliases This optional section might define aliases for single colors (not color pairs) as well as combination of attributes; in other words, for semicolon-separated fragments of parameters. Aliases can refer to other aliases as long as they don't form a loop.
Example: [aliases] myfavfg=green myfavbg=black myfavattr=bold+italic [core] _default_=myfavfg;myfavbg;myfavattr
Draw lines Lines sets in section [Lines] into skin-file. By default single lines are used, but you may redefine to usage of any utf-8 symbols (like to lines, for example).
WARNING!!!  When you build Midnight Commander with the ncurses screen library usage of drawing lines is limited!  Possible only drawing a single lines.  For all questions and comments please contact the developers of ncurses.
Descriptions of parameters [Lines]:
lefttop left-top line fragment.
righttop right-top line fragment.
centertop down branch of horizontal line
centerbottom up branch of horizontal line
leftbottom left-bottom line fragment
rightbottom right-bottom line fragment
leftmiddle right branch of vertical line
rightmiddle left branch of vertical line
centermiddle cross of lines
horiz  horizontal line
vert   vertical line
thinhoriz thin horizontal line
thinvert thin vertical line
Compatibility Appointment of color  by skin-files fully compatible with the appointment of the colors described in Colors.  section.
In this case, reassignment of colors has priority over the skin file and is complementary.
Filenames Highlight Section [filehighlight] in current skin-file contains key names as highlight groups and values as color pairs. Color pairs is documented in Skins section.
Rules of filenames highlight are placed in /usr/share/mc/filehighlight.ini file (~/.config/mc/filehighlight.ini). Name of section in this file must be equal to parameters names in [filehighlight] section (in current skin-file).
Keys in these groups are:
type   file type. If present, all other options are ignored.
regexp regular expression. If present, 'extensions' option is ignored.
extensions list of extensions of files. Separated by ';' sign.
extensions_case (make sense only with 'extensions' parameter) make 'extensions' rule case sensitive (true) or not (false).
`type' key may have values: - FILE (all files) - FILE_EXE - DIR (all directories) - LINK_DIR - LINK (all links except stale link) - HARDLINK - SYMLINK - STALE_LINK - DEVICE (all device files) - DEVICE_BLOCK - DEVICE_CHAR - SPECIAL (all special files) - SPECIAL_SOCKET - SPECIAL_FIFO - SPECIAL_DOOR
Special Settings Most of Midnight Commander settings can be changed from the menus. However, there are a small number of settings which can only be changed by editing the setup file.
These variables may be set in your ~/.config/mc/ini file:
clear_before_exec By default, Midnight Commander clears the screen before executing a command.  If you would prefer to see the output of the command at the bottom of the screen, edit your ~/.config/mc/ini file and change the value of the field clear_before_exec to 0.
confirm_view_dir If you press F3 on a directory, normally MC enters that directory. If this flag is set to 1, then MC will ask for confirmation before changing the directory if you have files tagged.
ftpfs_retry_seconds This value is the number of seconds Midnight Commander will wait before attempting to reconnect to an FTP server that has denied the login.  If the value is zero, the login will no be retried.
max_dirt_limit Specifies how many screen updates can be skipped at most in the internal file viewer.  Normally this value is not significant, because the code automatically adjusts the number of updates to skip according to the rate of incoming keystrokes.  However, on very slow machines or terminals with a fast keyboard auto repeat, a big value can make screen updates too jumpy.
It seems that setting max_dirt_limit to 10 causes the best behavior, and that is the default value.
mouse_move_pages_viewer Controls if scrolling with the mouse is done by pages or line by line on the internal file viewer.
only_leading_plus_minus Allow special treatment for '+', '-', '*' in the command line (select, unselect, reverse selection) only if the command line is empty.  You don't need to quote those characters in the middle of the command line.  On the other hand, you cannot use them to change selection when the command line is not empty.
alternate_plus_minus If true, use '+', '-', '\' and '*' keys normally. For select/unselect, use 'Alt-+', 'Alt--' and 'Alt-*'.
show_output_starts_shell This variable only works if you are not using the subshell support.  When you use the C-o keystroke to go back to the user screen, if this one is set, you will get a fresh shell. Otherwise, pressing any key will bring you back to Midnight Commander.
timeformat_recent Change the time format used to display dates less than 6 months from now.  See strftime or date man page for the format specification. If this option is absent, default timeformat is used.
timeformat_old Change the time format used to display  dates older than 6 months from now or for dates in the future.  See strftime or date man page for the format specification. If this option is absent, default timeformat is used.
torben_fj_mode If this flag is set, then the home and end keys will work slightly different on the panels, instead of moving the selection to the first and last files in the panels, they will act as follows:
The home key will: Go up to the middle line, if below it; else go to the top line unless it is already on the top line, in this case it will go to the first file in the panel.
The end key has a similar behavior: Go down to the middle line, if over it; else go to the bottom line unless you already are at the bottom line, in such case it will move the selection to the last file name in the panel.
use_file_to_guess_type If this variable is on (the default) it will spawn the file command to match the file types listed on the mc.ext file.
xtree_mode If this variable is on (default is off) when you browse the file system on a Tree panel, it will automatically reload the other panel with the contents of the selected directory.
fish_directory_timeout This variable holds the lifetime of a directory cache entry in seconds. The default value is 900 seconds.
clipboard_store This variable contains path (with options) to the external clipboard utility like 'xclip' to read text into X selection from file.  For example:
clipboard_store=xclip -i
clipboard_paste This variable contains path (with options) to the external clipboard utility like 'xclip' to print the selection to standard out.  For example:
clipboard_paste=xclip -o
autodetect_codeset This option allows use the `enca' command to autodetect codeset of text files in internal viewer and editor. List of valid values can be obtain by the `enca --list languages | cut -d : -f1' command. Option must be located in the [Misc] section.
autodetect_codeset=russian
Parameters for external editor or viewer Midnight Commander provides a way for specify an options for external editors and viewers. Midnight Commander tries to search the "[External editor or viewer parameters]" section in the system initialization file (the mc.lib file located in Midnight Commander's library directory) and then in the ~/.config/mc/ini file. The option name should be equal to the name (full pathname) of external editor or viewer. The option value can contain following variables:
%filename The filename to edit/view.
%lineno The start line in the opening file.
[External editor or viewer parameters] vi=%filename +%lineno joe=%filename +%lineno more=%filename +%lineno
Start line is passed to the external editor/viewer only if it is called from the Find file results window.
If external editor/viewer is launched via F4/F3 keys, MC hopes that program (at least "joe", but probably others too) has an own feature that by default opens the file where it was last open. MC doesn't prevent external editor/viewer to save and restore position in opened files.
Terminal databases Midnight Commander provides a way to fix your system terminal database without requiring root privileges. Midnight Commander searches in the system initialization file (the mc.lib file located in Midnight Commander's library directory) and in the ~/.config/mc/ini file for the section "terminal:your-terminal-name" and then for the section "terminal:general", each line of the section contains a key symbol that you want to define, followed by an equal sign and the definition for the key.  You can use the special \e form to represent the escape character and the ^x to represent the control-x character.
The possible key symbols are:
f0 to f20     Function keys f0-f20 bs            backspace home          home key end           end key up            up arrow key down          down arrow key left          left arrow key right         right arrow key pgdn          page down key pgup          page up key insert        the insert character delete        the delete character complete      to do completion
For example, to define the key insert to be the Escape + [ + O + p, you set this in the ini file:
insert=\e[Op
Also now you can use extended learn keys.  For example:
ctrl-alt-right=\e[[1;6C ctrl-alt-left=\e[[1;6D
This means that ctrl+alt+left sends a \e[[1;6D escape sequence and therefore Midnight Commander interprets "\e[[1;6D" as C-Alt-Left.
The complete key symbol represents the escape sequences used to invoke the completion process, this is invoked with Alt-tab, but you can define other keys to do the same work (on those keyboard with tons of nice and unused keys everywhere).
Full paths below may vary between installations.  They are also affected by the MC_DATADIR environment variable. If it's set, its value is used instead of /usr/share/mc in the paths below.
/usr/share/mc/help/mc.hlp
The help file for the program.
/usr/share/mc/mc.ext
The default system-wide extensions file.
~/.config/mc/mc.ext
User's own extension, view configuration and edit configuration file.  They override the contents of the system wide files if present.
/etc/mc/mc.ini /usr/share/mc/mc.ini
System-wide setup files for Midnight Commander, used only if the user doesn't have his own ~/.config/mc/ini file. If /etc/mc/mc.ini exists, /usr/share/mc/mc.ini isn't used.
/usr/share/mc/mc.lib
Global settings for Midnight Commander. Settings in this file affect all users, whether they have ~/.config/mc/ini or not. Currently, only terminal settings are loaded from mc.lib.
~/.config/mc/ini
User's own setup. If this file is present then the setup is loaded from here instead of the system-wide startup file.
/usr/share/mc/hints/mc.hint
This file contains the hints displayed by the program.
/usr/share/mc/mc.menu
This file contains the default system-wide applications menu.
~/.config/mc/menu
User's own application menu. If this file is present it is used instead of the system-wide applications menu.
~/.cache/mc/Tree
The directory list for the directory tree and tree view features.
~/.local/share/mc.menu
Local user-defined menu. If this file is present, it is used instead of the home or system-wide applications menu.
To change default root directory of MC, you can use MC_PROFILE_ROOT environment variable. The value of MC_PROFILE_ROOT must be an absolute path.  If MC_PROFILE_ROOT is unset or empty, HOME variable is used. If HOME is unset or empty, MC directories are get from GLib library.
This program is distributed under the terms of the GNU General Public License as published by the Free Software Foundation. See the built-in help for details on the License and the lack of warranty.
The latest version of this program can be found at http://ftp.midnight-commander.org/.
ed(1), gpm(1), terminfo(1), view(1), sh(1), bash(1), tcsh(1), zsh(1).
Midnight Commander's page on the World Wide Web: http://www.midnight-commander.org/
Authors and contributors are listed in the AUTHORS file in the source distribution.
See the file TODO in the distribution for information on what remains to be done.
If you want to report a problem with the program, please create bugreport at http://www.midnight-commander.org/.
Provide a detailed description of the bug, the version of the program you are running (mc -V displays this information), the operating system you are running the program on.  If the program crashes, we would appreciate a stack trace.
LTRACE(1)                         User Commands                        LTRACE(1)
ltrace - A library call tracer
ltrace [-e filter|-L] [-l|--library=library_pattern] [-x filter] [-S] [-b|--no-signals] [-i] [-w|--where=nr] [-r|-t|-tt|-ttt] [-T] [-F filename] [-A maxelts] [-s strsize] [-C|--demangle] [-a|--align column] [-n|--indent nr] [-o|--output filename] [-D|--debug mask] [-u username] [-f] [-p pid] [[--] command [arg ...]]
ltrace -c [-e filter|-L] [-l|--library=library_pattern] [-x filter] [-S] [-o|--output filename] [-f] [-p pid] [[--] command [arg ...]]
ltrace -V|--version
ltrace -h|--help
ltrace is a program that simply runs the specified command until it exits.  It intercepts and records the dynamic library calls which are called by the executed process and the signals which are received by that process.  It can also intercept and print the system calls executed by the program.
Its use is very similar to strace(1).
-a, --align column Align return values in a specific column (default column is 5/8 of screen width).
-A maxelts Maximum number of array elements to print before suppressing the rest with an ellipsis ("...").  This also limits number of recursive structure expansions.
-b, --no-signals Disable printing of signals recieved by the traced process.
-c     Count time and calls for each library call and report a summary on program exit.
-C, --demangle Decode (demangle) low-level symbol names into user-level names. Besides removing any initial underscore prefix used by the system, this makes C++ function names readable.
-D, --debug mask Show debugging output of ltrace itself.  mask is a number with internal meaning that's not really well defined at all.  mask of 77 shows all debug messages, which is what you usually need.
-e filter A qualifying expression which modifies which library calls to trace.  The format of the filter expression is described in the section FILTER EXPRESSIONS.  If more than one -e option appears on the command line, the library calls that match any of them are traced.  If no -e is given, @MAIN is assumed as a default.
-f     Trace child processes as they are created by currently traced processes as a result of the fork(2) or clone(2) system calls. The new process is attached immediately.
-F filename Load an alternate config file. Normally, /etc/ltrace.conf and ~/.ltrace.conf will be read (the latter only if it exists).  Use this option to load the given file or files instead of those two default files.  See ltrace.conf(5) for details on the syntax of ltrace configuration files.
-h, --help Show a summary of the options to ltrace and exit.
-i     Print the instruction pointer at the time of the library call.
-l, --library library_pattern Display only calls to functions implemented by libraries that match library_pattern.  Multiple library patters can be specified with several instances of this option.  Syntax of library_pattern is described in section FILTER EXPRESSIONS.
Note that while this option selects calls that might be directed to the selected libraries, there's no actual guarantee that the call won't be directed elsewhere due to e.g. LD_PRELOAD or simply dependency ordering.  If you want to make sure that symbols in given library are actually called, use -x @library_pattern instead.