How do I know which shell?

How do I know which shell?
Answer
Use the following Linux or Unix commands:
  1. ps -p $$ – Display your current shell name reliably.
  2. echo “$SHELL” – Print the shell for the current user but not necessarily the shell that is running at the movement.
 

Tìm kiếm

Back
Top