Midnight commander: Difference between revisions

From Helpful
Jump to navigation Jump to search
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 29: Line 29:


* You're starting it in a directory that has a ''lot'' of entries  
* You're starting it in a directory that has a ''lot'' of entries  
: Or the other panel is. In some cases giving it directories that do not have a lot, e.g. {{inlinecode|mc . .}}, would help
: Or the other panel is. In some cases giving it directories that you know do not, e.g. {{inlinecode|mc . .}}, would help




* Your host lookup setup is flawed (and this isn't the only thing affected)
* Your host lookup setup is flawed (in which case this isn't the only thing affected)




* It's trying to interact with X   
* It's trying to interact with X   
: Diagnosis: doing a <tt>strace mc</tt> will show it hangs after mentioning <tt>MIT-MAGIC-COOKIE-1</tt>)}} until a timeout some seconds later
: Diagnosis: doing a <tt>strace mc</tt> will show it hangs after mentioning <tt>MIT-MAGIC-COOKIE-1</tt> (or something else X related) until a timeout some seconds later




Line 42: Line 42:
I added the following to my bashrc:
I added the following to my bashrc:
  alias mc="DISPLAY= mc"
  alias mc="DISPLAY= mc"


==Your own file handlers==
==Your own file handlers==

Latest revision as of 12:22, 8 May 2024

midnight commander is a text mode file browser, one of many interrelated clones you can trace back to norton commander.


Very slow start

Possibilities:


  • You're starting it in a directory that has a lot of entries
Or the other panel is. In some cases giving it directories that you know do not, e.g. mc . ., would help


  • Your host lookup setup is flawed (in which case this isn't the only thing affected)


  • It's trying to interact with X
Diagnosis: doing a strace mc will show it hangs after mentioning MIT-MAGIC-COOKIE-1 (or something else X related) until a timeout some seconds later


If you don't care about X, clearing DISPLAY would be a quick fix. I added the following to my bashrc:

alias mc="DISPLAY= mc"

Your own file handlers

https://softpanorama.org/OFM/MC/extension_menu.shtml