13

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?

22

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

| improve this answer | |
  • great answer. Created new one though :-) unix.stackexchange.com/questions/14641/… – Radek Jun 9 '11 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 '17 at 7:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.