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.

learn more… | top users | synonyms

1
vote
0answers
19 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
32 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 ...
0
votes
0answers
109 views

Extracting zip inside Midnight Commander, full window goes grey

When extracting a zip file inside Midnight Commander the full putty window goes grey. Extract at least two files from the archive. The extraction succeeds but screen goes nuts (of course it get back ...
4
votes
0answers
65 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 ...
0
votes
0answers
15 views

How to display all the files inside the current directory recursively in a Midnight Commander panel?

In Total Commander there is a handy feature I miss while using MC: pressing Ctrl+B uses the active panel to shows the list of all the files found in the current directory and all its subdirectories ...
0
votes
1answer
29 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
42 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 ...
1
vote
2answers
67 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 ...
0
votes
0answers
13 views

Strange sorting in MC

When I toggled option case sensitive in sort order group, hidden files are mixed with other files. I do not understand why... Some idea? I found the question Strange default sort behaviour, but then ...
0
votes
0answers
16 views

Midnight Commander opens file wrong

Now that I installed GIMP, MC opens all jpgs with that program. I am sure it has already been discussed, but, once more, can anybody tell me where I can edit those file types in Midnight Commander ...
0
votes
0answers
6 views

Refer to a path without rewriting it from left/right panel in “link to” window?

Here's a screenshot: I'd like MC to automatically enter the path to the left pane without me having type it in (in this case it's /tmp/h/l, but in my real usage it's much longer). How do I do that? ...
1
vote
2answers
107 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 ...
7
votes
2answers
905 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 "."). ...
2
votes
1answer
203 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)?
0
votes
0answers
26 views

How do I quickly move files in Midnight Commander?

When I move a single file using F6 from one pane to another, a window always get opened. How can I do it with just a single keyboard shortcut, without MC showing a dialog?
2
votes
2answers
325 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?
2
votes
2answers
279 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
39 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 ...
1
vote
1answer
67 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 -- ...
2
votes
1answer
498 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
1k 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 ...
0
votes
1answer
135 views

Midnight commander: screen list

There is the ScreenList functionality bound by default to Alt-Prime (`) in the default mc.keymap: ScreenList = alt-prime Pressing the combination displays "Screens" dialog, which says "Panels" in ...
2
votes
2answers
3k 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: ...
0
votes
1answer
1k views

“Shell connection” item disappeared from Midnight Commander menu

I have performed an upgrade of my OS (openSUSE 13.1 -> 13.2) and now no longer see menu item in Midnight Commander that allows me to perform operations with remote files via SSH. Coressponding menu ...
0
votes
1answer
322 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 ...
0
votes
1answer
525 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 fiund it. I want to change my default skin to another color scheme, but can't ...
5
votes
2answers
11k views

Why can't I install the midnight commander on Debian?

The midnight commander is not installed on my Debian Linux, so I tried to download it. I ran apt-get install mc in the terminal but it says the pack is not found. I did this task as root and the ...
4
votes
2answers
95 views

Long start time of MC due to bash function

I have next bash function to ensure new-lines after commands: user at terra in ~ $ echo "m" m user at terra in ~ $ echo -n "m" m↵ And the function itself in a .bashrc: function prompt_command { ...
1
vote
0answers
51 views

MC (Midnight Commander) Full Path in Title Row of Internal Editor

On some systems (Midnight Commander 4.8.1.4, Midnight Commander 4.8.3) the MC shows the full path of the opened file in the internal editor and on other systems (Midnight Commander 4.7.0.2, Midnight ...
1
vote
1answer
36 views

Hide top and bottom menus from Midnight Commander

Can I hide top ("File", "Options", etc) and bottom ("Help", "View", "Edit", etc) menus from Midnight Commander? If so, how can I do it?
2
votes
1answer
327 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?
1
vote
1answer
146 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
vote
0answers
211 views

midnight commander: settings for mcview not honored

Midnight Commander supports skins, where custom colors can be defined. I have created my own skin with custom colors. However, I am unable to change the color for the internal viewer (mcview). ...
1
vote
0answers
237 views

midnight commander: rules for accessing archives through VFS

Midnight Commander uses virtual filesystem (VFS) for displying files, such as contents of a .tar.gz archive, or of .iso image. This is configured in mc.ext with rules such as this one (Open is Enter, ...
0
votes
1answer
159 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 ...
1
vote
0answers
86 views

Midnight Commander displays 'Unselect' dialog when I press F4 to edit a file

When I press F4 in Midnight Commander, I expect it to edit a file. It displays the 'Unselect' dialog instead. What could have caused it and how can I fix it? This may or may not be caused by my ...
4
votes
1answer
247 views

Midnight Commander, using date in User menu

I would like to use MC (midnight commander) to compress the selected dir with date in its name, e.g: dirname_20131231.tar.gz The command in the User menu is : tar -czf dirname_`date ...
0
votes
1answer
59 views

executing any program in mc ends putty session if not logged in with root

Maybe there is a simple-obvious solution for this but I dont know how to make mc to be able to execute programs when I press enter/double click on it and I am not logged in as root... the executable ...
0
votes
1answer
237 views

mc: customizig colors with skins

I am editing the default skin for midnight commander and I would like to add some more rules for file highlighting. In the filehighlight section, there are several categories, for example archive=red; ...
0
votes
2answers
416 views

mc: edit skin color

I am trying to edit color skins for midnight commander. When using 256 color palette, the colors are called color1 to color255. I am looking for particular tone of blue. Is there a palette of all 256 ...
1
vote
1answer
114 views

midnight commander: specify commandline options in global config file

I want to start mc always with the --nomouse option. Is there a way to put this option into the (global) config file, so that I don't have to type it every time ?
4
votes
2answers
9k views

How to set default editor/viewer for Midnight Commander to Sublime

The question is quite straightforward, so no further description is needed according to me. I just add that I am running Ubuntu 13.04. Any help is welcomed.
5
votes
1answer
2k views

Midnight Commander: file size format

When dealing with large files in MC, I have difficulties counting the digits to get the order of magnitude of the file size (hundreds of MB, or tens of GB, etc.). Sometimes, I use the trick to press ...
6
votes
5answers
8k views

Slow start of Midnight Commander on CentOS

Is there any way to prevent mc from taking 10-30 seconds to open? Never seen this with Debian.
6
votes
2answers
2k 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
1answer
825 views

Can I execute commands from a midnight commander ssh connection?

When I connect to a VPS via a Shell link in MC, the location of the command prompt remains at my local box. I would like to be able to execute commands (e.g. mkdir, tar/untar) directly from the ...
1
vote
1answer
780 views

mouse in gnome-terminal

how to set up mouse in terminal window? when i click on midnight commander captions i get raw data from mouse printed as characters in terminal and any running progs don't understand mouses clicks. I ...
8
votes
2answers
7k 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?
1
vote
1answer
2k views

Insert selected filename while copying in Midnight Commander

Is it possible to paste the selected filename into the copy popup, so when I hit F5 this filename will be in the 'to' section, so I can adjust it? For example: I want to copy ...
3
votes
1answer
997 views

Using word wrap with mc

According to the man page for mc, the internal editor (mc -e) has a word wrap option. How can I turn this on? I have found settings in "Options" --> "General", however, this seems to only change text ...