Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
10
votes
1
answers
6462
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 desired data and still two panels side by side. Is this even possible? I'd be surprised if it was...
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 desired data and still two panels side by side. Is this even possible? I'd be surprised if it wasn't. Every Windows file manager lets me precisely select the columns to show.
ygoe
(263 rep)
Dec 6, 2020, 08:34 PM
• Last activity: Jul 3, 2025, 09:34 AM
3
votes
3
answers
13613
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 config file.
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 config file.
obohovyk
(822 rep)
Oct 13, 2014, 07:40 AM
• Last activity: Jun 15, 2025, 11:35 AM
48
votes
15
answers
35809
views
Slow start of Midnight Commander
Is there any way to prevent `mc` from taking 10-30 seconds to open?
Is there any way to prevent
mc
from taking 10-30 seconds to open?
stiv
(1691 rep)
Dec 3, 2012, 12:01 PM
• Last activity: May 6, 2025, 08:24 PM
0
votes
1
answers
73
views
How to connect and browse files of remote server via Midnight Commander's Shell link (copy files over SSH) if the private key requires password?
There are endless number of helpful articles and answers on how set up `~/.ssh/config` (e.g., [this one's pretty good][1]), but none of them mentions what to do if the private key is also password protected. [1]: https://4sysops.com/archives/midnight-commander-remote-connect-via-shell-link-copy-file...
There are endless number of helpful articles and answers on how set up
~/.ssh/config
(e.g., this one's pretty good ), but none of them mentions what to do if the private key is also password protected.
toraritte
(1202 rep)
Apr 23, 2025, 03:18 AM
0
votes
1
answers
2261
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 for mc to ask for user elevation / send `sudo` when needed?
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 for mc to ask for user elevation / send sudo
when needed?
lonix
(1965 rep)
Mar 11, 2021, 09:47 AM
• Last activity: Apr 6, 2025, 10:04 PM
0
votes
1
answers
26
views
is it possible to invoke mc with a tar.gz path as a parameter to open mc directly inside the tar.gz?
I am trying the obvious: ``` mc file.tar.gz ``` but the tar.gz is not opened any ideas?
I am trying the obvious:
mc file.tar.gz
but the tar.gz is not opened
any ideas?
Persimmonium
(103 rep)
Apr 4, 2025, 11:10 AM
• Last activity: Apr 4, 2025, 03:17 PM
0
votes
5
answers
134
views
Move/mark files and the associated-part too
There is a folder with many files in it: 112.mkv 123.md5 123.mkv 221.mkv 467.mkv aa1.mkv abc.md5 abc.mkv bbc.mkv dde.md5 dde.mkv ggh.mkv .... xxy.md5 xxy.mkv xxz.mkv How can I move `.md5` files and the associated `.mkv` files to a new directory (using Bash)? 123.md5 123.mkv abc.md5 abc.mkv dde....
There is a folder with many files in it:
112.mkv
123.md5
123.mkv
221.mkv
467.mkv
aa1.mkv
abc.md5
abc.mkv
bbc.mkv
dde.md5
dde.mkv
ggh.mkv
....
xxy.md5
xxy.mkv
xxz.mkv
How can I move
.md5
files and the associated .mkv
files
to a new directory (using Bash)?
123.md5
123.mkv
abc.md5
abc.mkv
dde.md5
dde.mkv
xxy.md5
xxy.mkv
I want to move these files into a new directory, like mkvandmd5/
.
Alternatively, are there any hints in Midnight Commander
to mark these .md5
and associated .mkv
files?
user447274
(539 rep)
Mar 20, 2025, 04:55 AM
• Last activity: Mar 22, 2025, 07:06 PM
0
votes
0
answers
27
views
bash-completion doesn't work in Mignight Commander shell
Normal Ubuntu 22.04 install, `bash-completion` is installed and works in a normal shell.  For example, if I type "docker " and press TAB , it will show a list of Docker subcommands. If I now start `mc`, hide the panels with Ctrl + O and then type "docker " and press TAB , it will...
Normal Ubuntu 22.04 install,
bash-completion
is installed and works in a normal shell.
For example, if I type "docker " and press TAB,
it will show a list of Docker subcommands.
If I now start mc
, hide the panels with Ctrl+O and then type "docker " and press TAB, it will not show the Docker subcommands. (It does show some kind of file listing, which isn't helpful.)
AndreKR
(1218 rep)
Mar 3, 2025, 02:57 AM
• Last activity: Mar 3, 2025, 06:46 PM
1
votes
2
answers
3911
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: [![enter image description here][1]][1] [1]: https://i.sstatic.net/JrLQB.png But I would like to select the whole content of the file and it is not possible to s...
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 it is not possible to scroll while I am selecting with the mouse.
Is there a "select all" option in that View mode?

Alfonso_MA
(121 rep)
Aug 19, 2021, 04:58 PM
• Last activity: Feb 17, 2025, 11:22 AM
0
votes
1
answers
140
views
How to press <F15> key in mcedit, if my keyboard only has F1...F12?
I use `mcedit` (part of GNU Midnight Commander) to edit text files in Linux. It has a hotkey for "Insert file..." - F15 (the same as F9 -> **F**ile -> Enter -> **I**nsert file). But my keyboard doesn't have F15 button, there are only F1 ... F12 . How can I press **F15** button which isn't there? *I...
I use
mcedit
(part of GNU Midnight Commander) to edit text files in Linux. It has a hotkey for "Insert file..." - F15 (the same as F9 -> **F**ile -> Enter -> **I**nsert file). But my keyboard doesn't have F15 button, there are only F1...F12.
How can I press **F15** button which isn't there?
*I use Ubuntu 22.04 with bash
5.1 and mc
4.8, running on wsl2, Windows terminal 1.21.10351.0.*
AntonioK
(1213 rep)
Feb 13, 2025, 12:56 PM
• Last activity: Feb 14, 2025, 07:16 AM
1
votes
2
answers
1256
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 actions invoking my X terminal emulator program's functionality rather than being passed through to Mid...
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 actions invoking my X terminal emulator program's functionality rather than being passed through to Midnight Commander. So I invoke Midnight Commander with the command-line option that does that, via an alias
alias mc='mc -d'This works all well and good ... until I press F4 to edit a file. Because (I think) I am using the so-called _internal_ editor, this brings up
mcedit
, to which all of my mouse actions are passed because the mouse is enabled in it.
I know that the -d
option works when I manually invoke the editor with mcedit -d
and a file. How do I get the same when mc
invokes the editor with F4?
Midnight Commander has this option of not using the mouse for both its mc
and mcedit
programs and I want to know how to turn it on throughout the whole of Midnight Commander, including when invoking its supposedly _internal_ editor (that surely, if it _were_ internal, should be respecting the -d
option that I gave to mc
).
Latter Edit: I have shell variables EDITOR and VISUAL set to '/usr/bin/mcedit', now I just changed them to /usr/bin/mcedit -d
... still don't work, then I tried to set a path with higher priority where I put a script called mcedit that call /usr/bin/mcedit -d $*
(verified that is first with which mcedit
) ... still same problem
THESorcerer
(222 rep)
Jul 17, 2018, 03:22 PM
• Last activity: Jan 25, 2025, 09:12 AM
0
votes
0
answers
111
views
Show the last commands output panel if file panels are active in Midnight Commander?
Midnight Commander allows showing command prompt along with panels if the respective option is enabled in `Options -> Layout -> Command prompt`. I find the option pretty useless (for me) because entering and running a command would require hiding the panels with `[Ctrl]+[O]` anyway even if the comma...
Midnight Commander allows showing command prompt along with panels if the respective option is enabled in
Is it possible in Midnight Commander somehow (hidden option, custom build, fork)? If no, are there any file managers to work like that? Far2l seems to be a good option, but I don't consider it as an alternative to Midnight Commander so far.
Options -> Layout -> Command prompt
. I find the option pretty useless (for me) because entering and running a command would require hiding the panels with [Ctrl]+[O]
anyway even if the command results not quickly because I mostly need to see the last a few output lines. I have the Command prompt
option disabled because of that.
Far Manager I used on Windows about a decade ago provides a way showing custom command prompt (that might be configured differently than the PROMPT
environment variable if I recall correctly), panels of course, and an optional area displaying the last output lines so that the panels are like overlapping the command output and take a configurable percent of its overall space. This was like a killer feature to me those days.
I've just installed Far2l, a Far Manager cross-platform fork, but can't recall/find how it could be configured (I don't even remember if Far Manager was able to do it either natively or using a plugin). I've found only screenshot that is exactly what I'm looking for.

terrorrussia-keeps-killing
(101 rep)
Dec 19, 2024, 11:03 AM
• Last activity: Dec 20, 2024, 06:29 AM
3
votes
1
answers
549
views
How to open a .tar.xz indexed archivefile with Midnight Commander?
`tar -I pixz -cf foo.tar.xz ./foo` compress the Stuff. `tar -I pixz -xf foo.tar.xz` decompress the Stuff. And with `pixz -l foo.tar.xz` comes a list the contents. How can i do this with (`mc`) Midnight Commander? If i select `foo.tar.xz` in `mc` and press Enter, it comes nothing. The CPU usage goes...
tar -I pixz -cf foo.tar.xz ./foo
compress the Stuff.
tar -I pixz -xf foo.tar.xz
decompress the Stuff.
And with pixz -l foo.tar.xz
comes a list the contents.
How can i do this with (mc
) Midnight Commander?
If i select foo.tar.xz
in mc
and press Enter, it comes nothing.
The CPU usage goes for a moment high but nothing comes than, no error.
Normaly mc
can open archive files like this?
How can mc
open and browse an indexed .tar.xz
file?
user447274
(539 rep)
Oct 22, 2024, 04:11 AM
• Last activity: Oct 22, 2024, 05:51 AM
0
votes
2
answers
745
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 colors, where I can choose from? So that I can actually see that `color24` is dark blue, etc.
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 colors, where I can choose from? So that I can actually see that color24
is dark blue, etc.
user1968963
(4163 rep)
Oct 8, 2013, 12:33 PM
• Last activity: Jul 24, 2024, 02:01 PM
114
votes
6
answers
66808
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)?
In Midnight Commander, how to quickly set the right panel to the same directory as the left panel (and vice versa)?
Ivan
(18358 rep)
Jan 15, 2011, 05:30 AM
• Last activity: Jul 17, 2024, 09:38 AM
1
votes
1
answers
874
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][1] that exactly describes my issue, and [this comment on it][2] provides a workaround, but I cannot get it to work. To quote: ```text ok, you can use External panalize 0) touch -d "Jun 01 00:00 2011" /t...
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 to work. To quote:
This thread actually solves what I'm trying to do with
ok, you can use External panalize
0) touch -d "Jun 01 00:00 2011" /tmp/.date1
1) enter into your BIG dir
2) press C-x ! (External panalize )
3) add new command like a "find . -type f \( -newer /tmp/.date1 \) -print"
I get stuck at "Add new" and the window just exits; I tried entering something at "Other command", but no joy.

find
on the terminal, but I'm really curious how to do this in MC.
toraritte
(1202 rep)
Aug 23, 2022, 09:35 PM
• Last activity: Jul 14, 2024, 09:20 AM
1
votes
1
answers
815
views
Midnight Commander show disk usage
I am trying to use midnight commander (mc) to show disk usage of particular directories. I'm aware that I can use the command menu, but I need see individual directory sizes on the fly. I am using ctl + space , but it very quickly lists all the subdirectories/files in a popup which vanishes. As this...
I am trying to use midnight commander (mc) to show disk usage of particular directories. I'm aware that I can use the command menu, but I need see individual directory sizes on the fly. I am using ctl + space, but it very quickly lists all the subdirectories/files in a popup which vanishes. As this popup with the disk usage vanishes it is not possible to see it. I am trying to use mc to find disk usage.
Pierre Raynerd
(11 rep)
Feb 13, 2024, 04:28 PM
• Last activity: Jul 1, 2024, 01:42 PM
27
votes
4
answers
14788
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. Is there a way to use it (other than by hiding the panels with Ctrl + O )?
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. Is there a way to use it (other than by hiding the panels with Ctrl+O)?
Ivan
(18358 rep)
Dec 22, 2015, 12:25 AM
• Last activity: Jun 20, 2024, 04:55 AM
13
votes
1
answers
4760
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?
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?
dukasvili
(233 rep)
Mar 27, 2017, 09:32 PM
• Last activity: May 27, 2024, 04:47 PM
3
votes
3
answers
3081
views
In MC: What does the * symbol means at beginning of a filename
I am using Ubuntu 18LTS. I am making changes to [![enter image description here][1]][1] 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 "*" means at beginning of file name in Midnight Commander? Cau...
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 "*" means at beginning of file name in Midnight Commander?
Cause I can not modify it permanently.
Thanks in advance.

greinaovester
(39 rep)
Jul 17, 2019, 04:19 AM
• Last activity: Apr 29, 2024, 10:52 AM
Showing page 1 of 20 total questions