Skip to main content
1 of 3

Just append the path in the $PATH Variable in .bashrc like below:

export PATH=$PATH:/home/user/Project/sub1/sub2/sub3

And execute it from wherever you want in even without ./

$ninja

But ofcourse you can set alias also

alias runNinja='/home/user/Project/sub1/sub2/sub3/ninja'

And execute from wherever:

$runNinja