mc.1.in 114 KB

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