Skip to main content

Questions tagged [midnight-commander]

Midnight commander is a dual paned, curses based file manager with a text user interface, inspired by Norton Commander

Filter by
Sorted by
Tagged with
56 votes
9 answers
165k views

Copy and paste text in midnight commander (MC) via putty in Linux

I use Midnight Commander (MC) editor over putty to edit files I want to know how to copy text from one file, close it then open another file and paste it? If it is not possible with Midnight ...
Den's user avatar
  • 663
45 votes
4 answers
123k views

Midnight Commander (MC) installer for Mac OS X

I use MC on Windows and Linux and would like to use it on my Mac. Can someone point me to an URL where I can download a binary setup/install?
anjanbacchu's user avatar
  • 1,407
32 votes
3 answers
13k views

How to enable find-as-you-type behavior?

Ok, I just need Total Commander 'quick search' feature to be enabled. How can I do it?
jonny's user avatar
  • 449
27 votes
5 answers
36k views

Cannot use F10 key in Midnight commander running in OS X's terminal

I connect to my server from Terminal in Mac OS X 10.5. When I run Midnight Commander there I cannot use function keys like F10 to close MC even I cannot use mouse to control MC. Any idea why function ...
chubbyk's user avatar
  • 657
18 votes
2 answers
13k views

Is there a way to change shortcuts in midnight commander?

I haven't found anything on the topic in the Internet. The only line from .mc/ini that looks related to the question is keymap=mc.keymap, but I have no idea what to do with it.
rride's user avatar
  • 183
16 votes
1 answer
13k views

How to expand the command line to the whole screen in MC?

Is it possible to expand the command line to the whole screen (to show several lines on the terminal) in Midnight Commander without exiting it? I mean I want to switch from two tabs to a raw terminal ...
Kolyunya's user avatar
  • 263
11 votes
3 answers
10k views

F10 key not working in terminal/MC, Ubuntu 19.10

I'm on Ubuntu 19.10 desktop, trying to use terminal and mc. The F10 key shortcut to quit MC is not working, nothing happens, only the cursor blinks when I press F10. I tried some ideas about this I ...
glnemeth's user avatar
  • 211
11 votes
1 answer
18k views

Configuring function keys in PuTTY for both Vim and Midnight Commander under tmux?

First off, I'm aware that I can use Alt+1 (through 9 and 0) to synthesize the respective function keys (F1 through F10) in Midnight Commander. It has helped me many times, but by default I still press ...
0xC0000022L's user avatar
  • 7,203
11 votes
1 answer
6k views

How to configure coloring of the file names in MC?

Is it possible to configure the Midnight Commander (Ubuntu 10.10) to show certain file and directory names differently, e.g. all hidden (starting with a period) using grey color?
Mike L.'s user avatar
  • 5,797
10 votes
1 answer
5k views

midnight commander : how to invoke drop down on directory history list

I use mc 4.1.36 (C) ported to windows(I use Vista). I would love to be able to navigate through the list of directories that I've previously visited using the drop-down except that I don't know how to ...
anjanbacchu's user avatar
  • 1,407
10 votes
5 answers
16k views

How to apply `.mc/ini` file?

I installed Midnight Commander and tried to change the colour scheme, but unfortunately, it doesn't apply the ~/.mc/ini file. It's Midnight Commander 4.8.1, on Ubuntu 12.04. When I installed it, it ...
pesho hristov's user avatar
9 votes
1 answer
5k views

How to start Midnight Commander in one panel mode?

I want to start Midnight Commander in one panel mode. I know I can toggle it on/off using Alt + t but I want it to be in one panel mode from the start. How can I do this? Is there a command line ...
Michal Przybylowicz's user avatar
8 votes
3 answers
6k views

midnight commander subshell - sharing a history file with the shell mc was started from

I am looking for a way to make midnight commander share its subshell history with the parent shell. To be more specific, when I start mc, open its subshell using Control+o and subsequently invoke a ...
AtomHeartFather's user avatar
8 votes
2 answers
4k views

How to change the prompt of mc's subshell

I often use the subshell of mc. So I want the promt of mc-subsell to be different form the primary shell. Say, how can I change the sub-prompt like this: mc:$Current_dir$ many thanks
lymslive's user avatar
7 votes
2 answers
5k views

Is it possible (and how) make user customization for syntax highlighting in build-in Midnight Commander editor/viewer?

Recently I discover a power of MC to view/edit certain types of file. For example this: shell/.class View=%view{ascii} tmp=%p; javap -c ${tmp%%.class} from ~/.mc/bindings take me brief look for ...
gavenkoa's user avatar
  • 2,046
7 votes
1 answer
8k views

How to show file sizes In Midnight Commander in the most compact form? ("smart file sizes" in Total Commander)

MC shows file sizes in kilobytes and bytes by default, but it is hard to read, and it would be easier to see them in the "closest" unit available. That is: 1234567 -> 1M 123456 -> ...
toraritte's user avatar
  • 798
7 votes
1 answer
18k views

Install MC with SMB support

how to install MC (Midnight Commander) with Samba support (smb:// link like ftp). Im unable to install it thou apt-get. Ive got just mc version without smb. And install from sources failed. I try to ...
Xsoft's user avatar
  • 71
7 votes
2 answers
4k views

Midnight commander file transfer "fish: storing file"

when I copy files using Midnight Commander fuction named shell link (I guess it is kind of ssh ) it takes sometimes very long. More precisely, the copy time-bar is finished quite fast (20MB/s), but ...
Prokop Hapala's user avatar
7 votes
6 answers
7k views

Problem with arrow keys in Midnight Commander under Mac OS X after update to 10.6.3

After updating Mac OS X to 10.6.3 the arrow keys do not work in MC anymore - instead of moving the cursor it types, for instance, B for down key, C for right key. Although, if I quit MC and try it in ...
user avatar
6 votes
3 answers
1k views

Default key-binding to clear the command line

What is the default keybinding under Midnight Commander for clearing the command line at the bottom ? ( not the one you get with Ctrl-O, but the one-line prompt )
Adrian Panasiuk's user avatar
6 votes
4 answers
5k views

Shift-F5 and Shift-F6 don't work in Midnight Commander on Mac OS X

ShiftF5 does not copy file. ShiftF6 does not rename file. How I can reassign these key combinations?
Junky's user avatar
  • 211
6 votes
1 answer
8k views

What does * next to a file in Midnight Commander mean?

Some files have a * next to them and others don't - why?
dan gibson's user avatar
6 votes
2 answers
7k views

How to change UI language for midnight commander Mac

i installed midnight commander by means of brew (brew install mc). But couldn't understand why it's in french. i've tried to reinstall it but it's turned out to be the same thing. Now i'm wondering ...
Dmitrii's user avatar
  • 360
6 votes
2 answers
4k views

How to exclude some pattern when doing a search in MC?

In Midnight Commander, is it possible to exclude some directories/patterns/... when doing search? (M-?) I'm specifically interested in skipping the .hg subdirectory.
akavel's user avatar
  • 818
6 votes
1 answer
2k views

Is it possible to enable bash-completion inside midnight commander?

I would like to enable prompt to act like the bash one, and have tab-completion. I know that tab is used to switch between windows, but I would prefer to do completion if the command line is not ...
sorin's user avatar
  • 11.9k
6 votes
0 answers
695 views

Sizes of the panels in Midnight Commander

Can I change the height of the panels in Midnight Commander like in Far (pressing Control+Up or Control+Down )?
KPECTuK's user avatar
  • 61
5 votes
4 answers
3k views

How to enable gedit editor in midnight commander?

How can I set gedit to be default editor in mc? When I hit F4, gedit should be used rather than mc's default editor.
user36028's user avatar
  • 173
5 votes
2 answers
15k views

Midnight Commander — Multiple Selection

In MC I can copy the name of the current file from the list of files to the console pressing Ctrl+Enter. Suppose I want several files to copy to console. Example: want to create *.zip with several ...
Andrey Bzikadze's user avatar
5 votes
2 answers
4k views

How to display normal date-time in Midnight Commander?

My MC displays modification date time in very strange manner. Sometimes it displays date+year and sometimes it displays date+time. Unpredictable. How to make it display something predictable? UPDATE ...
Dims's user avatar
  • 12.8k
4 votes
1 answer
6k views

Midnight Commander on OSX - bindings for file extensions and arrows

I am using Midnight Commander on Mac OS X (version 4.8.4) I have two problems and I would be very glad if you can help me: First: The binding for file extensions are set for Linux distribution. ...
Petr Sigut's user avatar
4 votes
4 answers
9k views

OS X: what Norton Commander clone you can suggest [closed]

On Windows I'm addicted to Altap Salamander. I've tried a couple of OS X alternatives, e.g. Midnight Commander. Yes, they are better than plain command line or Finder, but can't compare with Altap ...
Mike L.'s user avatar
  • 5,797
4 votes
2 answers
8k views

Default Midnight Commander key binding for "change-directory"

What is the default key binding in Midnight Commander to open a dialog box asking for the target directory ?
Adrian Panasiuk's user avatar
4 votes
1 answer
4k views

mc - Midnight commander - How do I sort so that directories are on top?

By default, mc sorts so that the directories are on top (come before files). Somehow, I've changed this so that the directories are sorted alphabetically. Where is the option or keyboard shortcut to ...
user320199's user avatar
4 votes
5 answers
7k views

How to use graphical line drawing characters with Midnight Commander on OS X under ssh?

I discovered that when I do ssh to a machine using OS X 10.6 and use mc I do not see the graphical line drawing characters. This does not happen if I open terminal and start mc. I'm connecting using ...
sorin's user avatar
  • 11.9k
4 votes
1 answer
6k views

Wrong permissions after sudo midnight commander

I sometimes start Midnight Commander as superuser with the command sudo mc to do some operations on the current working directory as superuser. But this results in ~/.mc having the wrong permissions,...
mit's user avatar
  • 1,564
4 votes
1 answer
905 views

Can I bind F4 to 'emacs -nw' in mc?

It seems it' ok to use 'EDITOR=emacs',it open GUI emacs. If I use 'EDITOR=emacs -nw', it fails.
chenge's user avatar
  • 343
4 votes
1 answer
1k views

Why in Midnight Commander the chmod has 5 digits and what for?

In the file menu if I go to chmod, it returnes the chmod value for the folder / file. I understand the last 3 digits, the second is setuid/setgid/sticky bit (have read the docs on it but its use is ...
obeliksz's user avatar
  • 683
4 votes
0 answers
3k views

Midnight Commander function keys not working

I'm using Midnight Commander in a Mac Terminal. I'm using PC keyboard, so function keys work as F1-F12 keys, but they don't work in MC. I tested what character sequence is sent with each function key ...
SiliconMind's user avatar
3 votes
1 answer
2k views

Midnight Commander upload/copy exclude

My question is similar to this one, but I would like to exclude some directories recursively when copying/uploading files. Specifically I would like to exclude .git folders from the whole codebase I'm ...
Teo.sk's user avatar
  • 163
3 votes
1 answer
699 views

Why is midnight commander able to copy files so much faster than cp?

I discovered an interesting behavior of mc. When I copy files across devices (at least those that are smaller than free RAM) it seems that the copy is using writeback cache and is nearly instant (on ...
Petr's user avatar
  • 2,381
3 votes
1 answer
510 views

Midnight Commander on Mac - Compare files doesn't work

In the latest Midnight Commander version (4.8.30) installed with Brew on Mac M2 compare files doesn't work. Seems it tried to call diff with unrecognized option. command diff --version show: Apple ...
Sandre's user avatar
  • 151
3 votes
1 answer
2k views

Midnight Commander: configure error: S-Lang library version 2.0 or newer not found

Trying to update Midnight Commander to the latest version (4.8.23), I downloaded the corresponding tar.xz file from their website (http://ftp.midnight-commander.org/?C=N;O=D), extracted the files and ...
user avatar
3 votes
1 answer
1k views

In mc within tmux ctrl-o doesn't work

When I run mc within tmux: $ tmux $ mc 'Ctrl-o' in mc desn't work properly: mc panes disappear, but the shell command prompt doesn't appear, and pressing any key causes mc panes appear again. When ...
Al Berger's user avatar
  • 509
3 votes
0 answers
941 views

Git integration for midnight commander or alternatives

Does Midnight Commander offer support for Git like highlighting changed / added files or is there an alternative File Manager supporting this? Update: Something similar to WebStorm/IntelliJ ...
Alexander Zeitler's user avatar
3 votes
0 answers
2k views

Weird Midnight Commander look in tmux

How to fix this mc look in tmux session? This is how mc looks without tmux I have export TERM=xterm-256color in .bash_profile set -g default-terminal "screen-256color" in .tmux.conf file
dukasvili's user avatar
  • 553
3 votes
0 answers
294 views

Editor in panel - Midnight Commander

Is it possible to set the other panel display mode to editor view in midnight commander? Something like the panel quick view display mode (ctrl+x,q) with the ability to modify the content.
PS.cz's user avatar
  • 31
2 votes
1 answer
13k views

Cannot install mc using apt-get

I'm trying to install mc using apt-get: apt-get install mc ... and get the following error: Failed to fetch http://ftp.debian.org/debian/pool/main/m/mc/mc_4.6.2-2_i386.deb 404 Not Found [IP:...
Alexey Kalmykov's user avatar
2 votes
2 answers
3k views

How do I change the view in Midnight Commander?

I have been using Midnight Commander for a while and I have always been able to view the contents of a directory in each panel. I made some change that now the left panel shows the contents of the ...
Liam's user avatar
  • 3,060
2 votes
1 answer
1k views

How to add a custom parser for a file type into MC viewer?

When you press F3 on a .sqlite file in midnight commander the Viewer shows the SQL dump of the file instead of the original binary, and F8 can be used to switch between parsed and raw modes. This ...
ccpizza's user avatar
  • 7,853
2 votes
2 answers
347 views

Custom function as "edit" in Midnight Commander

The problem I'm using tmux and I want MC to open files for editing in another tmux window, so that I can keep browsing files while editing. What I've tried MC checks if EDITOR variable is set and ...
butla's user avatar
  • 133