cd /usr/share/applications
vim goland.desktop
##add content
[Desktop Entry]
Encoding=UTF-8
Name=goland
Comment=goland IDE
Exec=/usr/local/goland/bin/goland.sh #根据软件的具体执行路径修改
Icon=/usr/local/goland/bin/goland.png #根据软件的具体执行路径修改
Terminal=false #软件打开时是否启动终端
StartupNotify=false
Type=Application
Categories=Application;Development;
//右击拷备该文件到桌面。双击打开即可。
2.ubuntu添加别名,如方便进入某目录(若目录较长,经常使用。可使用别名)
cd ~
vim .bashrc
#add content
alias 'cdfs=cd $GOPATH/src/github.com/hyperledger/fabric-samples'
//使用时输入命令即可,即可进入某目录
cdfs