Tauri System administrator documentation Documentation administrateur système

Midnight Commander

Midnight Commander (mc) is the classic two-panel file manager: browse, view, edit, copy, move and delete files from an SSH session. Tauri runs the original program (version 4.8.33), with its interface in French. Midnight Commander (mc) est le gestionnaire de fichiers à deux panneaux bien connu : parcourir, voir, modifier, copier, déplacer et supprimer des fichiers depuis une session SSH. Tauri exécute le programme d'origine (version 4.8.33), avec son interface en français.

1. Before you startAvant de commencer

WhatQuoiDetailDétail
An SSH session with a terminalUne session SSH avec terminalAny SSH client: OpenSSH (ssh compte@domaine), PuTTY… A command passed on the ssh line (ssh hote "mc") has no terminal: use ssh -t. mc does not start on the server's own console, which is not a terminal of this kind.N'importe quel client SSH : OpenSSH (ssh compte@domaine), PuTTY… Une commande passée sur la ligne ssh (ssh hote "mc") n'a pas de terminal : employez ssh -t. mc ne démarre pas sur la console du serveur elle-même, qui n'est pas un terminal de ce type.
A UTF-8 terminalUn terminal en UTF-8Frames and accented file names are drawn in UTF-8. PuTTY: Window › Translation, character set UTF-8.Les cadres et les noms accentués sont dessinés en UTF-8. PuTTY : Window › Translation, jeu de caractères UTF-8.
A known terminal typeUn type de terminal connuxterm, xterm-256color, PuTTY, screen, tmux, linux, vt100, vt220, alacritty, st, foot, kitty. Any other is handled as xterm-256color.xterm, xterm-256color, PuTTY, screen, tmux, linux, vt100, vt220, alacritty, st, foot, kitty. Tout autre est traité comme xterm-256color.

2. Start and quitDémarrer et quitter

mc  # at the shell prompt, after logging in# à l'invite du shell, une fois connecté

F10 quits and brings back the shell prompt. You may resize the window at any time: mc redraws itself to the new size. F10 quitte et rend l'invite du shell. Vous pouvez redimensionner la fenêtre à tout moment : mc se redessine à la nouvelle taille.

3. KeysLes touches

KeyToucheIn the panelsDans les panneaux
F3View the fileVoir le fichier
F4Edit the file (in the editor: F2 saves after confirmation, F10 leaves)Modifier le fichier (dans l'éditeur : F2 enregistre après confirmation, F10 sort)
F5Copy — the destination field is selected: type a new name or pathCopier — le champ de destination est sélectionné : tapez un nouveau nom ou un chemin
F6Rename or moveRenommer ou déplacer
F7Create a folderCréer un dossier
F8Delete (asks for confirmation)Supprimer (demande confirmation)
F9Menus (Left, File, Command, Options, Right)Menus (Gauche, Fichier, Commande, Options, Droite)
F10QuitQuitter
TabSwitch to the other panelPasser à l'autre panneau
EnterEntréeOpen the folder under the cursorOuvrir le dossier sous le curseur
InsertInserSelect / deselect a file (to copy or delete several)Sélectionner / désélectionner un fichier (pour en copier ou supprimer plusieurs)
Ctrl-SQuick search: type the start of a name, the cursor jumps to itRecherche rapide : tapez le début d'un nom, le curseur y saute
Ctrl-OShow the output of your commands; Ctrl-O again brings the panels backVoir la sortie de vos commandes ; Ctrl-O à nouveau ramène les panneaux
Esc then a digitÉchap puis un chiffreSame as the F key: Esc 1 = F1 … Esc 0 = F10 — for terminals or keyboards without F keysÉquivaut à la touche F : Échap 1 = F1 … Échap 0 = F10 — pour les terminaux ou claviers sans touches F
F1Help (in English: mc has no French help)Aide (en anglais : mc n'a pas d'aide en français)

4. The command lineLa ligne de commande

Below the panels, after $, you can type a command and press Enter: it runs, then the panels come back (Ctrl-O shows what it printed). One command with its arguments and simple redirections (>, >>, <, 2>&1); chains and pipes (|, ;, &&) are refused. Sous les panneaux, après $, vous pouvez taper une commande et valider : elle s'exécute, puis les panneaux reviennent (Ctrl-O montre ce qu'elle a affiché). Une commande avec ses arguments et des redirections simples (>, >>, <, 2>&1) ; les enchaînements et tubes (|, ;, &&) sont refusés.

cd moves the active panel. A path is relative to the current folder, or absolute in the form /c:/…: cd déplace le panneau actif. Un chemin est relatif au dossier courant, ou absolu sous la forme /c:/… :

cd www                     # relative: the www/ folder of the current folder# relatif : le dossier www/ du dossier courant
cd /c:/user/<compte>/logs  # absolute: note the leading /# absolu : notez le / initial
cd /@fw:/                  # another disk: the shared frameworks (read-only)# un autre disque : les frameworks partagés (lecture seule)

5. Where you can goOù vous pouvez aller

6. Your settingsVos réglages

mc keeps its settings in ~/.config/mc/, its history in ~/.local/share/mc/ and its temporary files in ~/tmp/, all in your account (they count in your quota). Delete ~/.config/mc/ to go back to the default settings. mc range ses réglages dans ~/.config/mc/, son historique dans ~/.local/share/mc/ et ses fichiers temporaires dans ~/tmp/, le tout dans votre compte (ils comptent dans votre quota). Effacez ~/.config/mc/ pour revenir aux réglages par défaut.

7. LimitsLimites

8. For the operatorPour l'opérateur

The program arrives with the updates (update upgrade installs mc like any program). Its data — themes, French translation, help, menus, key maps — live on @fw:/mc/, a disk the accounts can read, and come as a package: send mc-4.8.33-donnees.zip by FTPS to root's home, then, as root: Le programme arrive avec les mises à jour (update upgrade installe mc comme tout programme). Ses données — thèmes, traduction française, aide, menus, raccourcis — vivent sur @fw:/mc/, un disque que les comptes peuvent lire, et viennent en paquet : envoyez mc-4.8.33-donnees.zip par FTPS chez root, puis, en root :

unzip -o -d @fw:/ mc-4.8.33-donnees.zip  # once; again after a new version of the package# une fois ; à nouveau après une nouvelle version du paquet
Without the dataSans les données

mc still starts, but without its theme and in English. A new image already contains them. mc démarre quand même, mais sans son thème et en anglais. Une image neuve les contient déjà.