mc.1.in 125 KB

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