I have a folder in /media/sf_fedora
which I want to access from Documents
instead of going into /media
each time, how can I create a shortcut. The 'Make Link' is grayed out in the Edit menu for some reason.
2 Answers
Open terminal and ln -s /media/sf_fedora ~/Documents/sf_fedora
would create a symlink in Documents
folder.
-
Also right clicking and dragging the sf_media folder into the Document folder should open a menu where one of the options is "make link".– GussOct 18, 2012 at 18:22
-
-
3Another option is
cd ~/Documents && ln -s /media/sf_fedora
. I use it because I always forget which argument comes first: the folder I want a link for, or the path of the link to be created :) Oct 18, 2012 at 18:37 -
@SkyDan:
ln
uses the same syntax ascp
. From source, to destination.– bahamatOct 18, 2012 at 18:39 -
@bahamat: Are you sure?
ln -s a b
will create a symbolic linkb
toa
, so the target (a
) comes first, while the source (b
) comes after. Incp a b
it's exactly the opposite:a
is the source, whileb
is the target, in this order.– user22304Oct 19, 2012 at 11:31
If you're using Nautilus, it has a dedicated mouse+key combo for creating symlinks:
Ctrl+Shift+drag
Alternatively, you can use either middle (wheel) click drag or Alt+drag to get a move/copy/link
menu.
-
Nice alternative to the above answer: it's graphical, which is what the OP was looking for! Oct 19, 2012 at 17:37
/run/media/<user>/
folder. And/media
is used for other purpose.