I'm trying to create a shortcut that will run a .sh file deep in some directory without having to navigating to the absolute path.
I have tried using aliases, which did not work as.
Using soft/hard links, they did not work too as there are certain dependencies in that directory which the shell script reference to.
Anyone has any idea how to ./
a file without having to traverse down that absolute path?
The alias I have tried is :
alias minecraft='/var/www/owncloud/data/admin/files/Spigot/start.sh'
I have tried the Path variant by adding PATH=/var/www/owncloud/data/admin/files/Spigot:"$PATH"
into ~/.bashrc
.
Which then brings the message :
Error: Unable to access jarfile spigot.jar
I'm using a cli version of Ubuntu if it helps, so no Nautilus.