Questions tagged [mc]

MC (GNU Midnight Commander) is a free cross-platform orthodox file manager and a clone of Norton Commander. It was started by Miguel de Icaza in 1994.

Filter by
Sorted by
Tagged with
82
votes
4answers
41k views

How to open the same directory in another panel in Midnight Commander?

In Midnight Commander, how to quickly set the right panel to the same directory as the left panel (and vice versa)?
3
votes
1answer
247 views

How to set Midnight Commander as the default File Manager?

I want graphical applications such as transmission-gtk and Firefox to open up directories with Midnight Commander through new instances of my default terminal emulator running on Debian. I've noticed ...
0
votes
1answer
636 views

SFTP over Midnight Commander still asks for a password

In linux command line, when I connect to sftp or ssh this, it connects using my public keys and doesn't ask me for a password. sftp user@host It also works when I do ssh user@host But somehow ...
1
vote
0answers
13 views

How to enable mouse in Midnight Commander in KDE3 Konsole?

Some time ago I installed openSUSE 13.2 and I don't remember doing anything special (but maybe my memory fails me). Anyway, when I run Konsole, and then Midnight Commander in it mouse works. I ...
2
votes
1answer
410 views

Installing Midnight Commander without root user access

I got a RedHat system access with non-root non-sudo rights account. I want to install Midnight Commander (mc) but yum requires root privileges. How can I install mc to my local home without rebuilding ...
0
votes
1answer
142 views

midnight commander mcedit delete selection on backspace

I have pretty ingrained in my brain to select text and then press backspace to delete that text from Is there any way to get this to work in mcedit on mac/linux?
19
votes
11answers
20k views

Slow start of Midnight Commander

Is there any way to prevent mc from taking 10-30 seconds to open?
1
vote
0answers
26 views

Midnight Commander starts bash shell with wrong option? 'bash -rcfile .bashrc'. Single -

I noticed that when mc is started, a process appears with command line like this bash -rcfile .bashrc Note single dash. Bash does have the rcfile option but that supposed to be specified with double ...
1
vote
2answers
448 views

MC and MCedit take long time to start

I recently discovered that my MidnightCommander takes around 40 seconds for every startup and the same goes for McEdit. I access my machine only via ssh and of course I'm not logging in as root, only ...
0
votes
0answers
37 views

How to close hanged pane in Terminator?

Sometimes I get Terminator panes hanged, probably due to network or remote host failure. How to close such a pane without affecting other panes? If Midnight commander was ran, then right click menu ...
1
vote
1answer
32 views

mc (midnight commander) view (F3) strange behavior when there is a “.” in the filename

It seems to ignore newline characters in "parsed" view. In raw view everything is fine. Same thing happens in nano "justified" mode. a) parsed text file b) same file in raw mode c) vi with :set ...
1
vote
1answer
65 views

Collapsing a Midnight Commander directory tree

When using Midnight Commander and making my left panel a directory tree, I open a directory and it expands with Enter, but when I press Enter again nothing happens. This is a fresh install of mc on ...
1
vote
2answers
186 views

In MC: What does the * symbol means at beginning of a filename

I am using Ubuntu 18LTS. I am making changes to file located in /usr/bin/ but after reboot it came back as before and also the last modification date, so from that rises my question: what does this "*...
2
votes
2answers
2k views

How to open files with a wine application from mc?

I want to use PDF-XChange Editor to open pdf files from within mc. I tryed setting Open=wine ~/PDFXEdit6_Portable/PDFXEdit.exe %f in mc.ext, but it opens only the application, not the file. [edit] ...
1
vote
1answer
57 views

What happened to the Midnight Commander support for marking files?

In 2010 someone requested that Midnight Commander allow marking files by pressing Shift+up and Shift+down, followed by moving up and down respectively. This feature was implemented in version 4.7.3. ...
0
votes
1answer
101 views

How to make Midnight Commander remembers Shell Link address/name?

Using Shell link function, Midnight Commander usually remembers machine name that we have enter in the past, and we can access them by clicking a tick at the right of machine's name field. But the ...
9
votes
3answers
31k views

How to connect through sftp to a non-standard port on Midnight Commander?

In Midnight Commander one can make an SFTP connection to a remote machine using: cd #sh:yourusername@example.com:/home/username/ How can this be done when the remote machine is using a non-standard ...
1
vote
1answer
283 views

MC does not apply custom config

I have a fresh installation of Debian 7. Upon using Midnight Commander I noticed that auto indentation is disabled. 'No problem' I told to myself and changed the ~/.config/mc/ini file. Surprisingly ...
-1
votes
2answers
687 views

Ctrl-Enter for Midnight Commander not working in X terminals in Fedora, working in OpenSuse

I like Midnight Commander. Might have to do with starting with DOS machines in the early 90s in Russia, but now I just really like the integration of the command line with a two-panel file list. And a ...
1
vote
1answer
74 views

What does the quick_search_mode config option in midnight commander do?

Came across an option in mc's .ini file: quick_search_mode=2. What does this do? Didn't find anything online or in the man page. I am trying to configure the Alt+S quick search function to search ...
4
votes
1answer
3k views

Question marks instead of national letters in console

I have Netgear Stora MS2000 (which uses a modified version of Red Hat) and have strange font issues while connecting by SSH. Note that this occurs both when connecting by PuTTY from Windows and by ...
0
votes
1answer
59 views

Running chromium in mc

I cannot run chromium (71.0.3578.98 Built on Ubuntu, running on Ubuntu 18.04) in mc (GNU Midnight Commander 4.8.19). Specifically, in mc: $ chromium-browser [1:1:0117/041208.995908:FATAL:proc_util.cc(...
0
votes
2answers
1k views

Midnight Commander moves files enormously long

I have an QNAP TS-210 NAS and it seems, that there's a Debian Linux on board. I've installed Midnight Commander there and have been using it successfully for years. Today I spotted something weird. I ...
1
vote
0answers
120 views

Midnight Commander on server slow startup due to attempting to access my local IP

My case is similar to some of the proposed solution in this question where on startup mc attempt to resolve & connect to hostname. Except, instead of accessing the hostname, the mc running on ...
0
votes
2answers
76 views

Tag (select) files in multiple directories

In Midnight Commander I can only tag files in one directory at a time. If I tag some files in a directory and then change to another directory to tag some more, the original files are automatically un-...
9
votes
2answers
3k views

Perform commands on selected items in Midnight Commander

How can I perform a command on the selected items ? for example calling vim, or gimp for the 5 text or image files selected. I tried to make use of the inlined command line at the bottom, but it ...
3
votes
3answers
1k views

How to disable shortcuts in urxvt?

I have installed urxvt and mc. There is a combination Alt + S in urxvt and the same combination in mc. When i use mc through urxvt and press Alt + S, command of the urxvt works instead of command of ...
9
votes
3answers
17k views

Configure MC and aptitude color schemes

I'm using Ubuntu, and I'm having trouble reading text in MC and Aptitude because of the color scheme. Is there any way to change it?
0
votes
1answer
248 views

Midnight Commander does not start without internet connection

I've got some aarch64 embedded device with Centos 7.4. If the system has internet connection, the mc starts as it should. But after disconnection it just didn't starts, but it possible to exit with ...
0
votes
1answer
724 views

Midnight Commander - Is there a way of customize it's keyboard shortcuts?

Is there a text file that Midnight Commander reads for its hotkeys/shortcuts or are they hard-coded into the app?
0
votes
0answers
238 views

How do I disable mouse support in mcedit when it is called via F4 from within mc?

I have a problem with Midnight Commander that I am finding exceptionally annoying. I hope that you can provide some relief to me. I want to use Midnight Commander without mouse support, with mouse ...
7
votes
2answers
3k views

Is there are any documentation about user-defined menu in midnight-commander?

I'd like to create my own user-defined menu for mc (menu file). I see some lines like + t r & ! t t or + t t What does it mean?
13
votes
3answers
8k views

Go to file/directory in Midnight Commander by typing

One thing I really miss in Midnight Commander (compared to some GUI file explorers, like f.e. Thunar) is the ability to go to a certain directory by just typing prefix of its name. For example for a ...
1
vote
2answers
3k views

Midnight Commander - default directory after shell link?

When I connect to a remote host via mc's Shell link, I always start at that host's root directory. Is there a way to specify that I want to start in a different directory, e.g. the home directory of ...
1
vote
0answers
67 views

Midnight Commander closes immediately after start in Linux Mint 18.3 Sylvia (KDE) via desktop menu

Midnight Commander closes immediately after start in Linux Mint 18.3 Sylvia (KDE) via desktop menu, it closes without errors, but works fine if running from terminal. A few days ago it worked well. ...
5
votes
1answer
1k views

Change sort order with shortcuts in Midnight Commander?

How to change sort order with shortcuts? I know that I can put that in ~/.config/mc/mc.keymap file but what exactly to type?
1
vote
0answers
282 views

Midnight Commander Undelete not working

How exactly do I use the 'undelete files' option on mc? Couldn't find anything helful or working for me on the internet, so I'm asking here. Let's say I got a loop0 device and write in the box "loop0"....
2
votes
0answers
234 views

Opening character device for reading in parallel by multiple processes on Linux

I would like to open a character device e.g. /dev/tty1 by multiple processes in a way that would not interfere reads between them. I noticed that if one process consumes a byte, no other process would ...
2
votes
1answer
193 views

Using gpm as mouse input in my application started from mc (midnight commander)

I use libgpm in order to read mouse events in my console application. It works fine if started right from the shell. It doesn't receive any mouse events if started from mc (midnight commander). ...
1
vote
0answers
35 views

Using console while editing a file in mc no longer possible?

I used to open a file for editing in mc (using mcedit to be more exact) and then switch to console to do some stuff, then again return to file editing and so on. Some time ago (after updating mc I ...
10
votes
2answers
18k views

Midnight Commander config dir location startup option

If you run mc -F you'll see there are [System data] config directory and [User data] config directory [System data] Config directory: /etc/mc/ [User data] Config directory: /home/<username>/...
14
votes
2answers
5k views

How to use command line completion in Midnight Commander?

An essential convenience feature every reasonable shell provides is command / file name completion (usually triggered by pressing Tab). I miss it heavily when I use command line in Midnight Commander. ...
38
votes
3answers
13k views

How can I stop seeing hidden files in the Midnight Commander?

The Midnight Commander is a very helpful tool when we're using only the text mode. But sometimes it bothers me that I have to see all the hidden files inside a folder (files that begin with "."). I'...
2
votes
0answers
359 views

Midnight Commander Editor (mcdedit) - Is there a way turning off Fullscreen at startup?

Midnight Commander has a very good text editor called mcedit. It's got a GUI style Menu bar which is hidden by default (mc refers to this as Fullscreen). If you go and click the star in the top right ...
0
votes
1answer
3k views

Midnight Commander: sftp connection using aliases from ssh config

Problem description I try to connect to remote server in one of two panels of Midnight Commander using SFTP link... submenu. Unfortunately, mc does not pass my ~/.ssh/config file to sftp. Therefore ...
2
votes
0answers
4k views

In midnight commander, how is a windows domain specified when making an smb connection?

Midnight commander allows making network connections to SMB services (if compiled with support for the SMB file system). The help contents for detailing how to make an SMB connection are these SMB ...
3
votes
2answers
4k views

MC (Midnight Commmander) mc.ini settings file location

After installing Midnight Commander in CentOS 7, I looked for the configuration file in /home/$USER/.mc.ini but didn't find it. I want to change my default skin to another color scheme, but can't find ...
2
votes
2answers
470 views

Midnight commander starting very long [duplicate]

Unable to start midnight commander under Ubuntu. It's a server, where I was using it for a lont time always. Today I logged in and found mc hangs on start. dims@sagittarius-a:~$ mc and nothing ...
8
votes
1answer
4k views

Natural sort order in Midnight Commander

How can I fix sort order in Midnight Commander to sort numbers correctly? I need such order: 1.png 9.png 10.png 19.png 22.png a.png test.png z.png
1
vote
0answers
367 views

Use a bash array as a place-in argument list (with Midnight Commander)

I'm having a little bit of trouble figuring out how I can use a bash array for an argument list. so far, the below code does not work. The %s below is Midnight Commander specific. F=(%s); for i in "$...