Great to see your 'deep' Linux activity! (ref. your 1st IntroForum
ThreadPost)
Look into how busybox works: it has either soft or hard links to hundreds like `ls`
$0 is whatever you invoked it as. Try this: create a script called name:
Code:
echo 'echo I will do $0 but I am just plain name' > name
chmod 755 name; cat name
ln -s name name1; ln name name2; ls -li name*
./name1
./name2
(./ needed if . not in $PATH)
Note name2 is a 'hard' link:
same inode# as name! Thus 'physically' same file!
Best wishes! Enjoy always!
p.s.
here's a recent 'deep' book you might like; 11.3.4 mentions $0; 2.9 $PATH