mc.1.in 113 KB

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