Midnight Commander (en): Unterschied zwischen den Versionen

Aus Gemini-Wiki
Zur Navigation springen Zur Suche springen
 
(7 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 4: Zeile 4:
 
  |}
 
  |}
 
[[Bild:Midnight-Commander.jpg|thumb|400px|Midnight Commander]]
 
[[Bild:Midnight-Commander.jpg|thumb|400px|Midnight Commander]]
GNU '''Midnight Commander''', known as '''mc''', is a free clone of the DOS Tool [http://en.wikipedia.org/wiki/Norton_Commander Norton Commander] (→twoo panels) and is one of the most famous console programs for Linux. Over a [http://en.wikipedia.org/wiki/Virtual_file_system VFS] it's also possible to access archives ans network servers easily.
+
GNU '''Midnight Commander''', known as '''mc''', is a free clone of the DOS Tool [http://en.wikipedia.org/wiki/Norton_Commander Norton Commander] (→two panels) and is one of the most famous console programs for Linux. Over a [http://en.wikipedia.org/wiki/Virtual_file_system VFS] it's also possible to access archives ans network servers easily.
  
 
For Linux beginners, if you have used a similar tool under DOS, Windows or OS/2, it helps with many tasks. The biggest advantage is the versatility: mouse support (GPM), integrated [[FTP (en)|FTP]] Client, unpack different types of archives and packages (of course the programs need to be installed before) tar.gz, bzip, zip, rar, rpm, deb, ... .  And yes, many operations are faster in the console using commands.  But with mc it's easier, e.g. copying, deleting, ... of files which can be difficult to filter. And last but not least, the integrated editor with syntax support (for almost any language) and simple interface is a big help for new users (which might think vi is a French cheese).
 
For Linux beginners, if you have used a similar tool under DOS, Windows or OS/2, it helps with many tasks. The biggest advantage is the versatility: mouse support (GPM), integrated [[FTP (en)|FTP]] Client, unpack different types of archives and packages (of course the programs need to be installed before) tar.gz, bzip, zip, rar, rpm, deb, ... .  And yes, many operations are faster in the console using commands.  But with mc it's easier, e.g. copying, deleting, ... of files which can be difficult to filter. And last but not least, the integrated editor with syntax support (for almost any language) and simple interface is a big help for new users (which might think vi is a French cheese).
Zeile 32: Zeile 32:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
== Wichtige Tastaturkürzel ==
+
== Important shortcuts ==
 
{|class="wikitable"
 
{|class="wikitable"
  !Tastaturkürzel / Kombinationen
+
  !Shortcut / combination
  !Auswirkung was geschieht
+
  !Action
 
  |-
 
  |-
 
  |{{Taste|F1}} .. {{Taste|F10}}
 
  |{{Taste|F1}} .. {{Taste|F10}}
  |siehe Menüleiste am unteren Bildschirmrand
+
  |see menu bar at the lower screen border<br />
 +
It's also possible to use the functions by pressing {{Taste|ESC}}+{{Taste|1}}...{{Taste|0}}.
 
  |-
 
  |-
 
  |{{Taste|Tab}}
 
  |{{Taste|Tab}}
  |Wechseln auf anderes Panel
+
  |Switch the active panel
 
  |-
 
  |-
 
  |{{Taste|Ctrl}}+{{Taste|o}}
 
  |{{Taste|Ctrl}}+{{Taste|o}}
  |Wegklappen der Panels, so dass der normale Bildschirminhalt sichtbar wird
+
  |Hide the panel, to see the normal screen
 
  |-
 
  |-
 
  |{{Taste|Ctrl}}+{{Taste|x}} i
 
  |{{Taste|Ctrl}}+{{Taste|x}} i
  |Infomodus im anderen Fenster
+
  |Info mode in the other panel
 
  |-
 
  |-
 
  |{{Taste|Ctrl}}+{{Taste|x}} q
 
  |{{Taste|Ctrl}}+{{Taste|x}} q
  |Quickview im anderen Fenster
+
  |Quick view in the other panel
 
  |-
 
  |-
 
  |{{Taste|Ctrl}}+{{Taste|s}} / {{Taste|Alt}}+{{Taste|s}}
 
  |{{Taste|Ctrl}}+{{Taste|s}} / {{Taste|Alt}}+{{Taste|s}}
  |Namenssuche im aktuellen Fenster
+
  |Name search in the actual panel
 
  |-
 
  |-
 
  |{{Taste|Esc}}+{{Taste|p}}
 
  |{{Taste|Esc}}+{{Taste|p}}
  |vorheriges Kommando
+
  |previous command
 
  |-
 
  |-
 
  |{{Taste|Esc}}+{{Taste|↵ Enter}}
 
  |{{Taste|Esc}}+{{Taste|↵ Enter}}
  |aktuellen Dateinamen auf Kommandozeile übernehmen
+
  |copy the actual file name on the console
 
  |-
 
  |-
 
  |{{Taste|Esc}}+{{Taste|Tab}}
 
  |{{Taste|Esc}}+{{Taste|Tab}}
  |Kommando-Vervollständigung (ggfs. auch zweimal)
+
  |Complete the command (apply twice sometimes)
 
  |-
 
  |-
 
  |{{Taste|Alt}}+{{Taste|o}}
 
  |{{Taste|Alt}}+{{Taste|o}}
  |Fenster angleichen (anderes Fenster erhält gleichen Pfad!)  
+
  |Sync panels (other panel sets the same path!)  
 
  |-
 
  |-
 
  |{{Taste|Alt}}+{{Taste|c}}
 
  |{{Taste|Alt}}+{{Taste|c}}
  |Wechsel in ein anzugebendes Verzeichnis
+
  |Change in a specified directory
 
  |-
 
  |-
 
  |{{Taste|Alt}}+{{Taste|Tab}}
 
  |{{Taste|Alt}}+{{Taste|Tab}}
  |Shell-Erweiterung (nicht unter X)  
+
  |Shell extensions (not under X)  
 
  |-
 
  |-
 
  |{{Taste|Alt}}+{{Taste|?}}
 
  |{{Taste|Alt}}+{{Taste|?}}
  |Dateisuche
+
  |File search
 
  |-
 
  |-
 
  |{{Taste|Alt}}+{{Taste|t}}
 
  |{{Taste|Alt}}+{{Taste|t}}
  |(toggle) Wechsel zw. verschiedenen Listing-Arten
+
  |(toggle) Switch different displays
 
  |-
 
  |-
 
  |{{Taste|+}} / {{Taste|-}}
 
  |{{Taste|+}} / {{Taste|-}}
Zeile 83: Zeile 84:
 
  |-
 
  |-
 
  |{{Taste|Insert}}
 
  |{{Taste|Insert}}
  |Einzelne Dateien / Verzeichnisse selektieren / deselektieren
+
  |Select/deselect single File/Directory
 
  |-
 
  |-
 
  |{{Taste|+}} {{Taste|*}} {{Taste|↵ Enter}}
 
  |{{Taste|+}} {{Taste|*}} {{Taste|↵ Enter}}
  |Alle Dateien / Verzeichnisse auswählen
+
  |Select all files/directories
 
  |-
 
  |-
 
  |{{Taste|-}} {{Taste|*}} {{Taste|↵ Enter}}
 
  |{{Taste|-}} {{Taste|*}} {{Taste|↵ Enter}}
  |Auswahl von allen Dateien / Verzeichnissen rückgängig machen
+
  |Deselect all files/directories
 
  |}
 
  |}
  
== Tipps & Tricks ==
+
== Tips & Tricks ==
=== Einstellungen: ===
+
=== Settings: ===
* Wer [[vi]] nicht mag, sollte den internen Editor über "Options / Configuration / Use internal edit" aktivieren.
+
* If you don't like vi, activate the internal editor over "Options / Configuration / Use internal edit".
* Lynx-artige Bewegungen bedeutet, dass man einfach mit den Cursortasten in Verzeichnisse hinein und heraus wechseln kann.
+
* Lynx movements mean: use the cursor buttons to enter / leave a directory.
  
 
=== SCP Client: ===
 
=== SCP Client: ===
Ein [[SCP]] Zugriff ist mit folgendem Befehl möglich. Durch die Eingabe von <code>'''cd'''</code> kann man die Verbindung unterbrechen.
+
A [[SCP (en)|SCP]] access is possible with following command. Use the command <code>'''cd'''</code> to close the connection.
 
<syntaxhighlight>
 
<syntaxhighlight>
 
cd sh://username@domain.de/path
 
cd sh://username@domain.de/path
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Alternativ kann über das Dropdownmenü [Left/Right] → [Shell Link] ein Zugriff erfolgen. Die Eingabe ist wie folgt:
+
Alternatively you can use the drop down menu [Left/Right] → [Shell Link] to connect. The syntax is like this:
 
<syntaxhighlight>
 
<syntaxhighlight>
 
username@domain.de
 
username@domain.de
Zeile 109: Zeile 110:
  
 
=== FTP Client: ===
 
=== FTP Client: ===
Mit folgendem Befehl kann Midnight Commander eine Verbindung zu einem [[FTP]] Server herstellen. Midnight Commander muss natürlich gestartet sein. Durch die Eingabe von <code>'''cd'''</code> kann man die Verbindung unterbrechen.
+
With the following command Midnight Commander can connect with a [[FTP (en)|FTP]] Server. Of course, Midnight Commander must be started before. Use the command <code>'''cd'''</code> to close the connection.
 
<syntaxhighlight>
 
<syntaxhighlight>
 
cd ftp://domain.de
 
cd ftp://domain.de
 
</syntaxhighlight>  
 
</syntaxhighlight>  
  
Passwortgeschützte FTP Server erreicht man wie folgt. Durch die Eingabe von <code>'''cd'''</code> kann man die Verbindung beenden.
+
A password secured FTP Server can be reached as follows. Use the command <code>'''cd'''</code> to close the connection.
 
<syntaxhighlight>
 
<syntaxhighlight>
 
cd ftp://username@domain.de
 
cd ftp://username@domain.de
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Wenn Midnight Commander geschlossen ist, kann ein [[FTP]] Zugriff so erfolgen.<syntaxhighlight>
+
If Midnight Commander is closed, the [[FTP (en)|FTP]] connection can be started as follows.
 +
<syntaxhighlight>
 
mc ftp://username@domain.de
 
mc ftp://username@domain.de
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Alternativ kann über das Dropdownmenü [Left/Right] → [FTP Link] ein Zugriff erfolgen. Die Eingabe ist wie folgt:
+
Alternatively you can use the drop down menu [Left/Right] → [FTP Link]. the syntax is like this:
 
<syntaxhighlight>
 
<syntaxhighlight>
 
username@domain.de
 
username@domain.de
 
</syntaxhighlight>
 
</syntaxhighlight>
  
=== Aussehen / Maus Support unter OE 2.0 ===
+
=== Look / Mouse support since OE 2.0 ===
Ein besseres Aussehen, inklusive Maussupport, könnt ihr in einem [[OE 2.0]] basierenden Image mit folgenden beiden Befehlen einrichten.
+
A better look, incl. mouse support, can be activated in a [[OE 2.0 (en)|OE 2.0]] / [[OE 2.2 (en)|OE 2.2]] / [[OE 2.5 (en)|OE 2.5]] image with following commands.
 
<syntaxhighlight>
 
<syntaxhighlight>
echo "TERM=xterm" > ~/.profile
+
echo "TERM=xterm" >> ~/.profile
  
 
source ~/.profile
 
source ~/.profile

Aktuelle Version vom 14. Januar 2017, 10:17 Uhr

Deutsch.png - in Deutsch English.png - in English
Midnight Commander

GNU Midnight Commander, known as mc, is a free clone of the DOS Tool Norton Commander (→two panels) and is one of the most famous console programs for Linux. Over a VFS it's also possible to access archives ans network servers easily.

For Linux beginners, if you have used a similar tool under DOS, Windows or OS/2, it helps with many tasks. The biggest advantage is the versatility: mouse support (GPM), integrated FTP Client, unpack different types of archives and packages (of course the programs need to be installed before) tar.gz, bzip, zip, rar, rpm, deb, ... . And yes, many operations are faster in the console using commands. But with mc it's easier, e.g. copying, deleting, ... of files which can be difficult to filter. And last but not least, the integrated editor with syntax support (for almost any language) and simple interface is a big help for new users (which might think vi is a French cheese).

As it is a console program with function keys, many operations will be performed quickly after a short learning period. Much faster as from the console with commands or with a GUI. mc is much better as GUI file managers, especially regarding speed.

The Midnight Commander on the Dreambox can be "stripped" and might have limited functions available. It's recommended to learn this tool to perform quickly many tasks without installing any software on a PC before.

Start Midnight Commander

Connect via Telnet or SSH with the Dreambox and enter following command in the console (Terminal):

mc

The Midnight Commander will be started, and looks like the image in this article...

Create or edit text files

Create file

To create a new text file or to open and edit an existing file, use the command "mcedit file_name" an example:

mcedit nas-feed.conf

now you can write your text and save the file

src/gz nas-feed http://ip_of_Webserver/dreambox

Important shortcuts

Shortcut / combination Action
F1 .. F10 see menu bar at the lower screen border

It's also possible to use the functions by pressing ESC+1...0.

Tab Switch the active panel
Ctrl+o Hide the panel, to see the normal screen
Ctrl+x i Info mode in the other panel
Ctrl+x q Quick view in the other panel
Ctrl+s / Alt+s Name search in the actual panel
Esc+p previous command
Esc+↵ Enter copy the actual file name on the console
Esc+Tab Complete the command (apply twice sometimes)
Alt+o Sync panels (other panel sets the same path!)
Alt+c Change in a specified directory
Alt+Tab Shell extensions (not under X)
Alt+? File search
Alt+t (toggle) Switch different displays
+ / - select / unselect (pattern matching)
Insert Select/deselect single File/Directory
+ * ↵ Enter Select all files/directories
- * ↵ Enter Deselect all files/directories

Tips & Tricks

Settings:

  • If you don't like vi, activate the internal editor over "Options / Configuration / Use internal edit".
  • Lynx movements mean: use the cursor buttons to enter / leave a directory.

SCP Client:

A SCP access is possible with following command. Use the command cd to close the connection.

cd sh://username@domain.de/path

Alternatively you can use the drop down menu [Left/Right] → [Shell Link] to connect. The syntax is like this:

username@domain.de

FTP Client:

With the following command Midnight Commander can connect with a FTP Server. Of course, Midnight Commander must be started before. Use the command cd to close the connection.

cd ftp://domain.de

A password secured FTP Server can be reached as follows. Use the command cd to close the connection.

cd ftp://username@domain.de

If Midnight Commander is closed, the FTP connection can be started as follows.

mc ftp://username@domain.de

Alternatively you can use the drop down menu [Left/Right] → [FTP Link]. the syntax is like this:

username@domain.de

Look / Mouse support since OE 2.0

A better look, incl. mouse support, can be activated in a OE 2.0 / OE 2.2 / OE 2.5 image with following commands.

echo "TERM=xterm" >> ~/.profile
 
source ~/.profile

Weblinks