Which command tells the current working shell?

Which command tells the current working shell?
Answer
ps -p $$ – Display your current shell name reliably. echo “$SHELL” – Print the shell for the current user but not necessarily the shell that is running at the movement. echo $0 – Another reliable and simple method to get the current shell interpreter name on Linux or Unix-like systems.
 

Tìm kiếm

Back
Top