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

Midnight Commander: working with slow devices/resources

Midnight Commander (mc) may appear "hanging" too often and for quite a long time when a folder with a lot of files located on a slow device/resource like MTP device or SFTP is shown in one ...
Maxim V.'s user avatar
0 votes
0 answers
40 views

Midnight commander (mc) copy/move option doesn't work

I cannot copy/move file on remote server. GNU Midnight Commander 4.8.7 installed on remote Centos server Steps: connect to remote server via xterm ssh run mc cmd set correct directories on both tabs ...
user2021570's user avatar
0 votes
0 answers
82 views

Not completely switching language in Midnight Commander

spent a lot of time on this. All menu bars and control panel at the bottom are not translated. What I did: set the locale globally to the desired language, even tried LC_ALL reinstalled mc and mc-...
Olimpic Boy's user avatar
0 votes
0 answers
77 views

Midnight Commander's viewer can't search in some files

I'm often using "F3 View" in Midnight Commander, and I just found out that using search feature "F7 Search" doesn't always work correctly. What I found out is that when file has ...
dexter86's user avatar
0 votes
0 answers
113 views

Midnight Commander: shell link connection not show dirs

Everything works fine when the target computer is windows 10 with cygwin and openssh 5.9p1-1 (libopenssl098 0.9.8t-1) [computer1]. After upgrading cygwin with openssh 1.1.1t-1 (libssl1.1 1.1.1t-1) [...
321Peto's user avatar
0 votes
0 answers
169 views

In midnight commander, how to select a large continuous range of files

Is there some thing similar to the shift mouse left click in GUI file explorers? Basically something to mark the start and end of the selection, and selects anything in between? My scenario is, I ...
KFL's user avatar
  • 269
0 votes
0 answers
125 views

midnight commander: sort directories by name and files by date?

Is it possible to sort directories by name, and files by date, at the same time? It is easy to obtain this behavior in Total Commander, which I find very nice. Thanks.
vaschw's user avatar
  • 1
0 votes
1 answer
166 views

Midnight Commander Options/Appearance menu is missing on RHEL 7 latest

I am using RHEL 7.9 and installed mc with the following commands: yum update yum install mc Options/Appearance menu item is missing. Doing the same on RHEL 8.1 gives the Options/Appearance, probably ...
g.pickardou's user avatar
0 votes
1 answer
300 views

simplest possible pager

In mc (midnight commander), I can define custom command for viewing files, ie: shell/i/.jpg Open=gpicview %f View=file %f | less The command file %f has to be piped to a pager. I am using ...
Martin Vegter's user avatar
1 vote
0 answers
277 views

How to select files in Midnight Commander using an external command (e.g., `find`)?

I'm trying to select files that are older than a specific date & time, and found this MC ticket that exactly describes my issue, and this comment on it provides a workaround, but I cannot get it ...
toraritte's user avatar
  • 1,030
0 votes
1 answer
792 views

What is midnight commander option "dive in to subdir if exists" copy option for?

When I press F5 it has one of the options to dive in to subdir if exists but what does that actually mean? You'd think it means if you copy without that option it would copy just one level, but ...
user3161924's user avatar
0 votes
1 answer
190 views

How do I View Error Messages in Midnight Commander?

I am trying to associate a file extension (.ipynb) with vscodein midnight commander. I edited my "file extensions" file. When I try and launch the file, the screen flashes black and then ...
Terry Price's user avatar
4 votes
2 answers
659 views

Specify the tmp path for Midnight Commander

I have an Ubuntu running on a 250 go ~ hard drive. When I'm copying 300 go + folder to another location, using mc, I can see that it creates a tmp file located in /tmp/mc-$USER which getting bigger ...
Emidomenge's user avatar
1 vote
1 answer
401 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 ...
Boppity Bop's user avatar
0 votes
0 answers
35 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, ...
Roland Soós's user avatar
1 vote
0 answers
97 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 ...
Fantastic Mr. Fox's user avatar
4 votes
1 answer
8k 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:...
theking2's user avatar
  • 209
1 vote
1 answer
2k 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 ...
Alfonso_MA's user avatar
2 votes
1 answer
560 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....
zegkljan's user avatar
  • 231
0 votes
1 answer
1k 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 ...
lonix's user avatar
  • 1,669
6 votes
1 answer
4k 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 ...
ygoe's user avatar
  • 223
1 vote
1 answer
1k 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 ...
Daan's user avatar
  • 109
1 vote
0 answers
276 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 ...
jcoppens's user avatar
  • 623
1 vote
1 answer
2k 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 ...
bomben's user avatar
  • 439
1 vote
1 answer
184 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?
slava's user avatar
  • 173
5 votes
1 answer
6k 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.
Nikita128's user avatar
  • 153
0 votes
0 answers
2k 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)...
Sergej Matsypa's user avatar
0 votes
0 answers
250 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 ...
Benjamin Beasley's user avatar
0 votes
2 answers
1k 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 ...
jaam's user avatar
  • 226
1 vote
1 answer
836 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 ...
Tom HANAX's user avatar
  • 121
2 votes
2 answers
2k 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 ...
Dims's user avatar
  • 3,225
1 vote
2 answers
585 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 ...
greenoldman's user avatar
  • 6,106
1 vote
0 answers
246 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 ...
Tagwint's user avatar
  • 2,460
0 votes
1 answer
613 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 ...
Dims's user avatar
  • 3,225
2 votes
1 answer
609 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 ...
osowiecki's user avatar
3 votes
2 answers
1k 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 ...
Patoshi パトシ's user avatar
2 votes
2 answers
2k 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 "*...
greinaovester's user avatar
3 votes
2 answers
463 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. ...
EmmaV's user avatar
  • 4,047
2 votes
1 answer
964 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 ...
anipard's user avatar
  • 25
2 votes
1 answer
2k 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 ...
Vladimir Shutow's user avatar
4 votes
2 answers
6k 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 ...
saucemarocain's user avatar
1 vote
1 answer
518 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 ...
Gaurav's user avatar
  • 153
0 votes
1 answer
94 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(...
jaam's user avatar
  • 226
3 votes
1 answer
2k 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 ...
David von Tamar's user avatar
1 vote
0 answers
672 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 ...
Martheen's user avatar
  • 111
1 vote
2 answers
429 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-...
EmmaV's user avatar
  • 4,047
0 votes
1 answer
815 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 ...
dE fENDER's user avatar
1 vote
1 answer
941 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 ...
THESorcerer's user avatar
1 vote
0 answers
92 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. ...
Cyrill Tekord's user avatar
2 votes
0 answers
570 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"....
Doe's user avatar
  • 33