📄 faq
字号:
Just chdir to a non-ftp directory. Just typing "cd" with no parameters
is enough (it will take you to your home directory).
Internally Midnight Commander closes ftp connection only after a
timeout. This isn't visible to the end user.
7.6 Why aren't the contents of ftp panel updated?
Update is skipped because there would be a serious performance
penalty. Constantly updating directory panels through a ftp connection
would take too much time.
You can use C-r to force an update.
7.7 [NEW] What kind of proxy server works with Midnight Commander?
Midnight Commander only supports ftp-like ftp proxies. Common WWW
proxies (like Squid) are not supported yet because they make ftp
connections look like http connections.
8 Other common problems
8.1 [UPDATED] How do I get the internal editor to work?
The F4 key defaults to an external editor because thats what most
people are used to. To use the internal editor, select Configuration
from the Options menu and check the 'use internal edit' option.
Alternatively add the line
use_internal_edit=1
under the [Midnight-Commander] section in your .mc.ini file (which is
in your home directory).
To make the editor work all the time, go to the default/* section in
the file lib/mc/mc.ext file and remove the line
Edit=%var{EDITOR:vi} %f
The internal editor will now be invoked for anything not specified
elsewhere in the mc.ext file.
Make sure that you edit the correct mc.ext file. The Midnight
Commander first checks the existance of $HOME/.mc.ext. If this file is
missing MC will use $prefix/lib/mc/mc.ext instead ($prefix can be
changed with configure before compilation and it defaults to
/usr/local).
When you run `F9/Command/Extension file edit' for the very first time
Midnight Commander copies the system-wide mc.ext from $prefix/lib/mc
into your home directory because you need write access in order to
change it.
And please don't forget that "make install" overwrites
$prefix/lib/mc/mc.ext.
8.2 Why doesn't "mcedit newfile" work?
This is a known bug.
If the newfile doesn't exist, mcedit fails.
Start mcedit with no parameters, this will create a blank file. Then
save the file with whatever name you like.
8.3 [UPDATED] Is there any way to 'bookmark' favourite ftp-fs links?
Use the directory hotlist. Just press control-backslash. If your
national keyboard layout doesn't have backslash key, just press the
control key with the key which is the backslash key in the English
keyboard layout.
8.4 When copying the directories lose their original date, uid and gid!
This is a known bug. At moment only files preserve their original
settings when copying, not directories.
Uid and gid is fixed since 4.0.1. "Preserve UIDs/GIDs" in the copy
dialog needs to be checked and you must be root.
Date problem is supposed to be fixed with 4.0.13.
8.5 [UPDATED] Why I keep getting: "There is no disk in the drive. Please
insert a disk into drive D:"?
This is a known bug of the Windows 95/NT and OS/2 ports. MC looks its
configuration files from the D:\MC directory and if the D: drive is a
removable drive (like a CD ROM drive) and there is no disk in drive
you get this message everytime you try to do anything.
Since version 4.0.6 you can specify the actual location of the
Midnight Commander configuration files with the MCHOME environment
variable.
8.6 [NEW] When I start Midnight Commander, nothing happens!
First, invoke MC without subshell support: "mc -u". If this helps
check the shell you are using. Subshell support works best with bash
although tcsh and zsh are also supported. You might want to upgrade
your shell to a newer version. If you use something else than bash,
tcsh or zsh, subshell support is disabled automatically.
If disabling subshell doesn't help, try to reconfigure MC with
"--with-our-slang" and "--with-termcap" options and recompile. If this
helps, there is something wrong with your terminfo database or shared
slang library. For better terminfo databases see chapter 4. For a
better slang library, upgrade to a newer version or keep using the
"--with-our-slang" option.
8.7 [NEW] When I try to view a file MC hangs!
This is known bug. A quick fix is "chmod 666 /dev/tty". For a more
complete fix, see http://mc.blackdown.org/mc/maillist/97-10/98.html.
This bug will probably be fixed in 4.1.6.
9 Development
9.1 Who has written Midnight Commander?
Midnight Commander was started by Miguel de Icaza and he is the
maintainer of the package. Other authors have joined the project
later:
* Mauricio Plaza (early releases, retired)
* Janne Kukonlehto (joined Sep 27 1994, retired Mar 8 1995, nowadays
Janne is the webmaster of the Midnight Commander web site)
* Radek Doulik (joined Oct 30 1994)
* Fred Leeflang (joined Nov 2 1994)
* Dugan Porter (joined Dec 1 1994)
* Jakub Jelinek (joined Feb 8 1995)
* Ching Hui (joined Jun 27 1995)
* Andrej Borsenkow (joined Jul 1996)
* Paul Sheer (joined Nov 1 1996)
* Norbert Warmuth
* Alex I. Tkachenko
Alessandro Rubini has been specially helpful with debugging and
enhancing of the mouse support. John Davis has made his S-Lang library
available to us and answered many questions about it.
The photographs of the authors are available as:
http://mc.blackdown.org/mc/about.html
Many people have contributed bug reports, feature suggestions and
small code bits (alphabetical order):
* Thomasz Cholewo
* Juan Jose Ciarlante
* Alexander Dong (OS/2 port, NT port updates)
* Erwin van Eijk
* Torben Fjerdingstad
* Massimo Fontanelli
* Juan Grigera (NT port)
* Gerd Knorr
* Sergey Ya. Korshunoff
* Jean-Daniel Luiset
* Wim Osterholt
* Antonio Palama (old DOS port)
* Thomas Pundt
* Marcelo Roccasalva
* Ilya Rybkin
* Vadim Sinolits
* Jon Stevens
* Adam Tla/lka
9.2 Do I dare to use a development version?
I am afraid you have to answer to this question yourself. Development
versions seldom cause data loss but they have usually got many bugs.
It's up to you to judge whether new features outweight the bugs.
9.3 How can I report a bug/request for a feature?
You might first want to get the newest development version to see if
the bug is fixed or the feature is added already.
Send your report/request to mc-devel@roxanne.nuclecu.unam.mx or
mc@roxanne.nuclecu.unam.mx. These mailing lists are the most certain
way to contact the developers. Remember to mention if you are not on
the mailing list to make sure that you will receive a copy of replies.
Give as much details as possible. A too long message is a lot better
than a too short message.
For segmentation faults a stack backtrace is appreciated. You can
produce stack backtrace as follows:
* If segmentation fault produced a core file:
1. Load the core file by typing "gdb mc core" or "dbx mc core".
2. Type "where".
3. Cut and paste the results to your message.
* If segmentation fault didn't produce a core file:
1. Load mc by typing "gdb mc" or "dbx mc".
2. Start mc by typing "run".
3. Try to reproduce the segmentation fault by doing whatever you
did last time when the segmentation fault occurred.
4. Type "where".
5. Cut and paste the results to your message.
6. For the future you might want to check out what is the
command in your shell to allow producing of the core files.
Usually it is "limit coredumpsize unlimited" or "ulimit
coredumpsize" or "ulimit -c unlimited".
9.4 How can I join the development?
To join the development just code the feature you want to add and send
your patch for inclusion. Email address is mc-devel@nuclecu.unam.mx.
Before you start coding check the latest development version. It might
be that your feature has already been implemented.
Note that the authors of the Midnight Commander have given all their
rights on the program to the Free Software Foundation. You will have
to do the same if you contribute non-trivial patches. Otherwise we
have to reject your patches in order to avoid copyright problems.
10 More information
10.1 [UPDATED] This document didn't answer my question. Where else can I look
for an answer?
Read messages from the Discussion (mailing list archive), search the
web site or read the Manual.
Upgrade to a newer version of Midnight Commander. Many problems are
fixed in the new versions.
If you still can't find an answer, post your question to the Midnight
Commander mailing list. Its address is mc@nuclecu.unam.mx.
10.2 What mailing lists are there for Midnight Commander?
Following mailing lists discuss about Midnight Commander:
mc
General discussion of the Midnight Commander
mc-digest
The mc list, in digest format
mc-announce
Major announcements about the Commander
mc-patch
The latest Commander patches
mc-devel
Technical development discussion
mc-chat
Non-MC related chatting by the developers (contact Miguel to
subscribe)
To subscribe, send e-mail to majordomo@roxanne.nuclecu.unam.mx with
the following line in the body of the message:
subscribe <list-name> [optional-address]
Replace <list-name> with the name of the list you want to subscribe
and [optional-address] with your email address.
10.3 Where should I look on the World Wide Web for MC stuff?
There is a WWW page for Midnight Commander. The URL is:
http://mc.blackdown.org/mc/
The WWW page features MC screen shots, photographs of the authors,
mailing list archive and a few other things.
10.4 Are the mailing lists archived anywhere?
The mc and mc-devel lists are archived on the World Wide Web page (see
the previous question). Other lists are not currently archived though
Miguel keeps a private archive. Contact him if you want copies of past
messages.
11 Administrivia
11.1 Authorship
Questions and Answers is written by Janne Kukonlehto. Parts of it
originate from Ian Jackson, Miguel de Icaza, Dugan Porter, Norbert
Warmuth and Paul Sheer.
11.2 [UPDATED] File formats
This document is available in HTML, postscript and PDF formats at
http://mc.blackdown.org/mc/answers0.html.
This document is available in ASCII format in the Midnight Commander
source package.
11.3 Feedback is invited
Send your comments about this document to janne@mc.blackdown.org
Send your comments about the Midnight Commander to mc@nuclecu.unam.mx
11.4 Disclaimer and copyright
Note that this document is provided as is. The information in it is
not warranted to be correct; you use it at your own risk.
You can use Questions and Answers according to GNU Public License (see
the COPYING file in the Midnight Commander source distribution).
Questions and Answers is not public domain.
__________________________________________________________________
This document is maintained by Janne Kukonlehto
<janne@mc.blackdown.org>.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -