Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
26 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
56 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
1answer
15 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 ...
0
votes
1answer
33 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(...
2
votes
0answers
74 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 ...
1
vote
0answers
41 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
33 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-...
0
votes
0answers
53 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?
0
votes
1answer
113 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
0answers
83 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 ...
1
vote
0answers
50 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. ...
1
vote
0answers
126 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
119 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 ...
1
vote
0answers
32 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 ...
2
votes
1answer
133 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
votes
2answers
358 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
0answers
240 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
379 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?
-1
votes
1answer
1k 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
3k 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 ...
4
votes
1answer
842 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?
2
votes
2answers
342 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 ...
2
votes
1answer
1k 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] ...
6
votes
1answer
3k 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
2
votes
1answer
2k views

How to exit from MC SSH panel

For example I make SFTP link in my left panel. How can I revert this panel back to my machine, so that I have listing of my local files? One way I found is to enable "command prompt" in MC layout (...
0
votes
2answers
2k 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 ...
0
votes
0answers
548 views

midnight commander go to root directory shortcut

I would like to set "/" key as shortcut for going to root directory in midnight commander. I have tried to find relevant option in /etc/mc/md.default.keymap file but I couldn't. Is there relevant ...
1
vote
1answer
533 views

Start MC in terminal mode

Is there a command line switch or configuration option so that MC starts in terminal mode (same as if I would press ctrl-o after running mc).
0
votes
2answers
504 views

Source bash script when starting midnight commander

Is there a way to source some bash script when I run command mc? I want to have it sourced in the bash instance of midnight commander. I tried something like this mc && . .bash_script.sh ...
1
vote
1answer
565 views

Midnight commander force xterm permanently

I use Midnight Commander 4.8.16. If I set xterm 256 colors: export TERM=screen-256color then my mouse does not work, but forcing xterm: mc -x resolves the issue. How to permanently force xterm (in ...
2
votes
2answers
343 views

mc slow to start [duplicate]

I log into a system via ssh (ubuntu). Recently, when I start up mc directly from the command prompt, it takes ages to start and finally present the familiar two-pane screen. Also, I can't drop to the ...
2
votes
1answer
916 views

How to set which shell does Midnight Commander use?

As far as I know, Midnight Commander should be able to run different shells within it (the line second to the bottom). My question is, where/how can I configure which shell does mc use? Thanks!
0
votes
1answer
867 views

How can I set the default (user defined) listing mode in Midnight Commander?

I defined my own listing mode and I'd like to make it permanent so that on the next mc start my defined listing mode will be set. I found no configuration file for mc.
3
votes
1answer
423 views

Midnight Commander - rescan compressed archive

When I open any archive (for example zip) in midnight commander it open it and as I understand it caches its content. When you open this archive second time MC uses its cache. How to reset this cache? ...
3
votes
1answer
2k views

Are there midnight commander plugins?

I've had an idea for a while regarding an ncurses-based SVN repository browser, and I'm beginning to think that a little handywork on MC could yield promising results. Does anyone know if MC (...
1
vote
0answers
353 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 "$...
-1
votes
1answer
149 views

How to copy all images from disk to single directory using mc

I have very messy disk with many images in many folders. How I could copy only all files with .jpg extension to another disk into single directory? Probably there are many images with same name but I ...
7
votes
1answer
672 views

How do I *completely* disable the Ctrl-O shortcut in Midnight Commander?

I like using both Midnight Commander and Vim. In Vim, Ctrl-O is the "go to previous position" command, and in MC, by default, it toggles between the shell and the panel. I would like to be able to ...
12
votes
2answers
4k 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. ...
1
vote
1answer
259 views

How to change scroll speed in Midnight Commander?

Single click mouse turn seems to be equivalent to PageUp/PageDown in Midnight Commander. I don't like this as I expect scrolling to be more smooth - every time I scroll a portion of the items ...
2
votes
3answers
834 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 ...
1
vote
2answers
525 views

Konsole displays ?? instead of ↑ and ↓ in midnight commander

In midnight commander, changing the appearance via menu, selecting the skin sand256.ini etc. on many Linux setups gives nice colors. After reversing the sort order of file listing, ideally this is ...
31
votes
3answers
10k 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
1answer
2k views

How to do sudo edit in MC?

Sometimes, when I use mc I need to edit file with sudo. Is there a way to run mcedit (internal MC editor) or any other editor with sudo directly from MC (by pressing F4)?
7
votes
2answers
4k views

Midnight Commander - editor in hex mode

I can't find a way to toggle mc internal editor in hex mode. Here it says to use F4 however it suggest to replace. How to do it?
11
votes
3answers
6k 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 ...
-2
votes
1answer
79 views

The package is not found when I want to install any programs

I would like to download the midnight commander with the following task: sudo apt-get install mc But it doesn't work because the package is not found. My mirror is: ftp.hu.debian.org How can I do ...
1
vote
1answer
120 views

MC 4.8.13 uses Ctrl-Backspace for directory hotlist

I just built GNU Midnight Commander 4.8.13 from source and the directory hotlist is now invoked with CtrlBackspace instead of Ctrl\. This is a PITA since it seems to not be passed through via ssh -- ...
4
votes
1answer
2k 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
3k views

Solarized theme in both mc and Terminator

I have configured Terminator to use Solarized color theme. I did the same for MC. However, the problem I have is that I don't get actual Solarized color scheme in MC (as there already is one below ...