unix command

Is there any command to know which shell u r currently working and how to shift between k shell to c shell ,like wise
It depends on the shell you are using.

In Unix, it is typically expected that you know which shell you are using --command functionality is severely limited if you don't know.

To find out, examine the variable $0. For example, at the shell prompt:

% echo $0
/bin/sh
%

You can also use ps to list running processes or finger yourself to learn your startup shell ( http://www.haifa.ac.il/cc/unix/shells/what-shell.html ).

Hope this helps.
echo $SHELL will give you the current shell you are working with. Also if you want to switch to kshell just type ksh and similarly csh for c shell.
Topic archived. No new replies allowed.