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