mc.1.in 99 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206
  1. .TH mc 1 "30 October 1998"
  2. .\"SKIP_SECTION"
  3. .SH NAME
  4. mc \- Visual shell for Unix-like systems.
  5. .\"SKIP_SECTION"
  6. .SH USAGE
  7. .B mc
  8. [\-abcCdfhPstuUVx?] [\-l log] [dir1 [dir2]] [-v file]
  9. .SH DESCRIPTION
  10. .LP
  11. The Midnight Commander is a directory browser/file manager for
  12. Unix-like operating systems.
  13. .\".\"DONT_SPLIT"
  14. .SH OPTIONS
  15. .TP
  16. .I "\-a"
  17. Disables the usage of graphic characters for line drawing.
  18. .TP
  19. .I "\-b"
  20. Forces black and white display.
  21. .TP
  22. .I "\-c"
  23. Force color mode, please check the section
  24. .\"LINK2"
  25. Colors
  26. .\"Colors"
  27. for more information.
  28. .TP
  29. .I "\-C arg"
  30. Used to specify a different color set in the command line. The format
  31. of arg is documented in the
  32. .\"LINK2"
  33. Colors
  34. .\"Colors"
  35. section.
  36. .TP
  37. .I "\-d"
  38. Disables mouse support.
  39. .TP
  40. .I "\-f"
  41. Displays the compiled-in search paths for Midnight Commander files.
  42. .TP
  43. .I "\-k"
  44. Reset softkeys to their default from the termcap/terminfo
  45. database. Only useful on HP terminals when the function keys don't work.
  46. .TP
  47. .I "-l file"
  48. Save the ftpfs dialog with the server in file.
  49. .TP
  50. .I "\-P"
  51. At program end, the Midnight Commander will print the last working
  52. directory. This function should not be used directly, instead, it should
  53. be used from a special shell function that will automatically change the
  54. current directory of the shell to the last directory the Midnight
  55. Commander was in (thanks to Torben Fjerdingstad and Sergey for
  56. contributing this function and the code implementing this option).
  57. Source the files
  58. .B @prefix@/lib/mc/bin/mc.sh
  59. (bash and zsh users) respectively
  60. .B @prefix@/lib/mc/bin/mc.csh
  61. (tcsh users) in order to have this function defined.
  62. .TP
  63. .I "\-s"
  64. Turns on the slow terminal mode, in this mode the program will not
  65. draw expensive line drawing characters and will toggle verbose mode
  66. off.
  67. .TP
  68. .I "\-t"
  69. Used only if the code was compiled with Slang and terminfo: it makes
  70. the Midnight Commander use the value of the
  71. .B TERMCAP
  72. variable for the terminal information instead of the information on
  73. the system wide terminal database
  74. .TP
  75. .I "\-u"
  76. Disables the use of a concurrent shell (only makes sense if the
  77. Midnight Commander has been built with concurrent shell support).
  78. .TP
  79. .I "\-U"
  80. Enables the use of the concurrent shell support (only makes sense if
  81. the Midnight Commander was built with the subshell support set as an
  82. optional feature).
  83. .TP
  84. .I "\-v file"
  85. Enters the internal viewer to view the file specified.
  86. .TP
  87. .I "\-V"
  88. Displays the version of the program.
  89. .TP
  90. .I "\-x"
  91. Forces xterm mode. Used when running on xterm-capable terminals (two
  92. screen modes, and able to send mouse escape sequences).
  93. .PP
  94. If specified, the first path name is the directory to show in the
  95. selected panel; the second path name is the directory to be shown in
  96. the other panel.
  97. .PP
  98. .SH "Overview"
  99. The screen of the Midnight Commander is divided into four parts. Almost
  100. all of the screen space is taken up by two directory panels. By default,
  101. the second bottommost line of the screen is the shell command line, and
  102. the bottom line shows the function key labels. The topmost line is the
  103. .\"LINK2"
  104. menu bar line.
  105. .\"Menu Bar"
  106. The menu bar line may not be visible, but appears if you click the
  107. topmost line with the mouse or press the F9 key.
  108. .PP
  109. The Midnight Commander provides a view of two directories at the same
  110. time. One of the panels is the current panel (a selection bar is in
  111. the current panel). Almost all operations take place on the current
  112. panel. Some file operations like Rename and Copy by default use the
  113. directory of the unselected panel as a destination (don't worry, they
  114. always ask you for confirmation first). For more information, see the
  115. sections on the
  116. .\"LINK2"
  117. Directory Panels,
  118. .\"Directory Panels"
  119. the
  120. .\"LINK2"
  121. Left and Right Menus
  122. .\"Left and Right Menus"
  123. and the
  124. .\"LINK2"
  125. File Menu.
  126. .\"File Menu"
  127. .PP
  128. You can execute system commands from the Midnight Commander by simply
  129. typing them. Everything you type will appear on the shell command line,
  130. and when you press Enter the Midnight Commander will execute the
  131. command line you typed; read the
  132. .\"LINK2"
  133. Shell Command Line
  134. .\"Shell Command Line"
  135. and
  136. .\"LINK2"
  137. Input Line Keys
  138. .\"Input Line Keys"
  139. sections to learn more about the command line.
  140. .PP
  141. .SH "Mouse Support"
  142. The Midnight Commander comes with mouse support. It is activated
  143. whenever you are running on an
  144. .B xterm(1)
  145. terminal (it even works if you take a telnet or rlogin connection to
  146. another machine from the xterm) or if you are running on a Linux
  147. console and have the
  148. .B gpm
  149. mouse server running.
  150. .PP
  151. When you left click on a file in the directory panels, that file is
  152. selected; if you click with the right button, the file is marked (or
  153. unmarked, depending on the previous state).
  154. .PP
  155. Double-clicking on a file will try to execute the command if it is
  156. an executable program; and if the
  157. .\"LINK2"
  158. extension file
  159. .\"Extension File Edit"
  160. has a program specified for the file's extension, the specified
  161. program is executed.
  162. .PP
  163. Also, it is possible to execute the commands assigned to the function
  164. key labels by clicking on them.
  165. .PP
  166. If a mouse button is clicked on the top frame line of the directory
  167. panel, it is scrolled one pageful backward. Correspondingly, a click on
  168. the bottom frame line will cause a scroll of one pageful forward. This
  169. frame line method works also in the
  170. .\"LINK2"
  171. Help Viewer
  172. .\"Help"
  173. and the
  174. .\"LINK2"
  175. Directory Tree.
  176. ."Directory Tree"
  177. .PP
  178. The default auto repeat rate for the mouse buttons is 400
  179. milliseconds. This may be changed to other values by editing the
  180. .\"LINK2"
  181. \&~/.mc/ini
  182. .\"Save Setup"
  183. file and changing the
  184. .I mouse_repeat_rate
  185. parameter.
  186. .PP
  187. If you are running the Commander with the mouse support, you can bypass
  188. the Commander and get the default mouse behavior (cutting and pasting
  189. text) by holding down the Shift key.
  190. .SH ""
  191. .SH "Keys"
  192. Some commands in the Midnight Commander involve the use of the
  193. .I Control
  194. (sometimes labeled CTRL or CTL) and the
  195. .I Meta
  196. (sometimes labeled ALT or even Compose) keys. In this manual we will
  197. use the following abbreviations:
  198. .PP
  199. C-<chr> means hold the Control key while typing the character
  200. <chr>. Thus C-f would be: hold the Control key and type f.
  201. .PP
  202. M-<chr> means hold the Meta or Alt key down while typing <chr>. If
  203. there is no Meta or Alt key, type ESC, release it, then type the
  204. character <chr>.
  205. .PP
  206. All input lines in the Midnight Commander use an approximation to
  207. the GNU Emacs editor's key bindings.
  208. .PP
  209. There are many sections which tell about the keys. The following are
  210. the most important.
  211. .PP
  212. The
  213. .\"LINK2"
  214. File Menu
  215. .\"File Menu"
  216. section documents the keyboard shortcuts for the commands appearing in
  217. the File menu. This section includes the function keys. Most of these
  218. commands perform some action, usually on the selected file or the
  219. tagged files.
  220. .PP
  221. The
  222. .\"LINK2"
  223. Directory Panels
  224. .\"Directory Panels"
  225. section documents the keys which select a file or tag files as a
  226. target for a later action (the action is usually one from the file
  227. menu).
  228. .PP
  229. The
  230. .\"LINK2"
  231. Shell Command Line
  232. .\"Shell Command Line"
  233. section list the keys which are used for entering and editing command
  234. lines. Most of these copy file names and such from the directory
  235. panels to the command line (to avoid excessive typing) or access the
  236. command line history.
  237. .PP
  238. .\"LINK2"
  239. Input Line Keys
  240. .\"Input Line Keys"
  241. are used for editing input lines. This means both the command line and
  242. the input lines in the query dialogs.
  243. .PP
  244. .SH " Miscellaneous Keys"
  245. Here are some keys which don't fall into any of the other categories:
  246. .PP
  247. .B Enter.
  248. If there is some text in the command line (the one at the bottom of
  249. the panels), then that command is executed. If there is no text in the
  250. command line then if the selection bar is over a directory the
  251. Midnight Commander does a
  252. .B chdir(2)
  253. to the selected directory and reloads the information on the panel;
  254. if the selection is an executable file then it is executed. Finally,
  255. if the extension of the selected file name matches one of the
  256. extensions in the
  257. .\"LINK2"
  258. extensions file
  259. .\"Extension File Edit"
  260. then the corresponding command is executed.
  261. .PP
  262. .B C-l.
  263. Repaint all the information in the Midnight Commander.
  264. .PP
  265. .B C-x c.
  266. Run the
  267. .\"LINK2"
  268. Chmod
  269. .\"Chmod"
  270. command on a file or on the tagged files.
  271. .PP
  272. .B C-x o.
  273. Run the
  274. .\"LINK2"
  275. Chown
  276. .\"Chown"
  277. command on the current file or on the tagged files.
  278. .PP
  279. .B C-x l.
  280. Run the link command.
  281. .PP
  282. .B C-x s.
  283. Run the symbolic link command.
  284. .PP
  285. .B C-x i.
  286. Set the other panel display mode to information.
  287. .PP
  288. .B C-x q.
  289. Set the other panel display mode to quick view.
  290. .PP
  291. .B C-x !.
  292. Execute the
  293. .\"LINK2"
  294. External panelize
  295. .\"External panelize"
  296. command.
  297. .PP
  298. .B C-x h
  299. Run the
  300. .\"LINK2"
  301. add directory to hotlist
  302. .\"Hotlist"
  303. command.
  304. .PP
  305. .B M-!,
  306. Executes the Filtered view command, described in the
  307. .\"LINK2"
  308. view command.
  309. .\"Internal File Viewer"
  310. .PP
  311. .B M-?,
  312. Executes the
  313. .\"LINK2"
  314. Find file
  315. .\"Find File"
  316. command.
  317. .PP
  318. .B M-c,
  319. Pops up the
  320. .\"LINK2"
  321. quick cd
  322. .\"Quick cd"
  323. dialog.
  324. .PP
  325. .B C-o,
  326. When the program is being run in the Linux or SCO console or under an xterm,
  327. it will show you the output of the previous command. When ran on the
  328. Linux console, the Midnight Commander uses an external program
  329. (cons.saver) to handle saving and restoring of information on the
  330. screen.
  331. .PP
  332. When the subshell support is compiled in, you can type C-o at any time
  333. and you will be taken back to the Midnight Commander main screen, to
  334. return to your application just type C-o. If you have an application
  335. suspended by using this trick, you won't be able to execute other
  336. programs from the Midnight Commander until you terminate the suspended
  337. application.
  338. .PP
  339. .SH " Directory Panels"
  340. This section lists the keys which operate on the directory panels. If
  341. you want to know how to change the appearance of the panels take a
  342. look at the section on
  343. .\"LINK2"
  344. Left and Right Menus.
  345. .\"Left and Right Menus"
  346. .PP
  347. .B Tab, C-i.
  348. Change the current panel. The old other panel becomes the new current
  349. panel and the old current panel becomes the new other panel. The
  350. selection bar moves from the old current panel to the new current
  351. panel.
  352. .PP
  353. .B Insert, C-t.
  354. To tag files you may use the Insert key (the kich1 terminfo sequence)
  355. or the C-t (Control-t) sequence. To untag files, just retag a tagged
  356. file.
  357. .PP
  358. .B M-g, M-h (or M-r), M-j.
  359. Used to select the top file in a panel, the middle file and the bottom one,
  360. respectively.
  361. .PP
  362. .B C-s, M-s.
  363. Start a filename search in the directory listing. When the search is
  364. active the keypresses will be added to the search string instead of
  365. the command line. If the
  366. .I "Show mini-status"
  367. option is enabled the search string is shown on the mini-status
  368. line. When typing, the selection bar will move to the next file
  369. starting with the typed letters. The
  370. .I "backspace" or DEL
  371. keys can be used to correct typing mistakes. If C-s is pressed
  372. again, the next match is searched for.
  373. .PP
  374. .B M-t
  375. Toggle the current display listing to show the next display listing
  376. mode. With this it is possible to quickly switch from long listing
  377. to regular listing and the user defined listing mode.
  378. .PP
  379. .B C-\\\\ (control-backslash).
  380. Show the
  381. .\"LINK2"
  382. directory hotlist
  383. .\"Hotlist"
  384. and change to the selected directory.
  385. .PP
  386. .B + \ (plus).
  387. This is used to select (tag) a group of files. The Midnight Commander
  388. will prompt for a regular expression describing the group. When
  389. .I Shell Patterns
  390. are enabled, the regular expression is much like the regular
  391. expressions in the shell (* standing for zero or more characters and ?
  392. standing for one character). If
  393. .I Shell Patterns
  394. is off, then the tagging of files is done with normal regular
  395. expressions (see ed (1)).
  396. .PP
  397. If the expression starts or ends with a slash (/), then it will select
  398. directories instead of files.
  399. .PP
  400. .B \\\\ (backslash).
  401. Use the "\\" key to unselect a group of files. This is the opposite of
  402. the Plus key.
  403. .PP
  404. .B up-key, C-p.
  405. Move the selection bar to the previous entry in the panel.
  406. .PP
  407. .B down-key, C-n.
  408. Move the selection bar to the next entry in the panel.
  409. .PP
  410. .B home, a1, M-<.
  411. Move the selection bar to the first entry in the panel.
  412. .PP
  413. .B end, c1, M->.
  414. Move the selection bar to the last entry in the panel.
  415. .PP
  416. .B next-page, C-v.
  417. Move the selection bar one page down.
  418. .PP
  419. .B prev-page, M-v.
  420. Move the selection bar one page up.
  421. .PP
  422. .B M-o,
  423. If the other panel is a listing panel and you are standing on a
  424. directory in the current panel, then the other panel contents are set
  425. to the contents of the currently selected directory (like Emacs' dired
  426. C-o key) otherwise the other panel contents are set to the parent dir
  427. of the current dir.
  428. .PP
  429. .B C-PageUp, C-PageDown
  430. Only when ran on the Linux console: does a chdir to ".." and to the
  431. currently selected directory respectively.
  432. .PP
  433. .B M-y
  434. Moves to the previous directory in the history, equivalent
  435. to depressing the '<' with the mouse.
  436. .PP
  437. .B M-u
  438. Moves to the next directory in the history, equivalent
  439. to depressing the '>' with the mouse.
  440. .BM-S-h, M-H
  441. Displays the directory history, equivalent to depressing the 'v' with
  442. the mouse.
  443. .PP
  444. .SH " Shell Command Line"
  445. This section lists keys which are useful to avoid excessive typing when
  446. entering shell commands.
  447. .PP
  448. .B M-Enter.
  449. Copy the currently selected file name to the command line.
  450. .PP
  451. .B C-Enter.
  452. Same a M-Enter, this one only works on the Linux console.
  453. .PP
  454. .B M-Tab.
  455. Does the filename, command, variable, username and hostname
  456. .\"LINK2"
  457. completion
  458. .\"Completion"
  459. for you.
  460. .PP
  461. .B C-x t, C-x C-t.
  462. Copy the tagged files (or if there are no tagged files, the selected
  463. file) of the current panel (C-x t) or of the other panel (C-x C-t) to
  464. the command line.
  465. .PP
  466. .B C-x p, C-x C-p.
  467. The first key sequence copies the current path name to the command
  468. line, and the second one copies the unselected panel's path name to
  469. the command line.
  470. .PP
  471. .B C-q.
  472. The quote command can be used to insert characters that are otherwise
  473. interpreted by the Midnight Commander (like the '+' symbol)
  474. .PP
  475. .B M-p, M-n.
  476. Use these keys to browse through the command history. M-p takes you
  477. to the last entry, M-n takes you to the next one.
  478. .PP
  479. .B M-h.
  480. Displays the history for the current input line.
  481. .PP
  482. .SH " General Movement Keys"
  483. The help viewer, the file viewer and the directory tree use common
  484. code to handle moving. Therefore they accept exactly the same
  485. keys. Each of them also accepts some keys of its own.
  486. .PP
  487. Other parts of the Midnight Commander use some of the same movement
  488. keys, so this section may be of use for those parts too.
  489. .PP
  490. .B Up, C-p.
  491. Moves one line backward.
  492. .PP
  493. .B Down, C-n.
  494. Moves one line forward.
  495. .PP
  496. .B Prev Page, Page Up, M-v.
  497. Moves one pageful backward.
  498. .PP
  499. .B Next Page, Page Down, C-v.
  500. Moves one pageful forward.
  501. .PP
  502. .B Home, A1.
  503. Moves to the beginning.
  504. .PP
  505. .B End, C1.
  506. Move to the end.
  507. .PP
  508. The help viewer and the file viewer accept the following keys in
  509. addition the to ones mentioned above:
  510. .PP
  511. .B b, C-b, C-h, Backspace, Delete.
  512. Moves one pageful backward.
  513. .PP
  514. .B Space bar.
  515. Moves one pageful forward.
  516. .PP
  517. .B u, d.
  518. Moves one half of a page backward or forward.
  519. .PP
  520. .B g, G.
  521. Moves to the beginning or to the end.
  522. .PP
  523. .SH " Input Line Keys"
  524. The input lines (they are used for the
  525. .\"LINK2"
  526. command line
  527. .\"Shell Command Line"
  528. and for the query dialogs in the program) accept these keys:
  529. .PP
  530. .B C-a
  531. puts the cursor at the beginning of line.
  532. .PP
  533. .B C-e
  534. puts the cursor at the end of the line.
  535. .PP
  536. .B C-b, move-left
  537. move the cursor one position left.
  538. .PP
  539. .B C-f, move-right
  540. move the cursor one position right.
  541. .PP
  542. .B M-f
  543. moves one word forward.
  544. .PP
  545. .B M-b
  546. moves one word backward.
  547. .PP
  548. .B C-h, backspace
  549. delete the previous character.
  550. .PP
  551. .B C-d, Delete
  552. delete the character in the point (over the cursor).
  553. .PP
  554. .B C-@
  555. sets the mark for cutting.
  556. .PP
  557. .B C-w
  558. copies the text between the cursor and the mark to a kill buffer and
  559. removes the text from the input line.
  560. .PP
  561. .B M-w
  562. copies the text between the cursor and the mark to a kill buffer.
  563. .PP
  564. .B C-y
  565. yanks back the contents of the kill buffer.
  566. .PP
  567. .B C-k
  568. kills the text from the cursor to the end of the line.
  569. .PP
  570. .B M-p, M-n
  571. Use these keys to browse through the command history. M-p takes you
  572. to the last entry, M-n takes you to the next one.
  573. .PP
  574. .B M-C-h, M-Backspace
  575. delete one word backward.
  576. .PP
  577. .B M-Tab
  578. does the filename, command, variable, username and hostname
  579. .\"LINK2"
  580. completion
  581. .\"Completion"
  582. for you.
  583. .PP
  584. .SH ""
  585. .SH "Menu Bar"
  586. The menu bar pops up when you press F9 or click the mouse on the top
  587. row of the screen. The menu bar has five menus: "Left", "File",
  588. "Command", "Options" and "Right".
  589. .PP
  590. The
  591. .\"LINK2"
  592. Left and Right Menus
  593. .\"Left and Right Menus"
  594. allow you to modify the appearance of the left and right directory
  595. panels.
  596. .PP
  597. The
  598. .\"LINK2"
  599. File Menu
  600. .\"File Menu"
  601. lists the actions you can perform on the currently selected file or
  602. the tagged files.
  603. .PP
  604. The
  605. .\"LINK2"
  606. Command Menu
  607. .\"Command Menu"
  608. lists the actions which are more general and bear no relation to the
  609. currently selected file or the tagged files.
  610. .PP
  611. .SH " Left and Right Menus"
  612. The outlook of the directory panels can be changed from the
  613. .B "Left"
  614. and
  615. .B "Right"
  616. menus.
  617. .PP
  618. .SH " Listing Mode..."
  619. The listing mode view is used to display a listing of files, there are
  620. four different listing modes available:
  621. .B Full,
  622. .B Brief,
  623. .B Long,
  624. and
  625. .B User.
  626. The full directory view shows the file name, the size of the file and
  627. the modification time.
  628. .PP
  629. The brief view shows only the file name and it has two columns
  630. (therefore showing twice as many files as other views). The long view
  631. is similar to the output of
  632. .B "ls -l"
  633. command. The long view takes the whole screen width.
  634. .PP
  635. If you choose the "User" display format, then you have to specify
  636. the display format.
  637. .PP
  638. The user display format must start with a panel size specifier. This
  639. may be "half" or "full", and they specify a half screen panel and a
  640. full screen panel respectively.
  641. .PP
  642. After the panel size, you may specify the two columns mode on the
  643. panel, this is done by adding the number "2" to the user format
  644. string.
  645. .PP
  646. After this you add the name of the fields with an optional size
  647. specifier. This are the available fields you may display:
  648. .PP
  649. .B name,
  650. displays the file name.
  651. .PP
  652. .B size,
  653. displays the file size.
  654. .PP
  655. .B bsize,
  656. is an alternative form of the
  657. .B size
  658. format. It displays the size of the files and for directories it just
  659. shows SUB-DIR or UP--DIR.
  660. .PP
  661. .B type,
  662. displays a one character field type. This character is a superset of what
  663. is displayed by ls with the -F flag. An asterisk for executable
  664. files, a slash for directories, an at-sign for links, an equal sign
  665. for sockets, a hyphen for character devices, a plus sign for block devices,
  666. a pipe for fifos, a tilde for symbolic links to directories and an
  667. exclamation mark for stalled symlinks (links that point nowhere).
  668. .PP
  669. .B mtime,
  670. file's last modification time.
  671. .PP
  672. .B atime,
  673. file's last access time.
  674. .PP
  675. .B ctime,
  676. file's creation time.
  677. .PP
  678. .B perm,
  679. a string representing the current permission bits of the file.
  680. .PP
  681. .B mode,
  682. an octal value with the current permission bits of the file.
  683. .PP
  684. .B nlink,
  685. the number of links to the file.
  686. .PP
  687. .B ngid,
  688. the GID (numeric).
  689. .PP
  690. .B nuid,
  691. the UID (numeric).
  692. .PP
  693. .B owner,
  694. the owner of the file.
  695. .PP
  696. .B group,
  697. the group of the file.
  698. .PP
  699. .B inode,
  700. the inode of the file.
  701. .PP
  702. Also you may use these field names for arranging the display:
  703. .PP
  704. .B space,
  705. a space in the display format.
  706. .PP
  707. .B mark,
  708. An asterisk if the file is tagged, a space if it's not.
  709. .PP
  710. .B |,
  711. This character is used to add a vertical line to the display format.
  712. .PP
  713. To force one field to a fixed size (a size specifier), you just add
  714. a ':' and then the number of characters you want the field to have, if
  715. the number is followed by the symbol '+', then the size specifies the
  716. minimum field size, if the program finds out that there is more space
  717. on the screen, it will then expand this field.
  718. .PP
  719. For example, the
  720. .B Full
  721. display corresponds to this format:
  722. .PP
  723. half type,name,|,size,|,mtime
  724. .PP
  725. And the
  726. .B Long
  727. display corresponds to this format:
  728. .PP
  729. full perm,space,nlink,space,owner,space,group,space,size,space,
  730. mtime,space,name
  731. .PP
  732. This is a nice user display format:
  733. .PP
  734. half name,|,size:7,|,type,mode:3
  735. .PP
  736. Panels may also be set to the following modes:
  737. .TP
  738. .B "Info"
  739. The info view display information related to the currently
  740. selected file and if possible information about the current file
  741. system.
  742. .TP
  743. .B "Tree"
  744. The tree view is quite similar to the
  745. .\"LINK2"
  746. directory tree
  747. .\"Directory Tree"
  748. feature. See the section about it for more information.
  749. .TP
  750. .B "Quick View"
  751. In this mode, the panel will switch to a reduced
  752. .\"LINK2"
  753. viewer
  754. .\"Internal File Viewer"
  755. that displays the contents of the currently selected file, if you
  756. select the panel (with the tab key or the mouse), you will have access
  757. to the usual viewer commands.
  758. .PP
  759. .SH " Sort Order..."
  760. The eight sort orders are by name, by extension, by modification time,
  761. by access time, and by inode information modification time, by size,
  762. by inode and unsorted. In the Sort order dialog box you can choose
  763. the sort order and you may also specify if you want to sort in reverse
  764. order by checking the reverse box.
  765. .PP
  766. By default directories are sorted before files but this can be changed
  767. from the
  768. .\"LINK2"
  769. Options menu
  770. .\"Options Menu"
  771. (option
  772. .B "Mix all files"
  773. ).
  774. .PP
  775. .SH " Filter..."
  776. The filter command allows you to specify a shell pattern (for example
  777. .B "*.tar.gz"
  778. ) which the files must match to be shown. Regardless
  779. of the filter pattern, the directories and the links to directories
  780. are always shown in the directory panel.
  781. .PP
  782. .SH " Reread"
  783. The reread command reload the list of files in the directory. It is
  784. useful if other processes have created or removed files. If you
  785. have panelized file names in a panel this will reload the directory
  786. contents and remove the panelized information (See the section
  787. .\"LINK2"
  788. External panelize
  789. .\"External panelize"
  790. for more information).
  791. .PP
  792. .SH " File Menu"
  793. The Midnight Commander uses the F1 - F10 keys as keyboard shortcuts
  794. for commands appearing in the file menu. The escape sequences for the
  795. Fkeys are terminfo capabilities kf1 trough kf10. On terminals without
  796. function key support, you can achieve the same functionality by
  797. pressing the ESC key and then a number in the range 1 through 9 and 0
  798. (corresponding to F1 to F9 and F10 respectively).
  799. .PP
  800. The File menu has the following commands (keyboard shortcuts in parentheses):
  801. .PP
  802. .B Help (F1)
  803. .PP
  804. Invokes the built-in hypertext help viewer. Inside the
  805. .\"LINK2"
  806. help viewer,
  807. .\"Help"
  808. you can use the Tab key to select the next link and the Enter key to
  809. follow that link. The keys Space and Backspace are used to move
  810. forward and backward in a help page. Press F1 again to get the full
  811. list of accepted keys.
  812. .PP
  813. .B Menu (F2)
  814. .PP
  815. Invoke the
  816. .\"LINK2"
  817. user menu.
  818. .\"Menu File Edit"
  819. The user menu provides an easy way to provide users with a menu and
  820. add extra features to the Midnight Commander.
  821. .PP
  822. .B View (F3, Shift-F3)
  823. .PP
  824. View the currently selected file. By default this invokes the
  825. .\"LINK2"
  826. Internal File Viewer
  827. .\"Internal File Viewer"
  828. but if the option "Use internal view" is off, it invokes an external
  829. file viewer specified by the
  830. .B PAGER
  831. environment variable. If
  832. .B PAGER
  833. is undefined, the "view" command is invoked. If you use Shift-F3
  834. instead, the viewer will be invoked without doing any formatting or
  835. preprocessing to the file.
  836. .PP
  837. .B Filtered View (M-!)
  838. .PP
  839. this command prompts for a command
  840. and it's arguments (the argument defaults to the currently selected
  841. file name), the output from such command is shown in the internal file
  842. viewer.
  843. .PP
  844. .B Edit (F4)
  845. .PP
  846. Currently it invokes the
  847. .B vi
  848. editor, or the editor specified in the
  849. .B EDITOR
  850. environment variable, or the
  851. .\"LINK2"
  852. Internal File Editor
  853. .\"Internal File Editor"
  854. if the use_internal_edit option is on.
  855. .PP
  856. .B Copy (F5)
  857. .PP
  858. Pop up an input dialog with destination that defaults to the directory
  859. in the non-selected panel and copies the currently selected file (or
  860. the tagged files, if there is at least one file tagged) to the
  861. directory specified by the user in the input dialog. During this
  862. process, you can press C-c or ESC to abort the operation. For details
  863. about source mask (which will be usually either * or ^\\(.*\\)$ depending
  864. on setting of Use shell patterns) and possible wildcards in the destination
  865. see
  866. .\"LINK2"
  867. Mask copy/rename.
  868. .\"Mask Copy/Rename"
  869. .PP
  870. On some systems, it is possible to do the copy in the background by
  871. clicking on the background button (or pressing M-b in the dialog
  872. box). The
  873. .\"LINK2"
  874. Background Jobs
  875. .\"Background Jobs"
  876. is used to control the background process.
  877. .PP
  878. .B Link (C-x l)
  879. .PP
  880. Create a hard link to the current file.
  881. .PP
  882. .B SymLink (C-x s)
  883. .PP
  884. Create a symbolic link to the current file. To those of you who don't
  885. know what links are: creating a link to a file is a bit like copying
  886. the file, but both the source filename and the destination filename
  887. represent the same file image. For example, if you edit one of these
  888. files, all changes you make will appear in both files. Some people call
  889. links aliases or shortcuts.
  890. .PP
  891. A hard link appears as a real file. After making it, there is no way of
  892. telling which one is the original and which is the link. If you delete
  893. either one of them the other one is still intact. It is very difficult
  894. to notice that the files represent the same image. Use hard links when
  895. you don't even want to know.
  896. .PP
  897. A symbolic link is a reference to the name of the original file. If
  898. the original file is deleted the symbolic link is useless. It is quite
  899. easy to notice that the files represent the same image. The Midnight
  900. Commander shows an "@"-sign in front of the file name if it is a
  901. symbolic link to somewhere (except to directory, where it shows a tilde (~)).
  902. The original file which the link points to is shown on mini-status line if the
  903. .I "Show mini-status"
  904. option is enabled. Use symbolic links when you want to avoid the
  905. confusion that can be caused by hard links.
  906. .PP
  907. .B Rename/Move (F6)
  908. .PP
  909. Pop up an input dialog that defaults to the directory in the
  910. non-selected panel and moves the currently selected file (or the
  911. tagged files if there is at least one tagged file) to the directory
  912. specified by the user in the input dialog. During the process, you
  913. can press C-c or ESC to abort the operation. For more details look at Copy
  914. operation above, most of the things are quite similar.
  915. .PP
  916. On some systems, it is possible to do the copy in the background by
  917. clicking on the background button (or pressing M-b in the dialog
  918. box). The
  919. .\"LINK2"
  920. Background Jobs
  921. .\"Background Jobs"
  922. is used to control the background process.
  923. .PP
  924. .B Mkdir (F7)
  925. .PP
  926. Pop up an input dialog and creates the directory specified.
  927. .PP
  928. .B Delete (F8)
  929. .PP
  930. Delete the currently selected file or the tagged files in the
  931. currently selected panel. During the process, you can press C-c or
  932. ESC to abort the operation.
  933. .PP
  934. .B Quick cd (M-c)
  935. Use the
  936. .\"LINK2"
  937. quick cd
  938. .\"Quick cd"
  939. command if you have full command line and want to cd somewhere.
  940. .PP
  941. .B Select group (+)
  942. .PP
  943. This is used to select (tag) a group of files. The Midnight Commander
  944. will prompt for a regular expression describing the group. When
  945. .I Shell Patterns
  946. are enabled, the regular expression is much like the filename globbing
  947. in the shell (* standing for zero or more characters and ? standing
  948. for one character). If
  949. .I Shell Patterns
  950. is off, then the tagging of files is done with normal regular
  951. expressions (see ed (1)).
  952. .PP
  953. To mark directories instead of files, the expression must start or end
  954. with a '/'.
  955. .PP
  956. .B Unselect group (\\\\)
  957. .PP
  958. Used for unselecting a group of files. This is the opposite of the
  959. .I "Select group"
  960. command.
  961. .PP
  962. .B Quit (F10, Shift-F10)
  963. .PP
  964. Terminate the Midnight Commander. Shift-F10 is used when you want to
  965. quit and you are using the shell wrapper. Shift-F10 will not take you
  966. to the last directory you visited with the Midnight Commander, instead
  967. it will stay at the directory where you started the Midnight Commander.
  968. .PP
  969. .SH " Quick cd"
  970. This command is useful if you have a full command line and want to
  971. .\"LINK2"
  972. cd
  973. .\"The cd internal command"
  974. somewhere without having to yank and paste the command line. This command
  975. pops up a small dialog, where you enter everything you would enter after
  976. .B cd
  977. on the command line and then you press enter. This features all the things
  978. that are already in the
  979. .\"LINK2"
  980. internal cd command.
  981. .\"The cd internal command"
  982. .PP
  983. .SH " Command Menu"
  984. The
  985. .\"LINK2"
  986. Directory tree
  987. .\"Directory Tree"
  988. command shows a tree figure of the directories.
  989. .PP
  990. The
  991. .\"LINK2"
  992. Find file
  993. .\"Find File"
  994. command allows you to search for a specific file. The "Swap panels"
  995. command swaps the contents of the two directory panels.
  996. .PP
  997. The "Panels on/off" command shows the output of the last shell
  998. command. This works only on xterm and on Linux and SCO console.
  999. .PP
  1000. The Compare directories (C-x d) command compares the directory
  1001. panels with each other. You can then use the Copy (F5) command to make
  1002. the panels identical. There are three compare methods. The quick method
  1003. compares only file size and file date. The thorough method makes a
  1004. full byte-by-byte compare. The thorough method is not available if the
  1005. machine does not support the mmap(2) system call. The size-only
  1006. compare method just compares the file sizes and does not check the
  1007. contents or the date times, it just checks the file size.
  1008. .PP
  1009. The Command history command shows a list of typed commands. The
  1010. selected command is copied to the command line. The command history
  1011. can also be accessed by typing M-p or M-n.
  1012. .PP
  1013. The
  1014. .\"LINK2"
  1015. Directory hotlist (C-\\)
  1016. .\"Hotlist"
  1017. command makes changing of the current directory to often used directories
  1018. faster.
  1019. .PP
  1020. The
  1021. .\"LINK2"
  1022. External panelize
  1023. .\"External panelize"
  1024. allows you to execute an external program, and
  1025. make the output of that program the contents of the current panel.
  1026. .PP
  1027. .\"LINK2"
  1028. Extension file edit
  1029. .\"Extension File Edit"
  1030. command allows you to specify programs to executed when you try to
  1031. execute, view, edit and do a bunch of other thing on files
  1032. with certain extensions (filename endings). The
  1033. .\"LINK2"
  1034. Menu file edit
  1035. .\"Menu File Edit"
  1036. command may be used for editing the user menu (which appears by
  1037. pressing F2).
  1038. .PP
  1039. .SH " Directory Tree"
  1040. The Directory Tree command shows a tree figure of the directories. You
  1041. can select a directory from the figure and the Midnight Commander will
  1042. change to that directory.
  1043. .PP
  1044. There are two ways to invoke the tree. The real directory tree command
  1045. is available from Commands menu. The other way is to select tree view
  1046. from the Left or Right menu.
  1047. .PP
  1048. To get rid of long delays the Midnight Commander creates the tree
  1049. figure by scanning only a small subset of all the directories. If the
  1050. directory which you want to see is missing, move to its parent
  1051. directory and press C-r (or F2).
  1052. .PP
  1053. You can use the following keys:
  1054. .PP
  1055. .\"LINK2"
  1056. General movement keys
  1057. .\"General Movement Keys"
  1058. are accepted.
  1059. .PP
  1060. .B Enter.
  1061. In the directory tree, exits the directory tree and changes to this
  1062. directory in the current panel. In the tree view, changes to this
  1063. directory in the other panel and stays in tree view mode in the
  1064. current panel.
  1065. .PP
  1066. .B C-r, F2 (Rescan).
  1067. Rescan this directory. Use this when the tree figure is out of date:
  1068. it is missing subdirectories or shows some subdirectories which don't
  1069. exist any more.
  1070. .PP
  1071. .B F3 (Forget).
  1072. Delete this directory from the tree figure. Use this to remove clutter
  1073. from the figure. If you want the directory back to the tree figure
  1074. press F2 in its parent directory.
  1075. .PP
  1076. .B F4 (Static/Dynamic).
  1077. Toggle between the dynamic navigation mode (default) and the static
  1078. navigation mode.
  1079. .PP
  1080. In the static navigation mode you can use the Up and Down keys to
  1081. select a directory. All known directories are shown.
  1082. .PP
  1083. In the dynamic navigation mode you can use the Up and Down keys to
  1084. select a sibling directory, the Left key to move to the parent
  1085. directory, and the Right key to move to a child directory. Only the
  1086. parent, sibling and children directories are shown, others are left
  1087. out. The tree figure changes dynamically as you traverse.
  1088. .PP
  1089. .B F5 (Copy).
  1090. Copy the directory.
  1091. .PP
  1092. .B F6 (RenMov).
  1093. Move the directory.
  1094. .PP
  1095. .B F7 (Mkdir).
  1096. Make a new directory below this directory.
  1097. .PP
  1098. .B F8 (Delete).
  1099. Delete this directory from the file system.
  1100. .PP
  1101. .B C-s, M-s.
  1102. Search the next directory matching the search string. If there is
  1103. no such directory these keys will move one line down.
  1104. .PP
  1105. .B C-h, Backspace.
  1106. Delete the last character of the search string.
  1107. .PP
  1108. .B Any other character.
  1109. Add the character to the search string and move to the next directory
  1110. which starts with these characters. In the tree view you must first
  1111. activate the search mode by pressing C-s. The search string is shown
  1112. in the mini status line.
  1113. .PP
  1114. The following actions are available only in the directory tree. They
  1115. aren't supported in the tree view.
  1116. .PP
  1117. .B F1 (Help).
  1118. Invoke the help viewer and show this section.
  1119. .PP
  1120. .B Esc, F10.
  1121. Exit the directory tree. Do not change the directory.
  1122. .PP
  1123. The mouse is supported. A double-click behaves like Enter. See
  1124. also the section on
  1125. .\"LINK2"
  1126. mouse support.
  1127. .\"Mouse Support"
  1128. .PP
  1129. .SH " Find File"
  1130. The Find File feature first asks for the start directory for the
  1131. search and the filename to be searched for. By pressing the Tree
  1132. button you can select the start directory from the
  1133. .\"LINK2"
  1134. directory tree
  1135. .\"Directory Tree"
  1136. figure.
  1137. .PP
  1138. The contents field accepts regular expressions similar to egrep(1). That
  1139. means you have to escape characters with a special meaning to egrep with "\\",
  1140. e.g. if you search for "strcmp (" you will have to input "strcmp \\("
  1141. (without the double quotes).
  1142. .PP
  1143. You can start the search by pressing the Ok button.
  1144. During the search you can stop from the Stop button and continue from
  1145. the Start button.
  1146. .PP
  1147. You can browse the filelist with the up and down arrow keys. The Chdir
  1148. button will change to the directory of the currently selected
  1149. file. The Again button will ask for the parameters for a new
  1150. search. The Quit button quits the search operation. The Panelize
  1151. button will place the found files to the current directory panel so
  1152. that you can do additional operations on them (view, copy, move,
  1153. delete and so on). After panelizing you can press C-r to return to the
  1154. normal file listing.
  1155. .PP
  1156. It is possible to have a list of directories that the Find File
  1157. command should skip during the search (for example, you may want to
  1158. avoid searches on a CDROM or on a NFS directory that is mounted across
  1159. a slow link).
  1160. .PP
  1161. Directories to be skipped should be set on the variable
  1162. .B find_ignore_dirs
  1163. in the
  1164. .B Misc
  1165. section of your ~/.mc/ini file.
  1166. .PP
  1167. Directory components should be separated with a colon, here is an
  1168. example:
  1169. .PP
  1170. .nf
  1171. [Misc]
  1172. find_ignore_dirs=/cdrom:/nfs/wuarchive:/afs
  1173. .fi
  1174. .PP
  1175. You may consider using the
  1176. .\"LINK2"
  1177. External panelize
  1178. .\"External panelize"
  1179. command for some operations. Find file command is for simple queries
  1180. only, while using External panelize you can do as mysterious searches
  1181. as you would like.
  1182. .PP
  1183. .SH " External panelize"
  1184. The External panelize allows you to execute an external program, and
  1185. make the output of that program the contents of the current panel.
  1186. .PP
  1187. For example, if you want to manipulate in one of the panels all the
  1188. symbolic links in the current directory, you can use external
  1189. panelization to run the following command:
  1190. .PP
  1191. .nf
  1192. find . -type l -print
  1193. .fi
  1194. Upon command completion, the directory contents of the panel will no
  1195. longer be the directory listing of the current directory, but all the
  1196. files that are symbolic links.
  1197. .PP
  1198. If you want to panelize all of the files that have been downloaded
  1199. from your ftp server, you can use this awk command to extract the file
  1200. name from the transfer log files:
  1201. .PP
  1202. .nf
  1203. awk '$9 ~! /incoming/ { print $9 }' < /usr/adm/xferlog
  1204. .fi
  1205. .PP
  1206. You may want to save often used panelize commands under a descriptive name,
  1207. so that you can recall them quickly. You do this by typing the command on
  1208. the input line and pressing Add new button. Then you enter a name under
  1209. which you want the command to be saved. Next time, you just choose that
  1210. command from the list and do not have to type it again.
  1211. .PP
  1212. .SH " Hotlist"
  1213. The Directory hotlist command shows the labels of the directories in the
  1214. directory hotlist. The Midnight Commander will change to the directory
  1215. corresponding to the selected label. From the hotlist dialog, you can remove
  1216. already created label/directory pairs and add new one. For adding you may
  1217. want to use a standalone Add to hotlist command (C-x h), which adds the
  1218. current directory into the directory hotlist, as well. The user is prompted
  1219. for a label for the directory.
  1220. .PP
  1221. This makes cd to often used directories faster. You may consider using the
  1222. CDPATH variable as described in
  1223. .\"LINK2"
  1224. internal cd command
  1225. .\"The cd internal command"
  1226. description.
  1227. .PP
  1228. .SH " Extension File Edit"
  1229. This will invoke your editor on the file ~/.mc/ext. The format of this
  1230. file is as follows (the format has changed with version 3.0):
  1231. .PP
  1232. All lines starting with # or empty lines are thrown away.
  1233. .PP
  1234. Lines starting in the first column should have following format:
  1235. .PP
  1236. .I keyword/descNL,
  1237. i.e. everything after
  1238. .I keyword/
  1239. until new line is
  1240. .I desc
  1241. .PP
  1242. keyword can be:
  1243. .PP
  1244. .I shell
  1245. .IP
  1246. (desc is then any extension (no wildcards), i.e. matches all the files
  1247. *desc . Example: .tar matches *.tar)
  1248. .PP
  1249. .I regex
  1250. .IP
  1251. (desc is a regular expression)
  1252. .PP
  1253. .I type
  1254. .IP
  1255. (file matches this if `file %f` matches regular expression desc
  1256. (the filename: part from `file %f` is removed))
  1257. .PP
  1258. .I default
  1259. .IP
  1260. (matches any file no matter what desc is)
  1261. .PP
  1262. Other lines should start with a space or tab and should be of the format:
  1263. .PP
  1264. .I keyword=commandNL
  1265. (with no spaces around =), where
  1266. .I keyword
  1267. should be:
  1268. .PP
  1269. .I Open
  1270. (if the user presses Enter or doubleclicks it),
  1271. .I View
  1272. (F3),
  1273. .I Edit
  1274. (F4),
  1275. .I Drop
  1276. (user drops some files on it) or any other
  1277. user defined name (those will be listed in the extension dependent pop-up
  1278. menu).
  1279. .I Icon
  1280. name is reserved for future use by mc.
  1281. .PP
  1282. .I command
  1283. is any one-line shell command, with the simple
  1284. .\"LINK2"
  1285. macro substitution.
  1286. .\"Macro Substitution"
  1287. .PP
  1288. Target are evaluated from top to bottom (order is thus important).
  1289. If some actions are missing, search continues as if this target didn't
  1290. match (i.e. if a file matches the first and second entry and View action
  1291. is missing in the first one, then on pressing F3 the View action from
  1292. the second entry will be used. default should catch all the actions.
  1293. .PP
  1294. .SH " Background jobs"
  1295. This lets you control the state of any background Midnight Commander
  1296. process (only copy and move files operations can be done in the
  1297. background). You can stop, restart and kill a background job from
  1298. here.
  1299. .PP
  1300. .SH " Menu File Edit"
  1301. The user menu is a menu of useful actions that can be customized by
  1302. the user. When you access the user menu, the
  1303. file .mc.menu from the current directory is used if it exists,
  1304. but only if it is owned by user or root and is not world-writable.
  1305. If no such file found, ~/.mc/menu is tried in the same way,
  1306. and otherwise mc uses the default system-wide menu
  1307. @prefix@/lib/mc/mc.menu.
  1308. .PP
  1309. The format of the menu file is very simple. Lines that start with
  1310. anything but space or tab are considered entries for the menu (in
  1311. order to be able to use it like a hot key, the first character should
  1312. be a letter). All the lines that start with a space or a tab are the
  1313. commands that will be executed when the entry is selected.
  1314. .PP
  1315. When an option is selected all the command lines of the option are
  1316. copied to a temporary file in the temporary directory (usually
  1317. /usr/tmp) and then that file is executed. This allows the user to put
  1318. normal shell constructs in the menus. Also simple macro substitution
  1319. takes place before executing the menu code. For more information, see
  1320. .\"LINK2"
  1321. macro substitution.
  1322. .\"Macro Substitution"
  1323. .PP
  1324. Here is a sample mc.menu file:
  1325. .PP
  1326. .nf
  1327. A Dump the currently selected file
  1328. od -c %f
  1329. B Edit a bug report and send it to root
  1330. vi /tmp/mail.$$
  1331. mail -s "Midnight Commander bug" root < /tmp/mail.$$
  1332. M Read mail
  1333. emacs -f rmail
  1334. N Read Usenet news
  1335. emacs -f gnus
  1336. H Call the info hypertext browser
  1337. info
  1338. J Copy current directory to other panel recursively
  1339. tar cf - . | (cd %D && tar xvpf -)
  1340. K Make a release of the current subdirectory
  1341. echo -n "Name of distribution file: "
  1342. read tar
  1343. ln -s %d `dirname %d`/$tar
  1344. cd ..
  1345. tar cvhf ${tar}.tar $tar
  1346. = f *.tar.gz | f *.tgz & t n
  1347. X Extract the contents of a compressed tar file
  1348. tar xzvf %f
  1349. .fi
  1350. .PP
  1351. .B Default Conditions
  1352. .PP
  1353. Each menu entry may be preceded by a condition. The condition must
  1354. start from the first column with a '=' character. If the condition is
  1355. true, the menu entry will be the default entry.
  1356. .PP
  1357. .nf
  1358. Condition syntax: = <sub-cond>
  1359. or: = <sub-cond> | <sub-cond> ...
  1360. or: = <sub-cond> & <sub-cond> ...
  1361. Sub-condition is one of following:
  1362. y <pattern> syntax of current file matching pattern?
  1363. for edit menu only.
  1364. f <pattern> current file matching pattern?
  1365. F <pattern> other file matching pattern?
  1366. d <pattern> current directory matching pattern?
  1367. D <pattern> other directory matching pattern?
  1368. t <type> current file of type?
  1369. T <type> other file of type?
  1370. x <filename> is it executable filename?
  1371. ! <sub-cond> negate the result of sub-condition
  1372. .fi
  1373. .PP
  1374. Pattern is a normal shell pattern or a regular expression, according
  1375. to the shell patterns option. You can override the global value of
  1376. the shell patterns option by writing "shell_patterns=x" on the first
  1377. line of the menu file (where "x" is either 0 or 1).
  1378. .PP
  1379. .nf
  1380. Type is one or more of the following characters:
  1381. n not directory
  1382. r regular file
  1383. d directory
  1384. l link
  1385. c char special
  1386. b block special
  1387. f fifo
  1388. s socket
  1389. x executable
  1390. t tagged
  1391. .fi
  1392. .PP
  1393. For example 'rlf' means either regular file, link or fifo. The 't'
  1394. type is a little special because it acts on the panel instead of the
  1395. file. The condition '=t t' is true if there are tagged files in the
  1396. current panel and false if not.
  1397. .PP
  1398. If the condition starts with '=?' instead of '=' a debug trace will be
  1399. shown whenever the value of the condition is calculated.
  1400. .PP
  1401. The conditions are calculated from left to right. This means
  1402. .nf
  1403. = f *.tar.gz | f *.tgz & t n
  1404. .fi
  1405. is calculated as
  1406. .nf
  1407. ( (f *.tar.gz) | (f *.tgz) ) & (t n)
  1408. .fi
  1409. .PP
  1410. Here is a sample of the use of conditions:
  1411. .PP
  1412. .nf
  1413. = f *.tar.gz | f *.tgz & t n
  1414. L List the contents of a compressed tar-archive
  1415. gzip -cd %f | tar xvf -
  1416. .fi
  1417. .PP
  1418. .B Addition Conditions
  1419. .PP
  1420. If the condition begins with '+' (or '+?') instead of '=' (or '=?') it
  1421. is an addition condition. If the condition is true the menu entry will
  1422. be included in the menu. If the condition is false the menu entry will
  1423. not be included in the menu.
  1424. .PP
  1425. You can combine default and addition conditions by starting condition
  1426. with '+=' or '=+' (or '+=?' or '=+?' if you want debug trace). If you
  1427. want to use two different conditions, one for adding and another for
  1428. defaulting, you can precede a menu entry with two condition lines, one
  1429. starting with '+' and another starting with '='.
  1430. .PP
  1431. Comments are started with '#'. The additional comment lines must start
  1432. with '#', space or tab.
  1433. .PP
  1434. .SH " Options Menu"
  1435. The Midnight Commander has some options that may be toggled on and
  1436. off in several dialogs which are accessible from this menu. Options
  1437. are enabled if they have an asterisk or "x" in front of them.
  1438. .PP
  1439. The
  1440. .\"LINK2"
  1441. Configuration
  1442. .\"Configuration"
  1443. command pops up a dialog from which you can change most of settings of
  1444. the Midnight Commander.
  1445. .PP
  1446. The
  1447. .\"LINK2"
  1448. Display bits
  1449. .\"Display bits"
  1450. command pops up a dialog from which you may select which characters is your
  1451. terminal able to display.
  1452. .PP
  1453. The
  1454. .\"LINK2"
  1455. Confirmation
  1456. .\"Confirmation"
  1457. command pops up a dialog from which you specify which actions you want to
  1458. confirm.
  1459. .PP
  1460. The
  1461. .\"LINK2"
  1462. Learn keys
  1463. .\"Learn keys"
  1464. command pops up a dialog from which you test some keys which are not working
  1465. on some terminals and you may fix them.
  1466. .PP
  1467. The
  1468. .\"LINK2"
  1469. Virtual FS
  1470. .\"Virtual FS"
  1471. command pops up a dialog from which you specify some VFS related options.
  1472. .PP
  1473. The
  1474. .\"LINK2"
  1475. Layout
  1476. .\"Layout"
  1477. command pops up a dialog from which you specify a bunch of options how mc
  1478. looks like on the screen.
  1479. .PP
  1480. The
  1481. .\"LINK2"
  1482. Save setup
  1483. .\"Save Setup"
  1484. command saves the current settings of the Left, Right and Options
  1485. menus. A small number of other settings is saved, too.
  1486. .PP
  1487. .SH " Configuration"
  1488. The options in this dialog are divided into three groups:
  1489. Panel Options, Pause after run and Other Options.
  1490. .PP
  1491. .B Panel Options
  1492. .PP
  1493. .I Show Backup Files.
  1494. By default the Midnight Commander doesn't show files ending in '~'
  1495. (like GNU's ls option -B).
  1496. .PP
  1497. .I Show Hidden Files.
  1498. By default the Midnight Commander will show all files that start with
  1499. a dot (like ls -a).
  1500. .PP
  1501. .I Mark moves down.
  1502. By default when you mark a file (with either C-t or the Insert key)
  1503. the selection bar will move down.
  1504. .PP
  1505. .I Drop down menus.
  1506. When this option is enabled, when you press the
  1507. .B F9
  1508. key, the pull down menus will be activated, else, you will
  1509. only be presented with the menu title, and you will have
  1510. to select the entry with the arrow keys or the first
  1511. letter and from there select your option in the menu.
  1512. .PP
  1513. .I Mix all files.
  1514. When this option is enabled, all files and directories are shown mixed
  1515. together. If the option is off, directories (and links to directories)
  1516. are shown at the beginning of the listing, and other files afterwards.
  1517. .PP
  1518. .I Fast directory reload.
  1519. This option is off by default. If you activate the fast reload, the
  1520. Midnight Commander will use a trick to determine if the directory
  1521. contents have changed. The trick is to reload the directory only if
  1522. the i-node of the directory has changed; this means that reloads only
  1523. happen when files are created or deleted. If what changes is the
  1524. i-node for a file in the directory (file size changes, mode or owner
  1525. changes, etc) the display is not updated. In these cases, if you have
  1526. the option on, you have to rescan the directory manually (with C-r).
  1527. .PP
  1528. .B Pause after run
  1529. .PP
  1530. After executing your commands, the Midnight Commander can pause, so
  1531. that you can examine the output of the command. There are three
  1532. possible settings for this variable:
  1533. .IP
  1534. .I Never
  1535. Means that you do not want to see the output of your command. If you
  1536. are using the Linux or SCO console or an xterm, you will be able to see the
  1537. output of the command by typing C-o.
  1538. .IP
  1539. .I "On dumb terminals"
  1540. You will get the pause message on terminals that are not capable of
  1541. showing the output of the last command executed (any terminal that is
  1542. not an xterm or the Linux console).
  1543. .IP
  1544. .I Always
  1545. The program will pause after executing all of your commands.
  1546. .PP
  1547. .B Other Options
  1548. .PP
  1549. .I Verbose operation.
  1550. This toggles whether the file Copy, Rename and Delete operations are
  1551. verbose (i.e., display a dialog box for each operation). If you have a
  1552. slow terminal, you may wish to disable the verbose operation. It is
  1553. automatically turned off if the speed of your terminal is less than
  1554. 9600 bps.
  1555. .PP
  1556. .I Compute totals.
  1557. If this option is enabled, the Midnight
  1558. Commander computes total byte sizes and total number of files
  1559. prior to any Copy, Rename and Delete operations. This will
  1560. provide you with a more accurate progress bar at the expense
  1561. of some speed. This option has no effect, if
  1562. .I Verbose operation
  1563. is disabled.
  1564. .PP
  1565. .I Shell Patterns.
  1566. By default the Select, Unselect and Filter commands will use shell-like
  1567. regular expressions. The following conversions are performed to achieve
  1568. this: the '*' is replaced by '.*' (zero or more characters); the '?'
  1569. is replaced by '.' (exactly one character) and '.' by the literal
  1570. dot. If the option is disabled, then the regular expressions are the
  1571. ones described in ed(1).
  1572. .PP
  1573. .I Auto Save Setup.
  1574. If this option is enabled, when you exit the Midnight Commander the
  1575. configurable options of the Midnight Commander are saved in the
  1576. ~/.mc/ini file.
  1577. .PP
  1578. .I Auto menus.
  1579. If this option is enabled, the user menu will be invoked at startup.
  1580. Useful for building menus for non-unixers.
  1581. .PP
  1582. .I Use internal editor.
  1583. If this option is enabled, the built-in file editor is used to edit
  1584. files. If the option is disabled, the editor specified in the
  1585. .B EDITOR
  1586. environment variable is used.
  1587. If no editor is specified,
  1588. .B vi
  1589. is used. See the section on the
  1590. .\"LINK2"
  1591. internal file editor.
  1592. .\"Internal File Editor"
  1593. .PP
  1594. .I Use internal viewer.
  1595. If this option is enabled, the built-in file viewer is used to view
  1596. files. If the option is disabled, the pager specified in the
  1597. .B PAGER
  1598. environment variable is used.
  1599. If no pager is specified, the
  1600. .B view
  1601. command is used. See the section on the
  1602. .\"LINK2"
  1603. internal file viewer.
  1604. .\"Internal File Viewer"
  1605. .PP
  1606. .I Complete: show all.
  1607. By default the Midnight Commander
  1608. pops up all possible
  1609. .\"LINK2"
  1610. completions
  1611. .\"Completion"
  1612. if the completion is
  1613. ambiguous if you press
  1614. .B M-Tab
  1615. for the second time, for the
  1616. first time it just completes as much as possible and in
  1617. the case of ambiguity beeps. If you want to see all the
  1618. possible completions already after the first
  1619. .B M-Tab
  1620. pressing, enable this option.
  1621. .PP
  1622. .I Rotating dash.
  1623. If this option is enabled, the
  1624. Midnight Commander shows a rotating dash in the upper right corner
  1625. as a work in progress indicator.
  1626. .PP
  1627. .I Lynx-like motion.
  1628. If this option is enabled,
  1629. you may use the arrows keys to automatically chdir if the
  1630. current selection is a subdirectory and the shell command
  1631. line is empty. By default, this setting is off.
  1632. .PP
  1633. .I Advanced chown.
  1634. If this option is enabled, the
  1635. .\"LINK2"
  1636. Advanced Chown
  1637. .\"Advanced Chown"
  1638. command will be invoked if you run the
  1639. .\"LINK2"
  1640. Chmod
  1641. .\"Chmod"
  1642. or
  1643. .\"LINK2"
  1644. Chown
  1645. .\"Chown"
  1646. command.
  1647. .PP
  1648. .I Cd follows links.
  1649. This option, if set, causes the Midnight Commander to follow the
  1650. logical chain of directories when changing current directory
  1651. either in the panels, or using the cd command. This is the default
  1652. behavior of bash. When unset, the Midnight Commander follows the
  1653. real directory structure, so cd .. if you've entered that directory
  1654. through a link will move you to the current directory's real parent
  1655. and not to the directory where the link was present.
  1656. .PP
  1657. .I Safe delete.
  1658. If this option is enabled, deleting files
  1659. unintentionally will get more difficult. The default
  1660. selection in the confirmation dialog changes from the "Yes"
  1661. to the "No" button and deletion of non empty directories has to be
  1662. confirmed by entering the word
  1663. .I yes
  1664. \&.
  1665. By default this option is disabled.
  1666. .PP
  1667. .SH " Display bits"
  1668. This is used to configure the range of visible characters on the
  1669. screen. This setting may be 7-bits if your terminal/curses supports
  1670. only seven output bits, ISO-8859-1 displays all the characters in the
  1671. ISO-8859-1 map and full 8 bits is for those terminals that can display
  1672. full 8 bit characters.
  1673. .PP
  1674. .SH " Confirmation"
  1675. In this menu you configure the confirmation options for file deletion,
  1676. overwriting, execution by pressing enter and quitting the program.
  1677. .PP
  1678. .SH " Learn keys"
  1679. This dialog lets you test if your keys F1-F20, Home, End, etc. work properly
  1680. on your terminal. They often don't, since many terminal databases are
  1681. broken.
  1682. .PP
  1683. You can move around with the Tab key, with the vi moving keys ('h' left, 'j'
  1684. down, 'k' up and 'l' right) and after you press any arrow key once (this
  1685. will mark it OK), then you can use that key as well.
  1686. .PP
  1687. You test them just by pressing each of them. As soon as you press a key and
  1688. the key works properly, OK should appear next to the name of that key. Once
  1689. a key is marked OK it starts to work as usually, e.g. F1 for the first time
  1690. will just check that F1 works OK, but from that time on it will show help.
  1691. The same applies to the arrow keys. Tab key should be working always.
  1692. .PP
  1693. If some keys do not work properly, then you won't see OK after the key name
  1694. after you have pressed that key. You may then want to fix it. You do it by
  1695. pressing the button of that key (either by mouse or using Tab and Enter).
  1696. Then a red message will appear and you will be asked to type that key.
  1697. If you want to abort this, press just Esc and wait until the message
  1698. disappears. Otherwise type the key you're asked to type and also wait until
  1699. the dialog disappears.
  1700. .PP
  1701. When you finish with all the keys, you may want either to Save your key fixes
  1702. into your ~/.mc/ini file into the [terminal:TERM] section (where TERM is the
  1703. name of your current terminal) or to discard them. If all your keys were
  1704. working properly and you had not to fix any key, then (of course) no saving
  1705. will occur.
  1706. .PP
  1707. .SH " Virtual FS"
  1708. This option gives you control over the settings of the
  1709. .\"LINK2"
  1710. Virtual File System
  1711. .\"Virtual File System"
  1712. information cache.
  1713. .PP
  1714. The Midnight Commander keeps in memory the information
  1715. related to some of the virtual file systems to speed up
  1716. the access to the files in the file system (for example,
  1717. directory listings fetched from ftp servers).
  1718. .PP
  1719. Moreover in order to access the contents of compressed files
  1720. (for example, compressed tar files) the Midnight Commander
  1721. has to create a temporary uncompressed file on your disk.
  1722. .PP
  1723. Since both the information in memory and the temporary files on
  1724. disk take up resources, you may want to tune the parameters of
  1725. the cached information to decrease your resource usage or to maximize
  1726. the speed of access to frequently used file systems.
  1727. .PP
  1728. The Tar file system is quite clever about how it handles
  1729. tar files: it just loads the directory entries and when it
  1730. needs to use the information contained in the tar file, it
  1731. goes and grab it.
  1732. .PP
  1733. In the wild, tar files are usually kept compressed (plain
  1734. tar files are species in extinction), and because of the
  1735. nature of those files (the directory entries for the tar
  1736. files is not there waiting for us to be loaded), the tar
  1737. file system has to uncompress the file
  1738. on the disk in a temporary location and then access the
  1739. uncompressed file as a regular tar file.
  1740. .PP
  1741. Now, since we all love to browse files and tar files all
  1742. over the disk, it's common that you will leave a tar file
  1743. and the re-enter it later. Since uncompression is slow,
  1744. the Midnight Commander will cache the information in
  1745. memory for a limited amount of time, after you hit the
  1746. timeout, all of the resources associated with the
  1747. file system will be freed. The default timeout is set to
  1748. one minute.
  1749. .PP
  1750. The
  1751. .\"LINK2"
  1752. FTP File System
  1753. .\"FTP File System"
  1754. keeps the directory listing it fetches from a ftp server
  1755. in a cache. The cache
  1756. expire time is configurable with the
  1757. .I ftpfs directory cache timeout
  1758. option.
  1759. A low value for this
  1760. option may slow down every operation on the ftp file System
  1761. because every operation is accompanied by a query of the
  1762. ftp server.
  1763. .PP
  1764. Moreover you can define a proxy host for doing ftp transfers
  1765. and configure the Midnight Commander to always use the proxy host.
  1766. See
  1767. the section on
  1768. .\"LINK2"
  1769. FTP File System
  1770. .\"FTP File System"
  1771. for more information.
  1772. .PP
  1773. .SH " Layout"
  1774. The layout dialog gives you a possibility to change the general layout
  1775. of screen. You can specify whether the menubar, the command prompt,
  1776. the hintbar and the function keybar are visible. On the Linux or SCO console
  1777. you can specify how many lines are shown in the output window.
  1778. .PP
  1779. The rest of the screen area is used for the two directory panels. You
  1780. can specify whether the area is split to the panels in vertical or
  1781. horizontal direction. The split can be equal or you can specify an
  1782. unequal split.
  1783. .PP
  1784. By default all contents of the directory panels are displayed with
  1785. the same color, but you can specify whether
  1786. .I permissions
  1787. and
  1788. .I file types
  1789. are highlighted with special
  1790. .\"LINK2"
  1791. Colors.
  1792. .\"Colors"
  1793. If permission highlighting is enabled, the parts of the
  1794. .I perm
  1795. and
  1796. .I mode
  1797. .\"LINK2"
  1798. display fields
  1799. .\"Listing Mode..."
  1800. which are valid for the user running Midnight Commander
  1801. are highlighted with the color defined with the
  1802. .I selected
  1803. keyword. If file type highlighting is enabled, files are colored according
  1804. to their file type (e.g. directory, core file, executable, ...).
  1805. .PP
  1806. If the
  1807. .I Show Mini-Status
  1808. option is enabled, one line of status
  1809. information about the currently selected item is showed at the bottom
  1810. of the panels.
  1811. .PP
  1812. .SH " Save Setup"
  1813. At startup the Midnight Commander will try to load initialization
  1814. information from the ~/.mc/ini file. If this file doesn't exist,
  1815. it will load the information from the system-wide configuration file,
  1816. located in @prefix@/lib/mc/mc.ini. If the system-wide configuration
  1817. file doesn't exist, MC uses the default settings.
  1818. .PP
  1819. The
  1820. .I Save Setup
  1821. command creates the ~/.mc/ini file by saving the current settings
  1822. of the
  1823. .\"LINK2"
  1824. Left, Right
  1825. .\"Left and Right Menus"
  1826. and
  1827. .\"LINK2"
  1828. Options
  1829. .\"Options Menu"
  1830. menus.
  1831. .PP
  1832. If you activate the
  1833. .I auto save setup
  1834. option, MC will always save the current settings when exiting.
  1835. .PP
  1836. There also exist settings which can't be changed from the menus. To
  1837. change these settings you have to edit the setup file with your
  1838. favorite editor. See the section on
  1839. .\"LINK2"
  1840. Special Settings
  1841. .\"Special Settings"
  1842. for more information.
  1843. .PP
  1844. .SH ""
  1845. .SH "Executing operating system commands"
  1846. You may execute commands by typing them directly in the Midnight
  1847. Commander's input line, or by selecting the program you want to
  1848. execute with the selection bar in one of the panels and hitting Enter.
  1849. .PP
  1850. If you press Enter over a file that is not executable, the Midnight
  1851. Commander checks the extension of the selected file against the
  1852. extensions in the
  1853. .\"LINK2"
  1854. Extensions File.
  1855. .\"Extension File Edit"
  1856. If a match is found then the code associated with that extension is
  1857. executed. A very simple
  1858. .\"LINK2"
  1859. macro expansion
  1860. .\"Macro Substitution"
  1861. takes place before executing the command.
  1862. .PP
  1863. .SH " The cd internal command"
  1864. The
  1865. .I cd
  1866. command is interpreted by the Midnight Commander, it is not passed to
  1867. the command shell for execution. Thus it may not handle all of the
  1868. nice macro expansion and substitution that your shell does, although it
  1869. does some of them:
  1870. .PP
  1871. .I Tilde substitution
  1872. The (~) will be substituted with your home directory, if you append a
  1873. username after the tilde, then it will be substituted with the login
  1874. directory of the the specified user.
  1875. .PP
  1876. For example, ~guest is the home directory for the user guest, while
  1877. ~/guest is the directory guest in your home directory.
  1878. .PP
  1879. .I Previous directory
  1880. You can jump to the directory you were previously by using the special
  1881. directory name '-' like this:
  1882. .B cd -
  1883. .PP
  1884. .I CDPATH directories
  1885. If the directory specified to the
  1886. .B cd
  1887. command is not in the current directory, then The Midnight Commander
  1888. uses the value in the environment variable
  1889. .B CDPATH
  1890. to search for the directory in any of the named directories.
  1891. .PP
  1892. For example you could set your
  1893. .B CDPATH
  1894. variable to ~/src:/usr/src, allowing you to change your directory to
  1895. any of the directories inside the ~/src and /usr/src directories, from
  1896. any place in the file system by using it's relative name (for example
  1897. cd linux could take you to /usr/src/linux).
  1898. .PP
  1899. .SH " Macro Substitution"
  1900. .PP
  1901. When accessing a
  1902. .\"LINK2"
  1903. user menu,
  1904. .\"Menu File Edit"
  1905. or executing an
  1906. .\"LINK2"
  1907. extension dependent command,
  1908. .\"Extension File Edit"
  1909. or running a command from the command line input,
  1910. a simple macro substitution takes place.
  1911. .PP
  1912. The macros are:
  1913. .PP
  1914. .I "%i"
  1915. .IP
  1916. The indent of blank space, equal the cursor column
  1917. position. For edit menu only.
  1918. .PP
  1919. .I "%y"
  1920. .IP
  1921. The syntax type of current file. For edit menu only.
  1922. .PP
  1923. .I "%k"
  1924. .IP
  1925. The block file name.
  1926. .PP
  1927. .I "%e"
  1928. .IP
  1929. The error file name.
  1930. .PP
  1931. .I "%m"
  1932. .IP
  1933. The current menu name.
  1934. .PP
  1935. .I "%f"
  1936. .IP
  1937. The current file name.
  1938. .PP
  1939. .I "%x"
  1940. .IP
  1941. The extension of current file name.
  1942. .PP
  1943. .I "%b"
  1944. .IP
  1945. The current file name without extension.
  1946. .PP
  1947. .I "%d"
  1948. .IP
  1949. The current directory name.
  1950. .PP
  1951. .I "%F"
  1952. .IP
  1953. The current file in the unselected panel.
  1954. .PP
  1955. .I "%D"
  1956. .IP
  1957. The directory name of the unselected panel.
  1958. .PP
  1959. .I "%t"
  1960. .IP
  1961. The currently tagged files.
  1962. .PP
  1963. .I "%T"
  1964. .IP
  1965. The tagged files in the unselected panel.
  1966. .PP
  1967. .I "%u"
  1968. and
  1969. .I "%U"
  1970. .IP
  1971. Similar to the %t and %T macros, but in addition the files are
  1972. untagged. You can use this macro only once per menu file entry or
  1973. extension file entry, because next time there will be no tagged
  1974. files.
  1975. .PP
  1976. .I "%s"
  1977. and
  1978. .I "%S"
  1979. .IP
  1980. The selected files: The tagged files if there are any. Otherwise the
  1981. current file.
  1982. .PP
  1983. .I "%q"
  1984. .IP
  1985. Dropped files. In all places except in the Drop action of the
  1986. .\"LINK2"
  1987. mc.ext file,
  1988. .\"Extension File Edit"
  1989. this will become a null string, in the Drop action it will be replaced
  1990. with a space separated list of files that were dropped on the file.
  1991. .PP
  1992. .I "%cd"
  1993. .IP
  1994. This is a special macro that is used to change the current directory
  1995. to the directory specified in front of it. This is used primarily as
  1996. an interface to the
  1997. .\"LINK2"
  1998. Virtual File System.
  1999. .\"Virtual File System"
  2000. .PP
  2001. .I "%view"
  2002. .IP
  2003. This macro is used to invoke the internal viewer. This macro can be
  2004. used alone, or with arguments. If you pass any arguments to this
  2005. macro, they should be enclosed in brackets.
  2006. .IP
  2007. The arguments are:
  2008. .I ascii
  2009. to force the viewer into ascii mode;
  2010. .I hex
  2011. to force the viewer into hex mode;
  2012. .I nroff
  2013. to tell the viewer that it should interpret the bold and underline
  2014. sequences of nroff;
  2015. .I unformatted
  2016. to tell the viewer to not interpret nroff commands for making the text
  2017. bold or underlined.
  2018. .PP
  2019. .I "%%"
  2020. .IP
  2021. The % character
  2022. .PP
  2023. .I "%{some text}"
  2024. .IP
  2025. Prompt for the substitution. An input box is shown and the text inside
  2026. the braces is used as a prompt. The macro is substituted by the text
  2027. typed by the user. The user can press ESC or F10 to cancel. This macro
  2028. doesn't work on the command line yet.
  2029. .PP
  2030. .SH " The subshell support"
  2031. The subshell support is a compile time option, that works with the
  2032. shells: bash, tcsh and zsh.
  2033. .PP
  2034. When the subshell code is activated the Midnight Commander will
  2035. spawn a concurrent copy of your shell (the one defined in the
  2036. .B SHELL
  2037. variable and if it is not defined, then the one in the /etc/passwd
  2038. file) and run it in a pseudo terminal, instead of invoking a new shell
  2039. each time you execute a command, the command will be passed to the
  2040. subshell as if you had typed it. This also allows you to change the
  2041. environment variables, use shell functions and define aliases that are
  2042. valid until you quit the Midnight Commander.
  2043. .PP
  2044. If you are using
  2045. .B bash
  2046. you can specify startup
  2047. commands for the subshell in your ~/.mc/bashrc file and
  2048. special keyboard maps in the ~/.mc/inputrc file.
  2049. .B tcsh
  2050. users may specify startup commands in the ~/.mc/tcshrc file.
  2051. .PP
  2052. When the subshell code is used, you can suspend applications at any
  2053. time with the sequence C-o and jump back to the Midnight Commander, if
  2054. you interrupt an application, you will not be able to run other
  2055. external commands until you quit the application you interrupted.
  2056. .PP
  2057. An extra added feature of using the subshell is that the prompt
  2058. displayed by the Midnight Commander is the same prompt that you are
  2059. currently using in your shell.
  2060. .PP
  2061. The
  2062. .\"LINK2
  2063. OPTIONS
  2064. .\"OPTIONS"
  2065. section has more information on how you can control the subshell code.
  2066. .PP
  2067. .SH " Controlling Midnight Commander"
  2068. The Midnight Commander defines an environment variable
  2069. MC_CONTROL_FILE. The commands executed by MC may give instructions to
  2070. MC by writing to the file specified by this variable. This is only
  2071. available if you compiled your copy of the Midnight Commander with the
  2072. WANT_PARSE option.
  2073. .PP
  2074. The following instructions are supported.
  2075. .PP
  2076. .nf
  2077. clear_tags Clear all tags.
  2078. tag <filename> Tag specified file.
  2079. untag <filename> Untag specified file.
  2080. select <filename> Move pointer to file.
  2081. change_panel Switch between panels.
  2082. cd <path> Change directory.
  2083. .fi
  2084. .PP
  2085. If the first letter of the instruction is in lower case it operates on
  2086. the current panel. If the letter is in upper case the instruction
  2087. operates on the other panel. The additional letters must be in lower
  2088. case. Instructions must be separated by exactly one space, tab or
  2089. newline. The instructions don't work in the Info, Tree and Quick
  2090. views. The first error causes the rest to be ignored.
  2091. .PP
  2092. .SH "Chmod"
  2093. The Chmod window is used to change the attribute bits in a group of
  2094. files and directories. It can be invoked with the C-x c key combination.
  2095. .PP
  2096. The Chmod window has two parts -
  2097. .I Permissions
  2098. and
  2099. .I File
  2100. .PP
  2101. In the File section are displayed the name of the file or directory
  2102. and its permissions in octal form, as well as its owner and group.
  2103. .PP
  2104. In the Permissions section there is a set of check buttons which
  2105. correspond to the file attribute bits. As you change the attribute
  2106. bits, you can see the octal value change in the File section.
  2107. .PP
  2108. To move between the widgets (buttons and check buttons) use the
  2109. .I arrow keys
  2110. or the
  2111. .I Tab
  2112. key. To change the state of the check buttons or to select a button
  2113. use
  2114. .I Space.
  2115. You can also use the hotkeys on the buttons to quickly activate that
  2116. selection (they are the highlit letters on the buttons).
  2117. .PP
  2118. To set the attribute bits, use the Enter key.
  2119. .PP
  2120. When working with a group of files or directories, you just click on
  2121. the bits you want to set or clear. Once you have selected the bits
  2122. you want to change, you select one of the action buttons (Set marked
  2123. or Clear marked).
  2124. .PP
  2125. Finally, to set the attributes exactly to those specified, you can use
  2126. the
  2127. .B [Set all]
  2128. button, which will act on all the tagged files.
  2129. .PP
  2130. .B [Marked all]
  2131. set only marked attributes to all selected files
  2132. .PP
  2133. .B [Set marked]
  2134. set marked bits in attributes of all selected files
  2135. .PP
  2136. .B [Clean marked]
  2137. clear marked bits in attributes of all selected files
  2138. .PP
  2139. .B [Set]
  2140. set the attributes of one file
  2141. .PP
  2142. .B [Cancel]
  2143. cancel the Chmod command
  2144. .PP
  2145. .SH "Chown"
  2146. The Chown command is used to change the owner/group of a file. The hot
  2147. key for this command is C-x o.
  2148. .PP
  2149. .SH "Advanced Chown"
  2150. The Advanced Chown command is the
  2151. .\"LINK2"
  2152. Chmod
  2153. .\"Chmod"
  2154. and
  2155. .\"LINK2"
  2156. Chown
  2157. .\"Chown"
  2158. command combined into one window. You can change the permissions and
  2159. owner/group of files at once.
  2160. .PP
  2161. .SH "File Operations"
  2162. When you copy, move or delete files the Midnight Commander shows the
  2163. file operations dialog. It shows the files currently being operated on
  2164. and there are at most three progress bars. The file bar tells how big
  2165. part of the current file has been copied so far. The count bar tells
  2166. how many of tagged files have been handled so far. The bytes bar tells
  2167. how big part of total size of the tagged files has been handled so
  2168. far. If the verbose option is off the file and bytes bars are not
  2169. shown.
  2170. .PP
  2171. There are two buttons at the bottom of the dialog. Pressing the Skip
  2172. button will skip the rest of the current file. Pressing the Abort
  2173. button will abort the whole operation, the rest of the files are
  2174. skipped.
  2175. .PP
  2176. There are three other dialogs which you can run into during the file
  2177. operations.
  2178. .PP
  2179. The error dialog informs about error conditions and has three
  2180. choices. Normally you select either the Skip button to skip the file
  2181. or the Abort button to abort the operation altogether. You can also
  2182. select the Retry button if you fixed the problem from another
  2183. terminal.
  2184. .PP
  2185. The replace dialog is shown when you attempt to copy or move a file on
  2186. the top of an existing file. The dialog shows the dates and sizes of
  2187. the both files. Press the Yes button to overwrite the file, the No
  2188. button to skip the file, the alL button to overwrite all the files,
  2189. the nonE button to never overwrite and the Update button to overwrite
  2190. if the source file is newer than the target file. You can abort the
  2191. whole operation by pressing the Abort button.
  2192. .PP
  2193. The recursive delete dialog is shown when you try to delete a
  2194. directory which is not empty. Press the Yes button to delete the
  2195. directory recursively, the No button to skip the directory, the alL
  2196. button to delete all the directories and the nonE button to skip all
  2197. the non-empty directories. You can abort the whole operation by
  2198. pressing the Abort button. If you selected the Yes or alL button you
  2199. will be asked for a confirmation. Type "yes" only if you are really
  2200. sure you want to do the recursive delete.
  2201. .PP
  2202. If you have tagged files and perform an operation on them only the
  2203. files on which the operation succeeded are untagged. Failed and
  2204. skipped files are left tagged.
  2205. .PP
  2206. .SH "Mask Copy/Rename"
  2207. The copy/move operations lets you translate the names of files in an easy
  2208. way. To do it, you have to specify the correct source mask and usually in
  2209. the trailing part of the destination specify some wildcards.
  2210. All the files matching the source mask are copied/renamed according to
  2211. the target mask. If there are tagged files, only the tagged files
  2212. matching the source mask are renamed.
  2213. .PP
  2214. There are other option which you can set:
  2215. .PP
  2216. Follow links tells whether make the symlinks and hardlinks in the source
  2217. directory (recursively in subdirectories) new links in the target
  2218. directory or whether would you like to copy their content.
  2219. .PP
  2220. Dive into subdirs tells what to do if in the target
  2221. directory exists a directory with the same name as the
  2222. file/directory being copied. The default action is to copy
  2223. it's content into that directory, by enabling this
  2224. you can copy the source directory into that directory.
  2225. Perhaps an example will help:
  2226. .PP
  2227. You want to copy content of a directory foo to /bla/foo,
  2228. which is an already existing directory. Normally (when
  2229. Dive is not set), mc would copy it exactly into /bla/foo.
  2230. By enabling this option you will copy the content into /bla/foo/foo,
  2231. because the directory already exists.
  2232. .PP
  2233. Preserve attributes tells whether to preserve the original files'
  2234. permissions, timestamps and if you are root whether to preserve
  2235. the original files' UID and GID. If this option is not set the current
  2236. value of the umask will be respected.
  2237. .PP
  2238. .B "Use shell patterns on"
  2239. .PP
  2240. When the shell patterns option is on you can use the '*' and '?'
  2241. wildcards in the source mask. They work like they do in the shell. In
  2242. the target mask only the '*' and '\\<digit>' wildcards are allowed. The
  2243. first '*' wildcard in the target mask corresponds to the first
  2244. wildcard group in the source mask, the second '*' corresponds to the
  2245. second group and so on. The '\\1' wildcard corresponds to the first
  2246. wildcard group in the source mask, the '\\2' wildcard corresponds to
  2247. the second group and so on all the way up to '\\9'. The '\\0' wildcard
  2248. is the whole filename of the source file.
  2249. .PP
  2250. Two examples:
  2251. .PP
  2252. If the source mask is "*.tar.gz", the destination is "/bla/*.tgz" and the
  2253. file to be copied is "foo.tar.gz", the copy will be "foo.tgz" in "/bla".
  2254. .PP
  2255. Let's suppose you want to swap basename and extension so that "file.c"
  2256. will become "c.file" and so on. The source mask for this is "*.*" and
  2257. the destination is "\\2.\\1".
  2258. .PP
  2259. .B "Use shell patterns off"
  2260. .PP
  2261. When the shell patterns option is off the MC doesn't do automatic
  2262. grouping anymore. You must use '\\(...\\)' expressions in the source
  2263. mask to specify meaning for the wildcards in the target mask. This is
  2264. more flexible but also requires more typing. Otherwise target masks
  2265. are similar to the situation when the shell patterns option is on.
  2266. .PP
  2267. Two examples:
  2268. .PP
  2269. If the source mask is "^\\(.*\\)\\.tar\\.gz$", the destination is
  2270. "/bla/*.tgz" and the file to be copied is "foo.tar.gz", the copy
  2271. will be "/bla/foo.tgz".
  2272. .PP
  2273. Let's suppose you want to swap basename and extension so that "file.c"
  2274. will become "c.file" and so on. The source mask for this is
  2275. "^\\(.*\\)\\.\\(.*\\)$" and the destination is "\\2.\\1".
  2276. .PP
  2277. .B "Case Conversions"
  2278. .PP
  2279. You can also change the case of the filenames. If you use '\\u' or
  2280. '\\l' in the target mask the next character will be converted to
  2281. uppercase or lowercase correspondingly.
  2282. .PP
  2283. If you use '\\U' or '\\L' in the target mask the next characters will
  2284. be converted to uppercase or lowercase correspondingly up to the next
  2285. '\\E' or next '\\U', '\\L' or the end of the file name.
  2286. .PP
  2287. The '\\u' and '\\l' are stronger than '\\U' and '\\L'.
  2288. .PP
  2289. For example, if the source mask is '*' (shell patterns on) or '^\\(.*\\)$'
  2290. (shell patterns off) and the target mask is '\\L\\u*' the file names
  2291. will be converted to have initial upper case and otherwise lower case.
  2292. .PP
  2293. You can also use '\\' as a quote character. For example, '\\\\' is
  2294. a backslash and '\\*' is an asterisk.
  2295. .PP
  2296. .SH "Internal File Viewer"
  2297. The internal file viewer provides two display modes: ASCII and hex.
  2298. To toggle between modes, use the F4 key. If you have the GNU gzip
  2299. program installed, it will be used to automatically decompress the
  2300. files on demand.
  2301. .PP
  2302. The viewer will try to use the best method provided by your system or
  2303. the file type to display the information. The internal file viewer
  2304. will interpret some string sequences to set the bold and underline
  2305. attributes, thus making a pretty display of your files.
  2306. .PP
  2307. When in hex mode, the search function accepts text in quotes as well
  2308. as hexadecimal constants.
  2309. .PP
  2310. You can mix quoted text with constants like this: "String" 0xFE 0xBB
  2311. "more text". Text between constants and quoted text is just ignored.
  2312. .PP
  2313. Some internal details about the viewer: On systems that provide the
  2314. mmap(2) system call, the program maps the file instead of loading it;
  2315. if the system does not provide the mmap(2) system call or the file
  2316. matches an action that requires a filter, then the viewer will use
  2317. it's growing buffers, thus loading only those parts of the file that
  2318. you actually access (this includes compressed files).
  2319. .PP
  2320. Here is a listing of the actions associated with each key that the
  2321. Midnight Commander handles in the internal file viewer.
  2322. .PP
  2323. .B F1
  2324. Invoke the builtin hypertext help viewer.
  2325. .PP
  2326. .B F2
  2327. Toggle the wrap mode.
  2328. .PP
  2329. .B F4
  2330. Toggle the hex mode.
  2331. .PP
  2332. .B F5
  2333. Goto line. This will prompt you for a line number and will display
  2334. that line.
  2335. .PP
  2336. .B F6, /.
  2337. Regular expression search.
  2338. .PP
  2339. .B ?,
  2340. Reverse regular expression search.
  2341. .PP
  2342. .B F7
  2343. Normal search / hex mode search.
  2344. .PP
  2345. .B C-s.
  2346. Start normal search if there was no previous search expression else
  2347. find next match.
  2348. .PP
  2349. .B C-r.
  2350. Start reverse search if there was no previous search expression else
  2351. find next match.
  2352. .PP
  2353. .B n.
  2354. Find next match.
  2355. .PP
  2356. .B F8
  2357. Toggle Raw/Parsed mode: This will show the file as found on disk or if
  2358. a processing filter has been specified in the mc.ext file, then the
  2359. output from the filter. Current mode is always the other than written
  2360. on the button label, since on the button is the mode which you enter
  2361. by that key.
  2362. .PP
  2363. .B F9
  2364. Toggle the format/unformat mode: when format mode is on the viewer
  2365. will interpret some string sequences to show bold and underline with
  2366. different colors. Also, on button label is the other mode than current.
  2367. .PP
  2368. .B F10, Esc.
  2369. Exit the internal file viewer.
  2370. .PP
  2371. .B next-page, space, C-v.
  2372. Scroll one page forward.
  2373. .PP
  2374. .B prev-page, M-v, C-b, backspace.
  2375. Scroll one page backward.
  2376. .PP
  2377. .B down-key
  2378. Scroll one line forward.
  2379. .PP
  2380. .B up-key
  2381. Scroll one line backward.
  2382. .PP
  2383. .B C-l
  2384. Refresh the screen.
  2385. .PP
  2386. .B !
  2387. Spawn a shell in the currently working directory.
  2388. .PP
  2389. .B "[n] m"
  2390. Set the mark n.
  2391. .PP
  2392. .B "[n] r"
  2393. Jump to the mark n.
  2394. .PP
  2395. .B C-f
  2396. Jump to the next file.
  2397. .PP
  2398. .B C-b
  2399. Jump to the previous file.
  2400. .PP
  2401. .B M-r
  2402. Toggle the ruler.
  2403. .PP
  2404. It's possible to instruct the file viewer how to display a file, look
  2405. at the
  2406. .\"LINK2"
  2407. Extension File Edit section
  2408. .\"Extension File Edit"
  2409. .SH "Internal File Editor"
  2410. The internal file editor provides most of the features of
  2411. common full screen editors. It is invoked using
  2412. .B F4
  2413. provided
  2414. the
  2415. .I use_internal_edit
  2416. option is set in the initialization file. It has an
  2417. extensible file size limit of sixteen megabytes and edits binary files
  2418. flawlessly.
  2419. .PP
  2420. The features it presently supports are: Block
  2421. copy, move, delete, cut, paste;
  2422. .I "key for key undo";
  2423. pull-down
  2424. menus; file insertion; macro definition; regular expression
  2425. search and replace (and our own scanf-printf search and
  2426. replace); shift-arrow MSW-MAC text highlighting (for the
  2427. linux console only); insert-overwrite toggle; and an option
  2428. to pipe text blocks through shell commands like indent.
  2429. .PP
  2430. The editor is very easy to use and requires no tutoring.
  2431. To see what keys do what, just consult the appropriate
  2432. pull-down menu. Other keys are: Shift movement
  2433. keys do text highlighting.
  2434. .B Ctrl-Ins
  2435. copies to the file
  2436. .B cooledit.clip and
  2437. .B Shift-Ins
  2438. pastes from cooledit.clip.
  2439. .B Shift-Del
  2440. cuts to
  2441. .B cooledit.clip,
  2442. and
  2443. .B Ctrl-Del
  2444. deletes highlighted text. The completion key also does a Return
  2445. with an automatic indent. Mouse highlighting also works, and you
  2446. can override the mouse as usual by holding down the shift key
  2447. while dragging the mouse to let normal terminal mouse highlighting
  2448. work.
  2449. .PP
  2450. To define a macro, press
  2451. .B Ctrl-R
  2452. and then type out the key
  2453. strokes you want to be executed. Press
  2454. .B Ctrl-R
  2455. again when finished. You can then assign the macro to any key you
  2456. like by pressing that key. The macro is executed when you press
  2457. .B Ctrl-A and then the assigned key. The macro is also executed if
  2458. you press Meta, Ctrl, or Esc and the assigned key, provided that the
  2459. key is not used for any other function. Once defined, the macro
  2460. commands go into the file
  2461. .B .cedit/cooledit.macros
  2462. in your home directory. You can delete a macro by deleting the
  2463. appropriate line in this file.
  2464. .PP
  2465. .B F19
  2466. will format the currently highlighted block (plain text or
  2467. .B C
  2468. or
  2469. .B C++
  2470. code or another). This is controlled by the
  2471. file
  2472. .B @prefix@/lib/mc/edit.indent.rc
  2473. which is copied to
  2474. .B .cedit/edit.indent.rc
  2475. in your home directory the first time you use it.
  2476. .PP
  2477. You can use scanf search and replace to search and replace
  2478. a C format string. First take a look at the
  2479. .B sscanf
  2480. and
  2481. .B sprintf man pages to see what a format string
  2482. is and how it works. An example is as follows: Suppose you want
  2483. to replace all occurrences of say, an open bracket, three
  2484. comma separated numbers, and a close bracket, with the
  2485. word
  2486. .I apples,
  2487. the third number, the word
  2488. .I oranges
  2489. and then the second number, I would fill in the Replace dialog
  2490. box as follows:
  2491. .PP
  2492. .nf
  2493. Enter search string
  2494. (%d,%d,%d)
  2495. Enter replace string
  2496. apples %d oranges %d
  2497. Enter replacement argument order
  2498. 3,2
  2499. .fi
  2500. .PP
  2501. The last line specifies that the third and then the second
  2502. number are to be used in place of the first and second.
  2503. .PP
  2504. It is advisable to use this feature with Prompt on replace on, because
  2505. a match is thought to be found whenever the number of arguments found
  2506. matches the number given, which is not always a real match. Scanf also
  2507. treats whitespace as being elastic. Note that the scanf format % is
  2508. very useful for scanning strings, and whitespace.
  2509. .PP
  2510. The editor also displays non-us characters (160+). When editing
  2511. binary files, you should set
  2512. .B display bits
  2513. to 7 bits in the options menu to keep the spacing clean.
  2514. .PP
  2515. See also the file
  2516. .B README.edit
  2517. in the source tree for some more info.
  2518. .PP
  2519. .SH Completion
  2520. .PP
  2521. Let the Midnight Commander type for you.
  2522. .PP
  2523. Attempt to perform completion on the text before current position. MC
  2524. attempts completion treating the text as variable (if the text begins with
  2525. .B $
  2526. ), username (if the text begins with
  2527. .B ~
  2528. ), hostname (if the text
  2529. begins with
  2530. .B @
  2531. ) or command (if you are on the command line in the
  2532. position where you might type a command, possible completions then include
  2533. shell reserved words and shell builtin commands as well) in turn. If none
  2534. of these produces a match, filename completion is attempted.
  2535. .PP
  2536. Filename, username, variable and hostname completion works on all input
  2537. lines, command completion is command line specific.
  2538. If the completion is ambiguous (there are more different possibilities),
  2539. MC beeps and the following action depends on the setting of the
  2540. .I Complete: show all
  2541. option in the
  2542. .\"LINK2"
  2543. Configuration
  2544. .\"Configuration"
  2545. dialog. If it is enabled, a list of all
  2546. possibilities pops up next to the current position and you can select with
  2547. the arrow keys and
  2548. .B Enter
  2549. the correct entry. You can also type the first letters in which the
  2550. possibilities differ to move to a subset of all possibilities and complete
  2551. as much as possible. If you press
  2552. .B M-Tab
  2553. again, only the subset will be shown in the listbox, otherwise the first
  2554. item which matches all the previous characters will be highlighted. As soon
  2555. as there is no ambiguity, dialog disappears, but you can hide it by
  2556. canceling keys
  2557. .B Esc,
  2558. .B F10
  2559. and left and right arrow keys. If
  2560. .\"LINK2"
  2561. Complete: show all
  2562. .\"Configuration"
  2563. is disabled, the dialog pops up only if you press
  2564. .B M-Tab
  2565. for the second time, for the first time MC just beeps.
  2566. .PP
  2567. .SH "Virtual File System"
  2568. The Midnight Commander is provided with a code layer to access the
  2569. file system; this code layer is known as the virtual file system
  2570. switch. The virtual file system switch allows the Midnight Commander
  2571. to manipulate files not located on the Unix file system.
  2572. .PP
  2573. Currently the Midnight Commander is packaged with some Virtual File
  2574. Systems (VFS): the local file system, used for accessing the regular
  2575. Unix file system; the ftpfs, used to manipulate files on remote
  2576. systems with the FTP protocol; the tarfs, used to manipulate tar and
  2577. compressed tar files; the undelfs, used to recover deleted files on
  2578. ext2 file systems (the default file system for Linux systems), fish
  2579. (for manipulating files over shell connections such as rsh and ssh) and
  2580. finally the mcfs (Midnight Commander file system), a network based
  2581. file system.
  2582. .PP
  2583. The VFS switch code will interpret all of the path names used and will
  2584. forward them to the correct file system, the formats used for each one
  2585. of the file systems is described later in their own section.
  2586. .PP
  2587. .SH " FTP File System"
  2588. The ftpfs allows you to manipulate files on remote machines, to
  2589. actually use it, you may try to use the panel command FTP link
  2590. (accessible from the menubar) or you may directly change your current
  2591. directory to it using the cd command to a path name that looks like this:
  2592. .PP
  2593. .I /#ftp:[!][user[:pass]@]machine[:port][remote-dir]
  2594. .PP
  2595. The,
  2596. .I user, port
  2597. and
  2598. .I remote-dir
  2599. elements are optional. If you specify the
  2600. .I user
  2601. element, then the Midnight Commander will try to logon on the remote
  2602. machine as that user, otherwise it will use your login name. The
  2603. optional
  2604. .I pass
  2605. element, if present is the password used for the connection. This use
  2606. is not recommended (nor keeping this in your hotlist, unless you set
  2607. the appropriate permissions there, and then, it may not be entirely
  2608. safe anyways).
  2609. .PP
  2610. Examples:
  2611. .PP
  2612. .nf
  2613. /#ftp:ftp.nuclecu.unam.mx/linux/local
  2614. /#ftp:tsx-11.mit.edu/pub/linux/packages
  2615. /#ftp:!behind.firewall.edu/pub
  2616. /#ftp:guest@remote-host.com:40/pub
  2617. /#ftp:miguel:xxx@server/pub
  2618. .fi
  2619. .PP
  2620. To connect to sites behind a firewall, you will need to use the prefix
  2621. ftp://! (ie, with a bang character after the double slash) to make the
  2622. Midnight Commander use a proxy host for doing the ftp transfer. You
  2623. can define the proxy host in the
  2624. .\"LINK2"
  2625. Virtual File System
  2626. .\"Virtual FS"
  2627. dialog box.
  2628. .PP
  2629. Another option to set is the
  2630. .I Always use ftp proxy
  2631. option in the
  2632. .\"LINK2"
  2633. Virtual File System
  2634. .\"Virtual FS"
  2635. dialog box. This will configure the program
  2636. to always use the proxy host. If this variable is set, the program
  2637. will do two things: consult the @prefix@/lib/mc/mc.no_proxy file for
  2638. lines containing host names that are local (if the host name starts
  2639. with a dot, it is assumed to be a domain) and to assume that any
  2640. hostnames without dots in their names are directly accessible.
  2641. .PP
  2642. If you are using the ftpfs code with a filtering packet router that
  2643. does not allow you to use the regular mode of opening files, you may
  2644. want to force the program to use the passive-open mode. To use this,
  2645. set the ftpfs_use_passive_connections option in the initialization file.
  2646. .PP
  2647. The Midnight Commander keeps the directory listing in a cache. The cache
  2648. expire time is configurable in the
  2649. .\"LINK2"
  2650. Virtual File System
  2651. .\"Virtual FS"
  2652. dialog box. This has the funny behavior that even if you make changes to a
  2653. directory, they will not be reflected in the directory listing until you
  2654. force a cache reload with the C-r key. This is a feature (when you think
  2655. it's a bug, think about manipulating files on the other side of the Atlantic
  2656. with ftpfs).
  2657. .PP
  2658. .SH " Tar File System"
  2659. The tar file system provides you with read-only access to your tar
  2660. files and compressed tar files by using the chdir command. To change
  2661. your directory to a tar file, you change your current directory to the
  2662. tar file by using the following syntax:
  2663. .PP
  2664. .I /filename.tar:utar/[dir-inside-tar]
  2665. .PP
  2666. The mc.ext file already provides a shortcut for tar files, this means
  2667. that usually you just point to a tar file and press return to enter
  2668. into the tar file, see the
  2669. .\"LINK2"
  2670. Extension File Edit
  2671. .\"Extension File Edit"
  2672. section for details on how this is done.
  2673. .PP
  2674. Examples:
  2675. .PP
  2676. .nf
  2677. mc-3.0.tar.gz#utar/mc-3.0/vfs
  2678. /ftp/GCC/gcc-2.7.0.tar#utar
  2679. .fi
  2680. .PP
  2681. The latter specifies the full path of the tar archive.
  2682. .SH " FIle transfer over SHell filesystem"
  2683. .PP
  2684. The fish file system is a network based file system that allows you to
  2685. manipulate the files in a remote machine as if they were local. To use
  2686. this, the other side has to either run fish server, or has to have
  2687. bash-compatible shell.
  2688. .PP
  2689. To connect to a remote machine, you just need to chdir
  2690. into a special directory which name is in the following
  2691. format:
  2692. .PP
  2693. .nf
  2694. /#sh:[user@]machine[:options]/[remote-dir]
  2695. .fi
  2696. The,
  2697. .I user,
  2698. .I options
  2699. and
  2700. .I remote-dir
  2701. elements are optional. If
  2702. you specify the
  2703. .I user
  2704. element then the Midnight Commander
  2705. will try to logon on the remote machine as that user,
  2706. otherwise it will use your login name.
  2707. .PP
  2708. The
  2709. .I options
  2710. are 'C' - use compression and 'rsh' use rsh instead
  2711. of ssh. If the
  2712. .I remote-dir
  2713. element is present, your current directory on the remote machine will
  2714. be set to this one.
  2715. .PP
  2716. Examples:
  2717. .PP
  2718. .nf
  2719. /#sh:onlyrsh.mx:r/linux/local
  2720. /#sh:joe@want.compression.edu:C/private
  2721. /#sh:joe@noncompressed.ssh.edu/private
  2722. .fi
  2723. .PP
  2724. .SH " Network File System"
  2725. The Midnight Commander file system is a network base file system that
  2726. allows you to manipulate the files in a remote machine as if they
  2727. were local. To use this, the remote machine must be running the
  2728. mcserv(8) server program.
  2729. .PP
  2730. To connect to a remote machine, you just need to chdir into a special
  2731. directory which name is in the following format:
  2732. .PP
  2733. .I /#mc:[user@]machine[:port][remote-dir]
  2734. .PP
  2735. The,
  2736. .I user, port
  2737. and
  2738. .I remote-dir
  2739. elements are optional. If you specify the
  2740. .I user
  2741. element then the Midnight Commander will try to logon on the remote
  2742. machine as that user, otherwise it will use your login name.
  2743. .PP
  2744. The
  2745. .I port
  2746. element is used when the remote machine running on a special port
  2747. (see the mcserv(8) manual page for more information about ports);
  2748. finally, if the
  2749. .I remote-dir
  2750. element is present, your current directory on the remote machine will
  2751. be set to this one.
  2752. .PP
  2753. Examples:
  2754. .PP
  2755. .nf
  2756. /#mc:ftp.nuclecu.unam.mx/linux/local
  2757. /#mc:joe@foo.edu:11321/private
  2758. .fi
  2759. .PP
  2760. .SH " Undelete File System"
  2761. On Linux systems, if you asked configure to use the ext2fs undelete
  2762. facilities, you will have the undelete file system available.
  2763. Recovery of deleted files is only available on ext2 file systems. The
  2764. undelete file system is just an interface to the ext2fs library to:
  2765. retrieve all of the deleted files names on an ext2fs and provides and
  2766. to extract the selected files into a regular partition.
  2767. .PP
  2768. To use this file system, you have to chdir into the special file name
  2769. formed by the "/#undel" prefix and the file name where the actual
  2770. file system resides.
  2771. .PP
  2772. For example, to recover deleted files on the second partition of the
  2773. first scsi disk on Linux, you would use the following path name:
  2774. .PP
  2775. .nf
  2776. /#undel:sda2
  2777. .fi
  2778. .PP
  2779. It may take a while for the undelfs to load the required information
  2780. before you start browsing files there.
  2781. .PP
  2782. .SH Colors
  2783. The Midnight Commander will try to detect if your terminal supports
  2784. color using the terminal database and your terminal name. Sometimes
  2785. it gets confused, so you may force color mode or disable color mode
  2786. using the -c and -b flag respectively.
  2787. .PP
  2788. If the program is compiled with the Slang screen manager instead of
  2789. ncurses, it will also check the variable
  2790. .B COLORTERM,
  2791. if it is set, it has the same effect as the -c flag.
  2792. .PP
  2793. You may specify terminals that always force color mode
  2794. by adding the
  2795. .I color_terminals
  2796. variable to the Colors
  2797. section of the initialization file. This will prevent the
  2798. Midnight Commander from trying to detect if your terminal
  2799. supports color. Example:
  2800. .nf
  2801. [Colors]
  2802. color_terminals=linux,xterm
  2803. .fi
  2804. .nf
  2805. color_terminals=terminal-name1,terminal-name2...
  2806. .fi
  2807. .PP
  2808. The program can be compiled with both ncurses and slang, ncurses does
  2809. not provide a way to force color mode: ncurses uses just the
  2810. information in the terminal database.
  2811. .PP
  2812. The Midnight Commander provides a way to change the default colors.
  2813. Currently the colors are configured using the environment variable
  2814. .B MC_COLOR_TABLE
  2815. or the Colors section in the initialization file.
  2816. .PP
  2817. In the Colors section, the default color map is loaded from the
  2818. .I base_color
  2819. variable. You can specify an alternate color map for a terminal by
  2820. using the terminal name as the key in this section. Example:
  2821. .PP
  2822. .nf
  2823. [Colors]
  2824. base_color=
  2825. xterm=menu=magenta:marked=,magenta:markselect=,red
  2826. .fi
  2827. .PP
  2828. The format for the color definition is:
  2829. .PP
  2830. .nf
  2831. <keyword>=<foregroundcolor>,<backgroundcolor>:<keyword>= ...
  2832. .fi
  2833. .PP
  2834. The colors are optional, and the keywords are: normal,
  2835. selected, marked, markselect, errors, input, reverse, gauge;
  2836. Menu colors are: menu, menusel, menuhot, menuhotsel; Dialog colors
  2837. are: dnormal, dfocus, dhotnormal, dhotfocus; Help colors
  2838. are: helpnormal, helpitalic, helpbold, helplink, helpslink;
  2839. Viewer color is: viewunderline; Special highlighting colors are:
  2840. executable, directory, link, device, special, core; Editor colors
  2841. are: editnormal, editbold, editmarked.
  2842. .PP
  2843. .I input
  2844. determines the color of input lines used in query dialogs.
  2845. .PP
  2846. .I gauge
  2847. determines the color of the filled part of the progress bar
  2848. (gauge), which shows how many percent of files were copied
  2849. etc. in a graphical way.
  2850. .PP
  2851. The dialog boxes use the following colors:
  2852. .I dnormal
  2853. is used for the normal text,
  2854. .I dfocus
  2855. is the color used for the currently selected component,
  2856. .I dhotnormal
  2857. is the color used to differentiate the hotkey color in normal
  2858. components, whereas the
  2859. .I dhotfocus
  2860. color is used for the highlighted color in the currently selected
  2861. component.
  2862. .PP
  2863. Menus use the same scheme but uses the menu, menusel, menuhot and
  2864. menuhotsel tags instead.
  2865. .PP
  2866. Help uses the following colors:
  2867. .I helpnormal
  2868. is used for normal text,
  2869. .I helpitalic
  2870. is used for text which is emphasized in italic in the manual page,
  2871. .I helpbold
  2872. is used for text which is emphasized in bold in the manual page,
  2873. .I helplink
  2874. is used for not selected hyperlinks and
  2875. .I helpslink
  2876. is used for selected hyperlink.
  2877. .PP
  2878. Special highlight colors determine how files are displayed
  2879. when file highlighting is enabled (see the section on
  2880. .\"LINK2"
  2881. Layout).
  2882. .\"Layout
  2883. .I directory
  2884. is used for directories or symbolic links to directories;
  2885. .I executable
  2886. for executable files;
  2887. .I link
  2888. is used for symbolic links which are neither stalled nor linked
  2889. to a directory;
  2890. .I stalledlink
  2891. is used for stalled symbolic links;
  2892. .I device
  2893. - character and block devices;
  2894. .I special
  2895. is used for special files, such as FIFOs and IPC
  2896. sockets;
  2897. .I core
  2898. is for core files.
  2899. .PP
  2900. The possible colors are: black, gray, red, brightred, green,
  2901. brightgreen, brown, yellow, blue, brightblue, magenta, brightmagenta,
  2902. cyan, brightcyan, lightgray and white. And there is a special keyword
  2903. for transparent background. It is 'default'. The 'default' can only be
  2904. used for background color. Example:
  2905. .nf
  2906. [Colors]
  2907. base_color=normal=white,default:marked=magenta,default
  2908. .fi
  2909. .PP
  2910. .SH "Special Settings"
  2911. Most of the settings of the Midnight Commander can be changed from the
  2912. menus. However, there are a small number of settings which can only be
  2913. changed by editing the setup file.
  2914. .PP
  2915. These variables may be set in your ~/.mc/ini file:
  2916. .PP
  2917. .I clear_before_exec.
  2918. .IP
  2919. By default the Midnight Commander clears the screen before executing a
  2920. command. If you would prefer to see the output of the command at the
  2921. bottom of the screen, edit your ~/mc.ini file and change the value of
  2922. the field clear_before_exec to 0.
  2923. .PP
  2924. .I confirm_view_dir.
  2925. .IP
  2926. If you press F3 on a directory, normally MC enters that directory. If
  2927. this flag is set to 1, then MC will ask for confirmation before
  2928. changing the directory if you have files tagged.
  2929. .PP
  2930. .I ftpfs_retry_seconds.
  2931. .IP
  2932. This value is the number of seconds the Midnight Commander will wait
  2933. before attempting a reconnection to an ftp server that has denied the
  2934. login. If the value is zero, the the program will not retry the
  2935. login.
  2936. .PP
  2937. .I ftpfs_use_passive_connections.
  2938. .IP
  2939. This option is by off default. This makes the ftpfs code use the
  2940. passive open mode for transferring files. This is used by people that
  2941. are behind a filtering packet router. This option just works if you
  2942. are not using an ftp proxy.
  2943. .PP
  2944. .I max_dirt_limit.
  2945. .IP
  2946. Specifies how many screen updates can be skipped at most in the
  2947. internal file viewer. Normally this value is not significant, because
  2948. the code automatically adjusts the number of updates to skip according
  2949. to the rate of incoming keypresses. However, on very slow machines or
  2950. terminals with a fast keyboard auto repeat, a big value can make
  2951. screen updates too jumpy.
  2952. .IP
  2953. It seems that setting max_dirt_limit to 10 causes the best behavior,
  2954. and that is the default value.
  2955. .PP
  2956. .I mouse_move_pages.
  2957. .IP
  2958. Controls whenever scrolling with the mouse is done by pages or line by
  2959. line on the panels.
  2960. .PP
  2961. .I mouse_move_pages_viewer.
  2962. .IP
  2963. Controls if scrolling with the mouse is done by pages or line by line
  2964. on the internal file viewer.
  2965. .PP
  2966. .I old_esc_mode
  2967. .IP
  2968. By default the Midnight Commander treats the ESC key as a key prefix
  2969. (old_esc_mode=0), if you set this option (old_esc_mode=1), then the
  2970. ESC key will act as a prefix key for one second, and if no extra keys
  2971. have arrived, then the ESC key is interpreted as a cancel key (ESC
  2972. ESC).
  2973. .PP
  2974. .PP
  2975. .I only_leading_plus_minus
  2976. .IP
  2977. set special treatment for '+', '-', '*' in command line (select,
  2978. unselect, reverse selection) only if command line is empty. No need to
  2979. quote this characters in the middle of the command line. But we can not
  2980. change selection when command line is not empty.
  2981. .I panel_scroll_pages
  2982. .IP
  2983. If set (the default), panel will scroll by half the display when the
  2984. cursor reaches the end or the beginning of the panel, otherwise it
  2985. will just scroll a file at a time.
  2986. .PP
  2987. .I preserve_uidgid
  2988. .IP
  2989. If this option is set (the default), when logged in as root the
  2990. default will be to preserve the UID and the GID of files. Some users
  2991. prefer to disable this option, so that's why it's configurable.
  2992. .PP
  2993. .I show_output_starts_shell
  2994. .IP
  2995. This variable only works if you are not using the subshell support.
  2996. When you use the C-o keystroke to go back to the user screen, if this
  2997. one is set, you will get a fresh shell. Otherwise, pressing any key
  2998. will bring you back to the Midnight Commander.
  2999. .PP
  3000. .I torben_fj_mode
  3001. .IP
  3002. If this flag is set, then the home and end keys will work slightly
  3003. different on the panels, instead of moving the selection to the first
  3004. and last files in the panels, they will act as follows:
  3005. .IP
  3006. The home key will: Go up to the middle line, if below it; else go to
  3007. the top line unless it is already on the top line, in this case it
  3008. will go to the first file in the panel.
  3009. .IP
  3010. The end key has a similar behavior: Go down to the middle line, if
  3011. over it; else go to the bottom line unless you already are at the
  3012. bottom line, in such case it will move the selection to the last file
  3013. name in the panel.
  3014. .PP
  3015. .I use_file_to_guess_type
  3016. .IP
  3017. If this variable is on (the default) it will spawn the file command to
  3018. match the file types listed on the
  3019. .\"LINK2"
  3020. mc.ext file.
  3021. .\"Extension File Edit"
  3022. .PP
  3023. .I xterm_mode
  3024. .IP
  3025. If this variable is on (default is off) when you browse the file
  3026. system on a Tree panel, it will automatically reload the other panel
  3027. with the contents of the selected directory.
  3028. .PP
  3029. .SH Terminal databases
  3030. The Midnight Commander provides a way to fix your system terminal
  3031. database without requiring root privileges. The Midnight Commander
  3032. searches in the system initialization file (the mc.lib file located in
  3033. the Midnight Commander library directory) or in the ~/.mc/ini file
  3034. for the section "terminal:your-terminal-name" and then for the section
  3035. "terminal:general", each line of the section contains a key symbol
  3036. that you want to define, followed by an equal sign and the definition
  3037. for the key. You can use the special \\E form to represent the escape
  3038. character and the ^x to represent the control-x character.
  3039. .PP
  3040. The possible key symbols are:
  3041. .PP
  3042. .nf
  3043. f0 to f20 Function keys f0-f20
  3044. bs backspace
  3045. home home key
  3046. end end key
  3047. up up arrow key
  3048. down down arrow key
  3049. left left arrow key
  3050. right right arrow key
  3051. pgdn page down key
  3052. pgup page up key
  3053. insert the insert character
  3054. delete the delete character
  3055. complete to do completion
  3056. .fi
  3057. .PP
  3058. For example, to define the key insert to be the Escape + [ + O + p, you
  3059. set this in the ini file:
  3060. .PP
  3061. .nf
  3062. insert=\\E[Op
  3063. .fi
  3064. .PP
  3065. The
  3066. .I complete
  3067. key symbol represents the escape sequences used to invoke the
  3068. completion process, this is invoked with M-tab, but you can define
  3069. other keys to do the same work (on those keyboard with tons of nice
  3070. and unused keys everywhere).
  3071. .PP
  3072. .SH ""
  3073. .SH FILES
  3074. .PP
  3075. The program will retrieve all of its information relative to the
  3076. MCHOME environment variable, if this variable is not set, then it will
  3077. fall back to the @prefix@ directory.
  3078. .PP
  3079. @prefix@/lib/mc/mc.hlp
  3080. .IP
  3081. The help file for the program.
  3082. .PP
  3083. @prefix@/lib/mc/mc.ext
  3084. .IP
  3085. The default system-wide extensions file.
  3086. .PP
  3087. ~/.mc/ext
  3088. .IP
  3089. User's own extension, view configuration and edit configuration
  3090. file. They override the contents of the system wide files if present.
  3091. .PP
  3092. @prefix@/lib/mc/mc.ini
  3093. .IP
  3094. The default system-wide setup for the Midnight Commander, used only if
  3095. the user lacks his own ~/.mc/ini file.
  3096. .PP
  3097. @prefix@/lib/mc/mc.lib
  3098. .IP
  3099. Global settings for the Midnight Commander. Settings in this file are
  3100. global to any Midnight Commander, it is useful to define site-global
  3101. .\"LINK2
  3102. terminal settings.
  3103. .\"Terminal databases"
  3104. .PP
  3105. ~/.mc/ini
  3106. .IP
  3107. User's own setup. If this file is present then the setup is loaded
  3108. from here instead of the system-wide startup file.
  3109. .PP
  3110. @prefix@/lib/mc/mc.hint
  3111. .IP
  3112. This file contains the hints (cookies) displayed by the program.
  3113. .PP
  3114. @prefix@/lib/mc/mc.menu
  3115. .IP
  3116. This file contains the default system-wide applications menu.
  3117. .PP
  3118. ~/.mc/menu
  3119. .IP
  3120. User's own application menu. If this file is present it is used
  3121. instead of the system-wide applications menu.
  3122. .PP
  3123. ~/.mc/Tree
  3124. .IP
  3125. The directory list for the directory tree and tree view features.
  3126. .PP
  3127. \&./.mc.menu
  3128. .IP
  3129. Local user-defined menu. If this file
  3130. is present it is used instead of the home or system-wide
  3131. applications menu.
  3132. .PP
  3133. .\"SKIP_SECTION"
  3134. .SH LICENSE
  3135. This program is distributed under the terms of the GNU General Public
  3136. License as published by the Free Software Foundation. See the built-in
  3137. help for details on the License and the lack of warranty.
  3138. .SH AVAILABILITY
  3139. The latest version of this program can be found at ftp.nuclecu.unam.mx
  3140. in the directory /linux/local and from Europe at sunsite.mff.cuni.cz in the
  3141. directory /GNU/mc and at ftp.teuto.de in the directory /lmb/mc.
  3142. .SH SEE ALSO
  3143. ed(1), gpm(1), mcserv(8), terminfo(1), view(1), sh(1), bash(1),
  3144. tcsh(1), zsh(1).
  3145. .PP
  3146. .nf
  3147. The Midnight Commander page on the World Wide Web:
  3148. http://www.gnome.org/mc/
  3149. .fi
  3150. .PP
  3151. .SH AUTHORS
  3152. Miguel de Icaza (miguel@roxanne.nuclecu.unam.mx), Janne Kukonlehto
  3153. (jtklehto@paju.oulu.fi), Radek Doulik (rodo@ucw.cz), Fred
  3154. Leeflang (fredl@nebula.ow.org), Dugan Porter (dugan@b011.eunet.es),
  3155. Jakub Jelinek (jj@sunsite.mff.cuni.cz), Ching Hui
  3156. (mr854307@cs.nthu.edu.tw), Andrej Borsenkow (borsenkow.msk@sni.de),
  3157. Norbert Warmuth (nwarmuth@privat.circular.de),
  3158. Mauricio Plaza (mok@roxanne.nuclecu.unam.mx), Paul Sheer
  3159. (psheer@icon.co.za) and Pavel Machek (pavel@ucw.cz) are the developers
  3160. of this package;
  3161. Alessandro Rubini (rubini@ipvvis.unipv.it) has been especially helpful
  3162. debugging and enhancing the program's mouse support, John Davis
  3163. (davis@space.mit.edu) also made his S-Lang library available to us
  3164. under the GPL and answered my questions about it, and the following
  3165. people have contributed code and many bug fixes (in alphabetical
  3166. order):
  3167. .PP
  3168. Adam Tla/lka (atlka@sunrise.pg.gda.pl),
  3169. alex@bcs.zp.ua (Alex I. Tkachenko), Antonio Palama,
  3170. DOS port (palama@posso.dm.unipi.it), Erwin van Eijk
  3171. (wabbit@corner.iaf.nl), Gerd Knorr (kraxel@cs.tu-berlin.de),
  3172. Jean-Daniel Luiset (luiset@cih.hcuge.ch), Jon Stevens
  3173. (root@dolphin.csudh.edu), Juan Francisco Grigera, Win32 port
  3174. (j-grigera@usa.net), Juan Jose Ciarlante (jjciarla@raiz.uncu.edu.ar),
  3175. Ilya Rybkin (rybkin@rouge.phys.lsu.edu), Marcelo Roccasalva
  3176. (mfroccas@raiz.uncu.edu.ar), Massimo Fontanelli (MC8737@mclink.it),
  3177. Pavel Roskin (proski@gnu.org),
  3178. Sergey Ya. Korshunoff (root@seyko.msk.su), Thomas Pundt
  3179. (pundtt@math.uni-muenster.de), Timur Bakeyev
  3180. (timur@goff.comtat.kazan.su), Tomasz Cholewo
  3181. (tjchol01@mecca.spd.louisville.edu), Torben Fjerdingstad
  3182. (torben.fjerdingstad@uni-c.dk), Vadim Sinolitis (vvs@nsrd.npi.msu.su)
  3183. and Wim Osterholt (wim@djo.wtm.tudelft.nl).
  3184. .PP
  3185. .SH BUGS
  3186. See the file TODO in the distribution for information on what
  3187. remains to be done.
  3188. .PP
  3189. If you want to report a problem with the program, please send mail to
  3190. this address: mc-devel@gnome.org.
  3191. .PP
  3192. Provide a detailed description of the bug, the version of the program
  3193. you are running (mc -V display this information), the operating system
  3194. you are running the program on and if the program crashes, we would
  3195. appreciate a stack trace.