I run a gaming server called PocketMine. So basically I have a folder in my home directory that has a bash script to run the server: ~/PocketMine/start.sh
Everytime I want to run the server I either cd into the folder and ./start.sh or PocketMine/./start.sh
I want to know how do I add a symlink called pocketmine in /usr/local/sbin (a lot of progs with symlinks goes here) that will run start.sh and use the contents of its dir.
/usr/local/sbin/pocketmine = ~/PocketMine/./start.sh
Call me lazy but im tired of cd-ing into the folder and running the script instead of just typing one command.
PocketMine/./start.sh. You sometimes need./in front of a plain filename that is in the current directory (i.e., after you have donecd PocketMine); in this example, to make explicit your desire to run a program from a directory that's not in your search path. But specifying any directory (i.e., anything with a/in it) will do that, so you can sayPocketMine/start.shif you are in your home directory, or~/PocketMine/start.shwherever you are, without using the/./.