answersLogoWhite

0

to get the current shell :

echo $0

also Use the command ps with -p {pid} option, which selects the processes whose process ID numbers appear in pid. Use following command to find out what shell you are in:

ps -p $$

User Avatar

Wiki User

12y ago

Still curious? Ask our experts.

Chat with our AI personalities

LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao
ProfessorProfessor
I will give you the most educated answer.
Chat with Professor
RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa
More answers

The 'pwd' command (short for "print working directory" should show you the current directory, assuming your shell doesn't already display it.

User Avatar

Wiki User

15y ago
User Avatar

pwd returns the current directory.

User Avatar

Wiki User

7y ago
User Avatar

Add your answer:

Earn +20 pts
Q: Which Linux command shows which shell you are in?
Write your answer...
Submit
Still have questions?
magnify glass
imp