issue98:labolinux_-_midnight_commander
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue98:labolinux_-_midnight_commander [2015/06/30 11:07] – créée auntiee | issue98:labolinux_-_midnight_commander [2015/07/16 10:28] (Version actuelle) – [4] darkjam | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | Several years ago, a friend started talking about the importance of search and how searching was going to change the way we use computers. I listened intently, but, coming from a DOS (Disk Operating System) background, something felt inherently wrong with the conversation. I've always been a fan of file structure, and having a mess of files that you search just didn't feel right. | + | ===== 1 ===== |
+ | |||
+ | **Several years ago, a friend started talking about the importance of search and how searching was going to change the way we use computers. I listened intently, but, coming from a DOS (Disk Operating System) background, something felt inherently wrong with the conversation. I've always been a fan of file structure, and having a mess of files that you search just didn't feel right. | ||
My friend was correct, search has greatly changed the way we use computers. Desktop search arrived in a big way across many operating systems. Initially, when search was implemented, | My friend was correct, search has greatly changed the way we use computers. Desktop search arrived in a big way across many operating systems. Initially, when search was implemented, | ||
- | Just the other day a family member came to me with a cellphone problem. The problem she was experiencing was that she couldn' | + | Just the other day a family member came to me with a cellphone problem. The problem she was experiencing was that she couldn' |
- | That long-winded introduction brings me to my favourite file management tool, Midnight Commander (mc). Midnight Commander is a text-based orthodox file manager that looks and mirrors a lot of the functionality of the DOS tool Norton Commander written almost 29 years ago by John Socha and released by Peter Norton. | + | Il y a plusieurs années, un ami a commencé à parler de l' |
+ | |||
+ | Mon ami avait raison, search - les recherches - ont vraiment changé notre façon d' | ||
+ | |||
+ | L' | ||
+ | ===== 2 ===== | ||
+ | |||
+ | **That long-winded introduction brings me to my favourite file management tool, Midnight Commander (mc). Midnight Commander is a text-based orthodox file manager that looks and mirrors a lot of the functionality of the DOS tool Norton Commander written almost 29 years ago by John Socha and released by Peter Norton. | ||
Orthodox file managers have three panels, two top panels for graphical file management, and a command-line panel at the bottom. One of the things I like about Midnight Commander is the fact that it gives you a graphical-like interface on top of a text-based shell so it can be used on systems without a desktop interface (GUI). | Orthodox file managers have three panels, two top panels for graphical file management, and a command-line panel at the bottom. One of the things I like about Midnight Commander is the fact that it gives you a graphical-like interface on top of a text-based shell so it can be used on systems without a desktop interface (GUI). | ||
Ligne 15: | Ligne 24: | ||
Basic Usage | Basic Usage | ||
- | On Ubuntu, Midnight Commander is mouse aware so you can just click on the top menu options: Left, File, Command, Options and Right. To access the menu in a text-only session, simply press the F9 key. The Left and Right menu options are identical and the actions work in each of the left and right shells. | + | On Ubuntu, Midnight Commander is mouse aware so you can just click on the top menu options: Left, File, Command, Options and Right. To access the menu in a text-only session, simply press the F9 key. The Left and Right menu options are identical and the actions work in each of the left and right shells.** |
- | To switch between left and right panels, press the tab key. The insert key is used to select/mark files. Marked files change colour to yellow (in the default mc colour scheme; it’s possible to change colour schemes). To select all files in a folder press + (which is usually shift = on most keyboards) then use * to select all files. Pressing - will do the opposite. | + | Cette introduction interminable m' |
+ | |||
+ | Des gestionnaires de fichiers orthodoxes ont trois panneaux, deux panneaux en haut pour une gestion graphique des fichiers, et un panneau en ligne de commande en bas. Une des choses qui me plaisent dans Midnight Commander est qu'il vous donne une interface quasi graphique au-dessus d'un shell textuel et peut donc être utilisé sur des systèmes sans bureau en interface graphique (GUI). | ||
+ | |||
+ | Midnight Commander n'est pas installé par défaut sur Ubuntu et vous aurez donc à l' | ||
+ | |||
+ | sudo apt-get install mc | ||
+ | |||
+ | Utilisation de base | ||
+ | |||
+ | Sous Ubuntu, Midnight Commander reconnaît la souris ; ainsi, vous pouvez tout simplement cliquer sur les options du menu en haut : Gauche, Fichier, Commande, Options et Droite. Pour accéder au menu dans une session textuelle, il suffit d' | ||
+ | |||
+ | |||
+ | |||
+ | ===== 3 ===== | ||
+ | |||
+ | **To switch between left and right panels, press the tab key. The insert key is used to select/mark files. Marked files change colour to yellow (in the default mc colour scheme; it’s possible to change colour schemes). To select all files in a folder press + (which is usually shift = on most keyboards) then use * to select all files. Pressing - will do the opposite. | ||
Pressing the Enter key while on top of a compressed file will attempt to view the contents of the compressed file (zip/gz for example). The F5 key copies marked files from one panel to another while F6 moves the files. If you don’t have any files marked, F5 and F6 will copy/move the file that is currently selected (reversed background). To create a new directory press the F7 key. F8 deletes the marked files or the currently selected file. Lastly, the F4 key will edit whatever text file you’re hovering over (letting you chose from ed, nano, mcedit or vim.tiny). | Pressing the Enter key while on top of a compressed file will attempt to view the contents of the compressed file (zip/gz for example). The F5 key copies marked files from one panel to another while F6 moves the files. If you don’t have any files marked, F5 and F6 will copy/move the file that is currently selected (reversed background). To create a new directory press the F7 key. F8 deletes the marked files or the currently selected file. Lastly, the F4 key will edit whatever text file you’re hovering over (letting you chose from ed, nano, mcedit or vim.tiny). | ||
- | Among the more useful options in the left and right menus are the listing mode, sort order and ftp/sftp links. Listing mode has several options: full file list, brief file list, long file list and user defined list. Full file list is the default mode in Midnight Commander. On the leftmost column are the files and directories, | + | Among the more useful options in the left and right menus are the listing mode, sort order and ftp/sftp links. Listing mode has several options: full file list, brief file list, long file list and user defined list. Full file list is the default mode in Midnight Commander. On the leftmost column are the files and directories, |
- | At the top of each panel are a less-than symbol < and a caret ^ symbol. Clicking on the caret ^ symbol brings up a short history file of the paths you’ve entered. Beside the less-than symbol is the current path you’re in. In the example below, the path on the left pane is ~/Downloads and in the right I’m connected to a machine called xbmc as the xbmc username in the /home folder. | + | Pour basculer entre les panneaux gauche et droit, appuyez sur la touche Tabulation. La touche Inser sert à sélectionner/ |
+ | |||
+ | Si vous appuyez sur la touche Entrée pendant que vous vous trouvez sur un fichier comprimé, il essaiera d' | ||
+ | |||
+ | Parmi les options les plus utiles dans les menus gauche et droite se trouve le mode de listing, l' | ||
+ | |||
+ | ===== 4 ===== | ||
+ | |||
+ | **At the top of each panel are a less-than symbol < and a caret ^ symbol. Clicking on the caret ^ symbol brings up a short history file of the paths you’ve entered. Beside the less-than symbol is the current path you’re in. In the example below, the path on the left pane is ~/Downloads and in the right I’m connected to a machine called xbmc as the xbmc username in the /home folder. | ||
Midnight Commander makes it easy to sftp (secure ftp) files to a server. Simply click the Left or Right menu option and select SFTP link. You’ll be asked to enter the machine name. If you’re connected to a machine where you use a different username be sure to include it before an @ symbol. So, in the example above: xbmc@xbmc where xbmc is the username and the machine name. If my username on the machine we were sshing into was charles, it would be charles@xbmc. Midnight Commander will ask for the password and mount the remote machine’s mount point. | Midnight Commander makes it easy to sftp (secure ftp) files to a server. Simply click the Left or Right menu option and select SFTP link. You’ll be asked to enter the machine name. If you’re connected to a machine where you use a different username be sure to include it before an @ symbol. So, in the example above: xbmc@xbmc where xbmc is the username and the machine name. If my username on the machine we were sshing into was charles, it would be charles@xbmc. Midnight Commander will ask for the password and mount the remote machine’s mount point. | ||
- | You can also type sftp username@machinename into the third panel at the bottom of midnight commander, but rather than mounting a folder in one of the panels it just runs a regular interactive sftp session. | + | You can also type sftp username@machinename into the third panel at the bottom of midnight commander, but rather than mounting a folder in one of the panels it just runs a regular interactive sftp session.** |
- | If you’re a fan of skinning and don’t like Midnight Commander’s default colours, mc can be skinned. Unfortunately, | + | En haut de chaque panneau, il y a un symbole < (moins de) et un symbole ^ (accent circonflexe). Si vous cliquez sur le symbole ^, un bref historique des chemins entrés s' |
+ | |||
+ | Midnight Commander rend facile l' | ||
+ | |||
+ | Vous pouvez également taper sftp nomd' | ||
+ | |||
+ | |||
+ | |||
+ | ===== 5 ===== | ||
+ | |||
+ | **If you’re a fan of skinning and don’t like Midnight Commander’s default colours, mc can be skinned. Unfortunately, | ||
https:// | https:// | ||
Ligne 40: | Ligne 83: | ||
I’ve only covered some of the basics of what Midnight Commander can do. MC can undelete files (command menu), compare files and directories, | I’ve only covered some of the basics of what Midnight Commander can do. MC can undelete files (command menu), compare files and directories, | ||
- | If you’re in that spot where you like graphical user interfaces, but also like the speed the console affords, Midnight Commander is an awesome tool. | + | If you’re in that spot where you like graphical user interfaces, but also like the speed the console affords, Midnight Commander is an awesome tool.** |
+ | |||
+ | Si vous aimez les skins et n' | ||
+ | |||
+ | Ces étapes impliquent le placement d'un fichier named.ini dans ~/ | ||
+ | |||
+ | skin=named | ||
+ | |||
+ | Le fichier named.ini contient diverses [sections] qui définissent le nom du skin, l' | ||
+ | |||
+ | Je n'ai présenté que quelques-unes des choses basiques que Midnight Commander sait faire. MC peut restaurer des fichiers supprimés (mmenu Commande), comparer des fichiers et des répertoires, | ||
+ | |||
+ | Si vous aimez les interfaces graphiques, mais aussi la rapidité fournie par la console, Midnight Commander est un outil génial. |
issue98/labolinux_-_midnight_commander.1435655230.txt.gz · Dernière modification : 2015/06/30 11:07 de auntiee