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
0 votes
1 answer
20 views

Change prompt colour inside midnight commander?

I use mc on CentOS9. It has its own prompt on the bottom under the panels. I dont know if it is a separate bash or some sort of emulation, but it has default colour while "normal" prompt is ...
user avatar
0 votes
0 answers
56 views

How can I check how far Midnight Commander is with the "Background Copy"?

Yesterday I needed to copy a large amount of files with MC. I did this in "Background" so that I was able to chose other Files while copying. I'am wondering how I can check how far MC is ...
user avatar
0 votes
0 answers
19 views

mc stopped correctly jumping to found line after debian upgrade in mcedit

So I upgraded from Debian from 9 to 11 & it allowed me to F4 (edit) the file content I was searching for. It used to open the file in mcedit, jump on a specific line & now it doesn't jump to ...
user avatar
  • 109
0 votes
0 answers
37 views

Midnight Commander won't show if .env file is in a directory

I'm on Ubuntu 20.04 latest, all updates included and I try to use Midnight Commander 4.8.24 from the distro's respository. I want mc to display a directory's content so I type mc in the terminal. In a ...
user avatar
  • 101
0 votes
0 answers
29 views

While moving files, how to continue without halting if an error happens?

Imagine you have 1000 files. You move/copy to a different folder. You start the process, all going well, you leave the computer. At file number 10 an error dialog states if you want to overwrite, ...
user avatar
1 vote
0 answers
25 views

Midnight commander: How to define condition in mc.menu

I'm trying to add new command, and the menu option should be displayed when the single file is selected, (it's executable and not a directory) or (not a link and the name ends with .so) or (not a ...
user avatar
2 votes
1 answer
2k views

How do I connect to a smb (samba) share using midnight commander?

After I select left/SMB link... and enter the urn and user name and password I see this error message Cannot chdir to "/smb://host.network/share" I've tried different variant of the urn smb:...
user avatar
  • 161
1 vote
1 answer
443 views

midnight commander view mode: how to select all text

I am using midnight commander. To view the content of a .txt file I press F3. Then I can select text holding Shift + selecting with mouse: But I would like to select the whole content of the file and ...
user avatar
0 votes
0 answers
39 views

Interrupted remote file copy in Midnight Commander keeps re-creating empty files after deletion - which process is the culprit?

lsof is not my friend, because the files gladly allow themselves to be deleted, after which they spryly spring back into existence which means that no process is taking hold of them... Couldn't find ...
user avatar
  • 685
2 votes
1 answer
197 views

Sorting in Midnight Commander

How can I make mc sort files just lexicographically? I have the following files in a directory asn-gpD2360-time.pdf asn-gp-time.pdf asn-mggpD2360-time.pdf asn-mggplcfD2360-time.pdf asn-mggplcf-time....
user avatar
  • 221
0 votes
1 answer
583 views

Perform sudo commands via midnight commander and sftp

I use midnight commander to sftp into my ubuntu VPS. The VPS requires sudo for anything important, e.g. copy/move/delete files. So for e.g. I cannot press F5 to copy (except into ~). Is it possible ...
user avatar
  • 1,413
4 votes
1 answer
1k views

Have mc show size, time and permissions at once

Simple question: How can I set up mc (midnight commander) to show columns for the file name, size, time and permissions all at once? I can cycle through 4 modes with Alt+T but none of them shows all ...
user avatar
  • 203
0 votes
1 answer
697 views

How to use the mouse in Midnight Commander when running Alpine in Docker?

I like using the mouse in Midnight Commander. I can easily select files, folders and features with the mouse. To do so, I use the following steps: docker run -it ubuntu sh apt update apt install mc mc ...
user avatar
  • 101
1 vote
0 answers
240 views

Midnight Commander is calling Seamonkey, but why?

Midnight commander, on pressing Enter on a .html file, calls Seamonkey. I can't find out why. Of course, I checked the usual suspects: The extension files from MC's settings (both the user- and the ...
user avatar
  • 563
0 votes
1 answer
594 views

Does Midnight Commander cancel a background copy if another background copy is initiated?

I just wanted to confirm this behaviour. If I copy something in Midnight Commander with the option to put it in the background and then I start a second process of copying something in that same ...
user avatar
  • 295
1 vote
1 answer
77 views

Midnight Commander hotkey for selectbox or field with [ ^ ]

For example mc FTP dialog field have this symbol: It looks like selectbox. I think this is can be history. How to activate/open it with keyboard?
user avatar
  • 163
2 votes
1 answer
2k views

How to change default Midnight Commander appearance, so I don't have to change it every time I launch a terminal?

I have problems with my screen, so I can't see very well using a default MC theme. Switching to the darker one helps me a lot. So that would be great if I could set it as a default theme.
user avatar
0 votes
0 answers
565 views

how to select files and folders on both Midnight Commander panels with the same name?

So we have Midnight Commander and 2 different folders - first on the left panel(folder1) and second on the right panel (folder2) panel. There's a need to select ("highlight", like by pressing Ins key)...
user avatar
0 votes
0 answers
136 views

Use midnight commander as default file manager

I'm running fedora workstation 32 with i3. I'm trying to get it to use midnight commander as the default file manager. I followed the top answer on this thread How to set Midnight Commander as the ...
user avatar
0 votes
2 answers
704 views

Midnight Commander: Shift-F4 not working

In mc, Shift+F4 is supposed to open a new file in your selected editor but for some time it has done nothing on my system (previously it worked). Any ideas or pointers for debugging the issue would be ...
user avatar
  • 188
0 votes
1 answer
227 views

Close remote connection in Midnight Commander?

In the Midnight Commander I can successfully use a sh:// connection to the another computer and browse remote filesystem. But when I am finished, how to close the connection and return to the local ...
user avatar
  • 111
2 votes
2 answers
609 views

Disable mouse codes passing to terminal once it was turned on by application?

Sometimes I have application, which supports mouse (for ex. Midnight Commander) crash or disconnect but after that terminal remains in some mode, which makes it accept mouse movements as string ...
user avatar
  • 2,517
1 vote
2 answers
321 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 ...
user avatar
  • 5,686
1 vote
0 answers
102 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 ...
user avatar
  • 2,250
0 votes
1 answer
219 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 ...
user avatar
  • 2,517
1 vote
1 answer
167 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 ...
user avatar
2 votes
1 answer
605 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 ...
user avatar
1 vote
2 answers
1k 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 "*...
user avatar
1 vote
1 answer
134 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. ...
user avatar
  • 3,311
2 votes
1 answer
553 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 ...
user avatar
2 votes
1 answer
1k 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 ...
user avatar
3 votes
2 answers
4k 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 ...
user avatar
1 vote
1 answer
277 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 ...
user avatar
  • 153
0 votes
1 answer
76 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(...
user avatar
  • 188
3 votes
1 answer
1k 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 ...
user avatar
1 vote
0 answers
424 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 ...
user avatar
  • 111
1 vote
2 answers
256 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-...
user avatar
  • 3,311
0 votes
1 answer
635 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 ...
user avatar
1 vote
0 answers
673 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 ...
user avatar
1 vote
0 answers
87 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. ...
user avatar
2 votes
0 answers
474 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"....
user avatar
  • 33
2 votes
0 answers
474 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 ...
user avatar
  • 185
1 vote
0 answers
39 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 ...
user avatar
  • 125
2 votes
1 answer
332 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). ...
user avatar
  • 185
2 votes
2 answers
2k 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 ...
user avatar
2 votes
0 answers
509 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 ...
user avatar
-1 votes
1 answer
1k 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?
user avatar
5 votes
1 answer
6k 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 ...
user avatar
  • 201
3 votes
0 answers
6k 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 ...
user avatar
0 votes
2 answers
2k views

Midnight commander not running

I have installing Midnight commander from FreeBSD 12.0-current with: pkg install mc When calling mc as as root, it runs as supposed; however when running as a normal user, it aborts with the error: ...
user avatar