mc.1.in 100 KB

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