mc.1.in 130 KB

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