I have Ubuntu 14.0.4 LTS. I have the following folder on my system:


Also I have this symbolic link to that folder on my Desktop:

JBoss deploy -> /opt/JBoss_4.0.4.GA/server/default/deploy

When I double click on the link, nautilus opens a directory with this path:

/home/sasan/Desktop/JBoss deploy

But this is what I want:


Is there anyway to create a link that acts just like a shortcut? Or is there anyway to create actual shortcut in Linux?


There is a standard for desktop entry which is specified in These pages. You can specify what action to take when you open (effectively click) that desktop item. The action can be bash commands.

Or in your case:
nautilus /opt/JBoss_4.0.4.GA/server/default/deploy

Just For the sake of completeness, here's an example: Chrome.desktop

[Desktop Entry]
Name=Google Chrome

This is what the shortcut for chrome looks like in my Mint Desktop. That Exec line is what actually gets executed on click events, assuming the entry right after = is executable (arguments are separated by space).

| improve this answer | |
  • this is command that I use for opening a current directory from command line in GUI. – Raghvendra Jan 6 '16 at 8:29

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.