On ubuntu machine I create a C# dotnet console project myapp
and publish it as a self contained application. It creates a new build and pushes to a directory.
Now I can simply cd
to the directory where it is published and run from bash ./myapp "arg1"
I wonder how do I make my own global linux command so that it will be executed from anywhere without cd
ing to the directory.
e.g. I ssh to my ubuntu and execute my custom command
myapp "arg1"