If I am in remote directory on different server via ssh I want to do to directory like /var/lib/edumate/backup without typing the whole path. Is there any way to do that in mc?

2 Answers 2


In MC favourites or bookmarks are stored in the hotlist directory.


The Directory hotlist command shows the labels of the directories in the directory hotlist. The Midnight Commander will change to the directory corresponding to the selected label. From the hotlist dialog, you can remove already created label/directory pairs and add new ones. To add new directories quickly, you can use the Add to hotlist command (Ctl+x,h), which adds the current directory into the directory hotlist, asking just for the label for the directory.

This makes cd to often used directories faster. You may consider using the CDPATH variable as described in internal cd command description. [1]

You can also use the hotlist to store frequently accessed ftp sites: if you access a site regularly, add it to your directory hotlist for faster access. Go to Command menu - Directory Hotlist - add by either typing it in, or if you are connected in a panel already, simply Add Current. Access the list with Ctl+\.[2]

  1. http://linux.die.net/man/1/mc

  2. http://www.trembath.co.za/mctutorial.html

  • great answer. Created new one though :-) unix.stackexchange.com/questions/14641/…
    – Radek
    Jun 9, 2011 at 0:53
  • Somehow CDPATH stopped working for me while inside mc and this drives me crazy. I tried switching shell before starting mc, or displaying value of CDPATH from mc and all seems ok but it fails to change directory.
    – sorin
    May 11, 2017 at 7:51
  • where is this 'Directory hotlist' ? best howTo to to edit this 'Directory hotlist' ?
    – SL5net
    Jun 5, 2021 at 9:59

My Workaround:

$ mc ~/DocumentsBla/ ~/DokumenteFasel/

then save (or open it like so later) it as SH-Script:


this Workarounds is fast in reading favorites, but slow in creating favorites.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .