ID shell and process

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: der.hans
Date:  
To: quatsch
Subject: ID shell and process
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
-- 
#  https://www.LuftHans.com/        http://www.CiscoLearning.org/
#  "The babys blood type? Human, mostly."  -- Orson Scott Card
---------------------------------------------------
PLUG-discuss mailing list - 
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss