Does mc (Midnight Commander) have favourites for directories

mc

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?

Best Answer

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

Hotlist

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

Related Question