mc

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

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 it is a different version of mc. On rhel7 I have 1:4.8.7-11.el7 On …

Total answers: 1

How do I View Error Messages in Midnight Commander?

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 goes back to normal, launching nothing. When i enter "%p% in the command bar, …

Total answers: 1

Collapsing a Midnight Commander directory tree

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 Ubuntu 19.04. How do I collapse the directory tree in Midnight Commander’s …

Total answers: 2

Midnight Commander: sftp connection using aliases from ssh config

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 typing sftp://myhostalias results in error message Cannot chdir to “/sftp://myhostalias” Here is a content …

Total answers: 1

Change sort order with shortcuts in Midnight Commander?

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? Asked By: dukasvili || Source Yes, of course you can put your preferred shortcuts in ~/.config/mc/mc.keymap to override the default in /etc. don’t forget to …

Total answers: 1

Natural sort order in Midnight Commander

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 Asked By: Serhii || Source Posting an answer as requested. MC has sorting by version, which is their name for natural sort. You can …

Total answers: 1

Midnight Commander – rescan compressed archive

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? I ask because my archives change but I see the old …

Total answers: 1

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

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 call Vim from MC, and use …

Total answers: 1

How to use command line completion in Midnight Commander?

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)? …

Total answers: 3

How to disable shortcuts in urxvt?

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 the mc. How can i disable shortcut Alt …

Total answers: 3

How can I stop seeing hidden files in the Midnight Commander?

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’ve tried to find how to do …

Total answers: 3

Midnight Commander – editor in hex mode

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? Asked By: ThatsMe || Source F4 toggles hex mode in the Midnight Commander viewer (accessed using F3), not in the …

Total answers: 2

Go to file/directory in Midnight Commander by typing

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 current directory containing: files other many many_other some Typing man …

Total answers: 3

Midnight Commander config dir location startup option

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: /home/<username>/.config/mc/ First is system-wide, the second is User specific. The second one seems to be dependent on user’s home location; in …

Total answers: 2

Midnight Commander moves files enormously long

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 have to move a large collection of movies (around 130 GB) from one folder …

Total answers: 4

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

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 internet connection is perfect. I don’t …

Total answers: 2

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

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. Asked By: Jendas || Source In Midnight Commander go to Options menu / Configuration… command / Use internal …

Total answers: 3

Slow start of Midnight Commander

Slow start of Midnight Commander Is there any way to prevent mc from taking 10-30 seconds to open? Asked By: stiv || Source Try to delete line “search whatever.something” from /etc/resolv.conf /etc/hosts should have the lines: 127.0.0.1 localhost 127.0.0.2 hostname.domain hostname “hostname” is your hostname and “domain” is your domain. Answered By: dragulj Check host …

Total answers: 14

Perform commands on selected items in Midnight Commander

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 doesn’t take my selection into account Asked …

Total answers: 2

Can I execute commands from a midnight commander ssh connection?

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 location of the left or right panel. …

Total answers: 1