Skip to content

Instantly share code, notes, and snippets.

@dhruvpsaru
Last active January 29, 2020 11:56
Show Gist options
  • Save dhruvpsaru/9d2ca56dd0ce59f05b8c983d1939f423 to your computer and use it in GitHub Desktop.
Save dhruvpsaru/9d2ca56dd0ce59f05b8c983d1939f423 to your computer and use it in GitHub Desktop.
Linux create executable shortcut

For example lets consider that I am going to create shortcut of PyCharm whose sh is /disk2/setups/pycharm-community-2016.1.3/bin/pycharm.sh on ubuntu

  • touch ~/Desktop/py
  • echo "/disk2/setups/pycharm-community-2016.1.3/bin/pycharm.sh &" > ~/Desktop/py
  • cd ~/Desktop
  • chmod u+x py
  • sudo mv py /usr/bin/
  • Press Alt+f2. Enter py
  • pycharm will start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment