ID shell and process

Jon M. Hanson jon at the-hansons-az.net
Thu Aug 2 05:49:40 MST 2007


der.hans wrote:
> moin moin,
>
> a question on another list about determining which shell is currently
> being used led to some nice answers.
>
> I thought I'd post some here in that the answers might not only be useful,
> but might lead to learning more about how things work.
>
> ls -l /proc/$$/exe
> readlink /proc/$$/exe
> cat /proc/$$/cmdline
> ps -p $$ 
> ps | grep $$
>
> If you haven't wandered around in proc you should check it out. If you
> have, you should likely look again :).
>
> /me looks again.
>
> ciao,
>
> der.hans
>   
Another one is echo $0.


-- 
Jon M. Hanson (N7ZVJ)
Homepage:  http://the-hansons-az.net
Weblog:    http://the-hansons-az.net/wordpress
Jabber IM: jon at the-hansons-az.net


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20070802/26515682/attachment.pgp 


More information about the PLUG-discuss mailing list