mc.1.in 113 KB

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