News for hackers. Stuff that matters.

kazgul

Re:Interesting commands for the Linux shell on Thursday September 14, 2017 @11:54AM (#15249227)
That is not the same use case.

You could use this to get the current location of the script being run (not the location where it runs).

   readlink -f $0