Questions tagged [midnight-commander]
Midnight commander is a dual paned, curses based file manager with a text user interface, inspired by Norton Commander
108
questions
0
votes
1
answer
47
views
The keyboard does not work in Midnight Commander running on a remote computer via SSH
This is my first post on super user. I'm having a weird problem with Midnight Commander running remotely via SSH. The problem is that none of the keys work after running the mc via SSH running in the ...
2
votes
1
answer
126
views
Midnight Commander on Mac - Compare files doesn't work
In the latest Midnight Commander version (4.8.30) installed with Brew on Mac M2 compare files doesn't work. Seems it tried to call diff with unrecognized option.
command diff --version show: Apple ...
2
votes
1
answer
279
views
Why is midnight commander able to copy files so much faster than cp?
I discovered an interesting behavior of mc. When I copy files across devices (at least those that are smaller than free RAM) it seems that the copy is using writeback cache and is nearly instant (on ...
0
votes
0
answers
206
views
Refresh file content in internal Midnight Commander file editor & viewer
I prefer internal Midnight Commander file editor & viewer when work on remote machines.
When I read log files I expect they updates and I want to trigger re-load without losing current screen/...
0
votes
0
answers
180
views
Midnight Commander: Recursively copy files by pattern
I have two directories named "src" and I want to copy recursively all C++ source files (*.h and *.cpp) from one directory to the other (including subdirectories).
Using the pattern as a ...
1
vote
1
answer
646
views
"ALT" key not working in Midnight Commander on macOS terminal
I frequently use the history drop down in Midnight Commander on Linux via Alt+Shift+h, and it doesn't work. In fact, none of the commands that require Alt do.
1
vote
1
answer
98
views
Pipe failed error when trying to edit file in Midnight commander
I am trying to setup Docker container for development. I have Windows 10 Pro 19044.2251, so I installed Docker Desktop, fixed WSL 2, run container like
docker run --name Fresh -it --gpus all ubuntu sh
...
0
votes
0
answers
103
views
Can't save password for ssh
Linux Mint 20.3
Midnight Commander hotlist file content:
GROUP "Server"
ENTRY "/sh://[email protected]/opt/server" URL "/sh://root:[email protected]/opt/server"
...
1
vote
3
answers
617
views
how to fill-in absolute path filename in mc?
Please, I cannot figure out how to fill-in absolute path filename in mc (Midnight commander)? I am familiar with ALT+ENTER to drop the filename onto the line, but that is just the relative filename, I ...
1
vote
1
answer
741
views
Midnight Commander user menu command to run external diff tool
Is it possible to create an entry in Midnight Commander's "user menu", which operates on two files, possibly one from each pane?
I'm trying to set up a user command that will open Meld for ...
0
votes
1
answer
198
views
What is the function of [^] (caret in square brackets) at the end of a dialog box input line in Midnight Commander?
┌───────────────────── Select ──────────────────────┐
│ ⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛ [^] <===== THIS
│ [ ] Files only [x] Case sensitive │
│ [x] Using shell patterns ...
0
votes
1
answer
579
views
Where midnight commander keeps ftp history?
I've checked /etc/mc but It's not there, also not in config/mc/ini
The system is debian 9.9
1
vote
1
answer
1k
views
How to keep Midnight Commander running after you open a file?
mc (Midnight Commander) is an excellent CLI file manager, but I have really struggled with this problem:
How to get mc to keep running after you choose to open a file?
For example, when I navigate to ...
6
votes
1
answer
6k
views
How to show file sizes In Midnight Commander in the most compact form? ("smart file sizes" in Total Commander)
MC shows file sizes in kilobytes and bytes by default, but it is hard to read, and it would be easier to see them in the "closest" unit available. That is:
1234567 -> 1M
123456 -> ...
1
vote
0
answers
556
views
How to set Lynx like motions in mc globally
I love the feature Lynx like motion in Midnight commander. Whenever I access new system, this is the first thing I customize. Now I am on a server with lots of system accounts and it becomes annoying. ...
0
votes
1
answer
2k
views
Midnight Commander multi-rename with numerical values for new file names
With F6 we can multi-rename group of selected files in mc. I know, for example, how to search and replace using some regexp tokens subset in this menu. But how to proceed if I need rename a group of ...
9
votes
3
answers
8k
views
F10 key not working in terminal/MC, Ubuntu 19.10
I'm on Ubuntu 19.10 desktop, trying to use terminal and mc. The F10 key shortcut to quit MC is not working, nothing happens, only the cursor blinks when I press F10. I tried some ideas about this I ...
0
votes
0
answers
66
views
Increasing Midninght commander dark white contrast
Midnight commander is used from putty client from Windows 10 in Debian 10.
Its file names are low contract (dark white) and are difficult to read notebook screen in heavy sunlight:
Directory names ...
2
votes
1
answer
1k
views
Slow midnight commander startup
OS: Ubuntu 18.04.
I'm midnight commander user. When i starts terminal and then type "mc", it starts immediately. But i don't want to type it every time i open terminal. So i added "mc" to end of ....
8
votes
1
answer
4k
views
How to start Midnight Commander in one panel mode?
I want to start Midnight Commander in one panel mode.
I know I can toggle it on/off using Alt + t but I want it to be in one panel mode from the start.
How can I do this? Is there a command line ...
3
votes
1
answer
2k
views
Midnight Commander: configure error: S-Lang library version 2.0 or newer not found
Trying to update Midnight Commander to the latest version (4.8.23), I downloaded the corresponding tar.xz file from their website (http://ftp.midnight-commander.org/?C=N;O=D), extracted the files and ...
0
votes
0
answers
102
views
Attach to Midnight Commander session
I found kind of hard but I can't attach to MC session.
I tried to find something in tutorials in internet but there is nothing about detached/attached MC. I've detached it by... mistake, but there is ...
2
votes
1
answer
233
views
Why I can see lot more free disk space as root than as a user?
When I am logged in as a user, I can see free disk space: 1.2 Gb, with Midnight Commander. Surprisingly when I run "sudo mc" then Midnight Commander shows a lot more free disk space: 1.9 Gb. How is it ...
0
votes
0
answers
292
views
disable scroll on mouse click in Midnight commander's mcview
I use Midnight commander and it's mcview a lot to browse log files. I often want to use mouse to select text and copy it, but if I click in the text mcview will scroll. I tried to disable it by ...
0
votes
1
answer
95
views
Midnight Commander Editor status line decryption
What is mcedit status line symbol decryption?
There are 4 status symbol places there:
B -- Block text selection
M -- Modified
(I don't know)
O -- I don't know
I also don't understand what is 1+ in ...
0
votes
4
answers
8k
views
Midnight Commander on Windows
I would like to use Midnight Commander on Windows. I found some threads related to Cygwin enabling me to use linux software on Windows. Can anyone point me to a documentation that might help me ...
2
votes
1
answer
1k
views
How to add a custom parser for a file type into MC viewer?
When you press F3 on a .sqlite file in midnight commander the Viewer shows the SQL dump of the file instead of the original binary, and F8 can be used to switch between parsed and raw modes.
This ...
1
vote
0
answers
236
views
Using img2txt in Midnight Commander
As far as I know it is possible to use img2txt with Midnight Commander as described here. My question is how to setup (in details) img2txt on Mac and how to use it with MC.
OS: macOS High Sierra 10....
0
votes
1
answer
341
views
More visible space in Midnight Commander for command lines
I want more space as shown here:
How can I get it?
UPD: There is FAR on the screenshot, but seems mc support this feature too: F9 > Options > Layout > Console output. But it do not works: upstream ...
6
votes
2
answers
6k
views
How to change UI language for midnight commander Mac
i installed midnight commander by means of brew (brew install mc). But couldn't understand why it's in french. i've tried to reinstall it but it's turned out to be the same thing. Now i'm wondering ...
1
vote
2
answers
3k
views
How to right-click to paste in mcedit
On a bash terminal I can right-click to paste to vim or nano, but mcedit does not receive my clipboard data on right-click.
How to right-click to paste in mcedit?
3
votes
0
answers
883
views
Git integration for midnight commander or alternatives
Does Midnight Commander offer support for Git like highlighting changed / added files or is there an alternative File Manager supporting this?
Update:
Something similar to WebStorm/IntelliJ ...
5
votes
0
answers
586
views
Sizes of the panels in Midnight Commander
Can I change the height of the panels in Midnight Commander like in Far (pressing Control+Up or Control+Down )?
3
votes
0
answers
1k
views
Weird Midnight Commander look in tmux
How to fix this mc look in tmux session?
This is how mc looks without tmux
I have export TERM=xterm-256color in .bash_profile
set -g default-terminal "screen-256color" in .tmux.conf file
2
votes
0
answers
825
views
Defining Midnight Commander's External Editor on Windows
I'm new to Midnight Commander. Very impressed so far. I'm working in both Mac OS and Windows, and would like to use vim as my external editor. That seems to be the default external editor on the Mac, ...
1
vote
1
answer
57
views
Is it possible to change permission of group by VI editor
I'm new to vi-editor and trying to edit permission of mc (Midnight Commander) group by vi-editor.
I try to locate where is mc:
vi /usr/share/mc
but it gives me empty file and says mc is a directory.....
7
votes
2
answers
4k
views
Midnight commander file transfer "fish: storing file"
when I copy files using Midnight Commander fuction named shell link (I guess it is kind of ssh ) it takes sometimes very long.
More precisely, the copy time-bar is finished quite fast (20MB/s), but ...
1
vote
1
answer
532
views
How to specify arguments for editor in Midnight Commander
I'm using Nano as the editor in MC. I would like it to scroll by 1 line, which is not its default behavior.
I've found that you can specify the option -S when you run Nano to enable smooth scrolling, ...
0
votes
1
answer
852
views
Midnight commander sometimes very slow
I'm using midnight commander with Cygwin 64 bit on Windows 10 64 bit.
After moving to a new machine and a clean reinstall of windows and cygwin, my midnight commander started to get very laggy from ...
1
vote
0
answers
168
views
When mc runs as root doesn't obey bindings
I created a bindings file for mc that opens geeqie file viewer when my user presses Enter on a [jJ][pP][gG] file.
Copied that bindings file from ~./config/mc/bindings to /root/.config/mc/. When I ...
3
votes
0
answers
250
views
Editor in panel - Midnight Commander
Is it possible to set the other panel display mode to editor view in midnight commander?
Something like the panel quick view display mode (ctrl+x,q) with the ability to modify the content.
1
vote
1
answer
937
views
Where can I find keyboard key names used in mc.keymap?
I want to assign some actions to key bindnigs in Midnight Commander like Alt+[ or Alt+].
Where can I find "code names" for this (and other) keys?
For example I already found some keys:
` = "prime"
{ ...
4
votes
1
answer
3k
views
mc - Midnight commander - How do I sort so that directories are on top?
By default, mc sorts so that the directories are on top (come before files). Somehow, I've changed this so that the directories are sorted alphabetically. Where is the option or keyboard shortcut to ...
11
votes
1
answer
18k
views
Configuring function keys in PuTTY for both Vim and Midnight Commander under tmux?
First off, I'm aware that I can use Alt+1 (through 9 and 0) to synthesize the respective function keys (F1 through F10) in Midnight Commander. It has helped me many times, but by default I still press ...
3
votes
1
answer
900
views
In mc within tmux ctrl-o doesn't work
When I run mc within tmux:
$ tmux
$ mc
'Ctrl-o' in mc desn't work properly: mc panes disappear, but the shell command prompt doesn't appear, and pressing any key causes mc panes appear again. When ...
5
votes
2
answers
14k
views
Midnight Commander — Multiple Selection
In MC I can copy the name of the current file from the list of files to the console pressing Ctrl+Enter.
Suppose I want several files to copy to console. Example: want to create *.zip with several ...
2
votes
2
answers
297
views
Custom function as "edit" in Midnight Commander
The problem
I'm using tmux and I want MC to open files for editing in another tmux window, so that I can keep browsing files while editing.
What I've tried
MC checks if EDITOR variable is set and ...
5
votes
3
answers
5k
views
Shift-F5 and Shift-F6 don't work in Midnight Commander on Mac OS X
ShiftF5 does not copy file.
ShiftF6 does not rename file.
How I can reassign these key combinations?
2
votes
1
answer
1k
views
Cycling through files by filename in Midnight Commander
Sorry if I should have posted this as a feature request to mc developers somewhere.
This is such a common and useful functionality I assumed it ought to be there, yet I can't find it.
What I want is ...
55
votes
9
answers
156k
views
Copy and paste text in midnight commander (MC) via putty in Linux
I use Midnight Commander (MC) editor over putty to edit files
I want to know how to copy text from one file, close it then open another file and paste it?
If it is not possible with Midnight ...