To Create Shortcuts In Linux

less than 1 minute read

Description:

This may seem like a trivial post, but until I get more of them and can aggregate them up into a single post, I will go ahead and make it a separate post. So follow this to create a shortcut in Linux.

To Resolve:

1a. Generally, you can just type “ln -s (source) (destination)”. For my example, I wanted to create a shortcut for a “shared folder” in Virtualbox between host machine and Centos.

  1. Open terminal, type:
ln -s /media/sf_G_DRIVE/linux /home/gerry/linux

NOTE: In this example, my shared folder was named “sf_G_DRIVE” and my user was “gerry”

  1. To place a desktop shortcut for Firefox: Right click on the desktop and create a new file or run “touch firefox.desktop” and then “vi firefox.desktop” and place in:
#!/usr/bin/env xdg-open

[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Firefox Web Browser
Exec=firefox %u -new-tab https://docs.google.com/document/d/1Aq6FSCy66y8Ee-yuLNeAHh32SKEq_mS_rEHkJ8nM7Yc/edit
Icon=firefox
Terminal=false
Type=Application
StartupWMClass=Firefox-bin
MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;
StartupNotify=true
X-Desktop-File-Install-Version=0.15
Categories=Network;WebBrowser;
  1. Save as: Firefox.desktop