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:

  1. 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.

  2. Open terminal, type:

    1
    
    ln -s /media/sf_G_DRIVE/linux /home/gerry/linux
    
    • In this example, my shared folder was named “sf_G_DRIVE” and my user was “gerry”
  3. 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:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    
    #!/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;
    
  4. Save as: Firefox.desktop

Comments