Hot answers tagged

52

or you can toggle it with Alt-. (Alt-period)


44

Choose Options from the menu bar, then Panel options. You have it right there, 5th option on the left column: "Show hidden files".


32

mc/subshell integration is a frequent culprit; to verify, try: alias mc="mc --nosubshell"


29

Run MC as usual. On the command line right above the bottom row of menu selections type select-editor This should open a menu with a list of all of your installed editors. This is working for me on all my current Linux machines.


28

You don't need any plugins. You have two options: In current directory panel, type Alt+s or Ctrl+s, then type your search pattern, the cursor will jump to the matches sequentially. To toggle through all results that match the current pattern, repeat the keystroke. Note: The Ctrl+s combination will freeze many terminal implementations (press [Ctrl+q to ...


27

You just need to prepend it with Esc: Esc-Tab does completion, and it will even give you a tiny dropdown if you do it twice. (That being said, you probably won't get the more fancy expansion possibilities of some shells.)


17

Posting an answer as requested. MC has sorting by version, which is their name for natural sort. You can enable it by F9 -> Sort order -> Version.


14

For one-liners, use %t at the command line, which gets substituted for a list of your selected items. for F in %t; do echo "${F} is selected"; done cp %t /var/somewhereelse/


13

Actually editing /etc/hosts solved the problem for me. My mc took 10 seconds to start due to the fact that during startup mc tries to resolve the local hostname to an IP address. I added to /etc/hosts the following line (my hostname is FOO) 127.0.0.2 FOO.domain FOO That instantly solved the problem.


13

For me in iTerm2 the Esc i (First press esc and after press i not in the same time) is working well on my mac,


13

That turned out to be simpler as one might think. MC_HOME variable can be set to alternative path prior to starting mc. Man pages are not something you can find the answer right away =) here's how it works: - usual way [jsmith@wstation5 ~]$ mc -F Root directory: /home/jsmith [System data] <skipped> [User data] Config directory: /home/jsmith/....


9

mc -X worked for me (xterm disabled)


9

It works for me now. I am using GNU Midnight Commander 4.8.21 strace wait on long time connect(3, {sa_family=AF_INET, sin_port=htons(6011), sin_addr=inet_addr("x.x.x.x")}, 16) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)' I tried this: # hostname use this for /etc/hosts: nameofhost=hostname add this $nameofhost to the /etc/hosts on ...


9

You might also try to toggle hidden files with Esc+. (escape + period), if Alt+. does NOT work. This keyboard shortcut works on my Debian+xfce installation. Note, that originally it is M-., where M stands for Meta key. You can find more (fascinating!) information about it in the @Gilles answer here: What does m-tab mean? If you still prefer to use Alt+. ...


8

It is documented in the help, the node is "Edit Menu File" under "Command Menu"; if you scroll down you should find "Addition Conditions": If the condition begins with '+' (or '+?') instead of '=' (or '=?') it is an addition condition. If the condition is true the menu entry will be included in the menu. If the condition is false the menu entry will ...


8

You can open file with F3. Hex view - F4. Start edit - F2.


8

Yes, of course you can put your preferred shortcuts in ~/.config/mc/mc.keymap to override the default in /etc. don't forget to put the section. e.g [main] , [panel]. if you want to change the default keymap, but you don't know what to type, you can always refer the format in /etc/mc/mc.default.keymap this is mine [panel] Sort = alt-! SortPrev = SortNext = ...


7

mc supports "Shell links" in the respective "side menu". This uses ssh to establish a fish connection (FIle transfer over SHell filesystem). mc help/man page: AFAIK there is no equivalent to -J ssh option, when going through a jump server.


6

You're missing the main Debian repositories, your sources only point to the security repo. Uncomment the last lines in /etc/apt/sources/list. Change this: # deb http://ftp.debian.org/debian/ wheezy-updates main # deb-src http://ftp.debian.org/debian/ wheezy-updates main to this: deb http://ftp.debian.org/debian/ wheezy main deb-src http://ftp.debian.org/...


6

There was a fix in MC 4.8.19 which makes redefining tab work https://midnight-commander.org/ticket/3672 This config sample from the fix makes simple Tab work: [main:empty-cmdline] ChangePanel = tab [main] ChangePanel = [input] Complete = tab; alt-tab


6

According to this thread, there is a bug/problem with mc, depending also on how it is compiled. The option is to recompile it with SUBSHELL off; or to run it as: mc -u So, the easiest option is to create an alias to mc as mc -u. As in: alias mc='mc -u' From man mc: -u, --nosubshell Disable use of the concurrent shell (only makes ...


5

It might start slow because it starts a subshell (shown when you press Ctrl + O) and displays the UI only when the subshell started. I use zsh and I noticed when I remove my ~/.zshrc file mc starts instantly.


5

To escape the percent signs, double them: tar -czf dirname_$(date '+%%Y%%m%%d').tar.gz %d The above would compress the current directory (%d) to a file also in the current directory. If you want to compress the directory pointed to by the cursor rather than the current directory, use %f instead: tar -czf %f_$(date '+%%Y%%m%%d').tar.gz %f mc handles ...


5

You can press Ctrl-\ to go to a list of shortcuts to your preferred directories. You can organize these directories in groups. On a side note: it's worth to invest a few minutes in reading the manual. There are many, many useful commands you'll discover. Edit: If all you want is to navigate to a directory in the current panel, then Alt-s is the way to go,...


5

F4 toggles hex mode in the Midnight Commander viewer (accessed using F3), not in the editor. Once in hex mode in the viewer, F2 allows you to make changes to the file being viewed. As you discovered, F4 in the editor starts a search.


5

press enter on the .. when you're in the root of sshfs.


5

tl;dr: Get used to Alt+Enter (a.k.a. ESC followed by Enter) instead. Ctrl+Enter generates the exact same sequence in terminal emulators as Enter, so there's no way for an app to distinguish these two. Well, no way by looking at the input stream it receives from the terminal emulator. mc has an interesting feature called "X11 support". It does not only look ...


4

mv works in two ways. mc moves behave the same way. If the files are on the same logical device (partition or disk), only the directory entries are moved. This can be extremely fast. If the files are on different logical devices, the files are copied and the old file deleted after the copy is done. This is relatively slow as the file must be read, and ...


4

It's in the following file: ~/.config/mc/ini.


4

It seems you've removed the standard sources. security.debian.org only contains security updates. It does not contain all packages available in Debian. You'll need to re-add http://ftp.xx.debian.org/ (where xx is your closest ISO two letter country code. E.g., us, jp, fr, etc.) to your sources.list. If you need help identifying your sources, see http://...


Only top voted, non community-wiki answers of a minimum length are eligible