40

I have a folder in my Dropbox and I want to add a shortcut of that folder on my Desktop. I guess this should be extremely easy as in Windows OS :) However, I have no idea how to do it in Ubuntu 14.04.

Is there anything I can do to create a simple folder shortcut on my desktop?

  • 2
    You have two option to create shortcut. First right click on folder and hit make link .You can use terminal sudo ln -s (folder path) (where you want to create shortcut) – sohel4r Jun 21 '14 at 18:51
  • thanks a lot @sohel4r. I'll probably use the "make link" option – Jim Blum Jun 21 '14 at 18:52
  • 3
    @sohel4r Why use sudo for a simple link? Also, another option would be to press Ctrl+Shift and drag the folder to the Desktop. – muru Jun 22 '14 at 8:55
  • @muru Well You install apache then you want to link www folder .So What will you use .Think you want to make a link but you have't global permission of that folder .how will you make a link.I am know very poor in Linux.If i am wrong then teach me . – sohel4r Jun 22 '14 at 17:10
  • 3
    @sohel4r Well, he's not making a link in a root-owned folder, but to his own Desktop. Use sudo when you absolutely have to, not when you feel like it. As a sysadmin, I frequently get emails about users who try to use sudo when it is absolutely unnecessary, like the case you made just now. The right way to go about accessing folders of servers (like /var/www/ is to add yourself to the server's group (www-data, in this case), and make the folder group-writable. – muru Jun 22 '14 at 17:17
14

Click on that folder, click on make link, then move the shortcut to Desktop.

  • But when we click on that folder from desktop, there is no UP folder,back < takes to home/desktop/ folder – diEcho Oct 2 '14 at 5:26
  • 1
    Some of files, to which you don't have root privileges, won't work. – HelpNeeder Nov 29 '14 at 9:25
  • There's no make link option in Ubuntu 18 – Philip Rego Sep 22 at 12:53
62

it simple: just press Ctrl + Shift and drag.

  • 3
    A little short, but definitely an answer imho. – David Foerster Oct 30 '15 at 17:01
  • This worked for me in two cases 1) creating a link to a separate internal hard drive (not the system disk) where Make Link was grayed-out, 2) For a directory on NAS storage where the Make Link gave an error, "This target doesn't support symbolic links". – klequis May 18 '16 at 21:19
  • 2
    This is the answer. The other answers either resort to CLI or don't work. A short answer is fine. – Thufir Aug 2 '16 at 9:20
  • 1
    Ctrl+Shift+Legendary – co9olguy Feb 8 '17 at 15:18
  • This is handy, because I don't have an option in the right click context menu on folder - however is there a way how to add it to the context menu ? – jave.web Jan 13 '18 at 16:39
10

You can read full details here

man ln

ln -s /usr/bin/bar /opt/foo

also see this link Create a soft or symbolic link

  • That's wrong. That's only for files. You give no explanation and link to a different question. And why would you create a shortcut with a different name than the folder. – Philip Rego Sep 22 at 13:03
3

Apparently this is handled correctly from the GUI :-) (14.04 LTS)
(Move to Trash, Empty Trash)

But generally: When you have a link to a directory, be VERY sure to delete ONLY the link should/when you come to that point.

From terminal, the correct thing to do is:

rm LINK-TO-DIR


BUT NOT:

rm -r LINK-TO-DIR

... which will first delete the files/dirs that the link MAKES VISIBLE,
and even more so with the "-f" flag.


If you are a "Terminal" user, have a look on the output of

ln --help

... that ls lover case of LN nothing else ;-)

The syntax for it may seem a tad "backwards" at first as you FIRST specify where it should point, then the name of your LINK.

cd $HOME/Desktop
mkdir -p $HOME/z
ln -s $HOME/z New-Link-To-Home-z

... note that the GUI will not notice the new Desktop content without help; you need to logout+login.

More info on the 'net or slightly terse in either of

man ln
info ln

... where I personally prefer the first because 'info' has a tendency to 'slip out of context'.

-1

It's very simple. Simply visit the directory and right click on the mouse Select create new folder Give some name for the

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.