Welcome to the private homepage of Stephan Klimek. Mainly this a place to publish articles of my current interests, to host some of my software projects in development and to provide some personal stuff. This site was developed using the excellent dokuwiki framework. For further info you can have a look at the Inprint page and use this Contact form for any feedback or requests.

Wiki Index

Midnight Commander

Some Shortcuts

KeyFunction
Alt+Entercopies selected file name to command line
Ctrl+oshows output of last executed command
Alt+hshows command line history
Alt+nselects next command line from history
Alt+pselects previous command line from history

FTP/SSH

Original sources of informationTo manage remote files go to the corresponding pane's menu and select Shell Link or FTP Link. Or through the command line, try entering $ cd /#sh:<user>@<host> and press Enter. Similar can be done with FTP by using the /#ftp: prefix.

Moving/renaming

Original sources of informationWhen renaming a file and in MC's dual directory view, press F6 to move/rename and the dialog box gives the left-hand-side directory path by default. It's handy when you want to move files, but not for actual renaming, as it means having to type out the new name by hand, over the destination directory. With alot many files to rename, this is really manually exertive.

Well, the trick in this tip is - and I refer to renaming, not moving - is to have MC be in file info view, with one panel showing the directory tree and the other giving info about the highlighted file. When you try F6 now, it will put the original filename in the rename to field, allowing you to edit - not retype - the original filename. Bash keybindings work on this line.

Setup Putty for Midnight Commander

PuTTY is terminal application used to access remote computers running Linux via ssh ( see details). The line drawing in Midnight Commander, YaST and another applications that draw lines using special characters can be displayed wrong as something else. The solution is to change settings:

  • Menu: Window > Translation:
    • Received data assumed to be in which character set: UTF-8. This did not work for me at all: I had to use ISO-8859-1: 1998 (Latin-1, West-Europa).
    • Handling of line drawing characters: Use Unicode for line drawing
  • If that doesn't help, you may set this too:
    • Menu: Connection > Connection-type string: linux
    • Menu: Terminal > Keyboard > The Function keys and keypad: Linux

Workaround for not working function keys

If function keys 10 do not work one can use ESC and then 10 instead.

wiki/tools/midnight_commander.txt · Last modified: 2007-01-16 17:20 by admin
init24.de = chi`s home Mac OS X Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Valid CSS Valid XHTML 1.0 Recent changes RSS feed