I created a shell script that logs me in to a server. The script was in a directory that was added to $PATHI think I might have deleted the script when not paying attention (not on purpose). I cannot find the script anymore. I tried several things:use Spotlight (I'm using a Mac - spotlight does pretty much the same as locate afaik)use which [scriptname]go to root and type find * | grep [scriptname]None of these solutions located the script. HOWEVER: the script is still working. Even after a reboot. What is going on here? Is the script still somewhere on my drive?
Can't locate shell script
search
Thanks guys, this is one of those days:I actually didn't wrote a script... I thought I did. Instead of writing a script, I just put an alias in my .bash_profile.I remembered when doing the type scriptname as jw013 suggested.Thanks guys.