mc.1.in 129 KB

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