Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 9 down vote accepted

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

share|improve this answer
    
great answer. Created new one though :-) unix.stackexchange.com/questions/14641/… –  Radek Jun 9 '11 at 0:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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