Midnight Commander (en): Unterschied zwischen den Versionen

Aus Gemini-Wiki
Zur Navigation springen Zur Suche springen
Zeile 92: Zeile 92:
 
  |}
 
  |}
  
== 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 poddisble 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 dropdown menu [Left/Right] → [Shell Link] to connect. The syntax is like this:
 
<syntaxhighlight>
 
<syntaxhighlight>
 
username@domain.de
 
username@domain.de
Zeile 109: Zeile 109:
  
 
=== 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 dropdown 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 under 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 lookn, incl. mouse support, can be activated in a [[OE 2.0 (en)|OE 2.0]] image with following commands.
 
<syntaxhighlight>
 
<syntaxhighlight>
 
echo "TERM=xterm" > ~/.profile
 
echo "TERM=xterm" > ~/.profile

Version vom 17. August 2013, 18:51 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 (→twoo 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 menubar at the lower screen border
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 Quickview 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 extentions (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 poddisble with following command. Use the command cd to close the connection.

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

Alternatively you can use the dropdown 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 dropdown menu [Left/Right] → [FTP Link]. the syntax is like this:

username@domain.de

Look / Mouse support under OE 2.0

A better lookn, incl. mouse support, can be activated in a OE 2.0 image with following commands.

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

Weblinks