which_shell_am_i_using
This is an old revision of the document!
Which shell am I using?
Q. Which shell am I using?
A. There are two ways
% echo $0 /usr/bin/zsh % ps -p $$ PID TTY TIME CMD 29189 pts/1 00:00:00 zsh
If necessary, the last command can be parsed as follows.
% ps -hp $$|awk '{print $5}' /usr/bin/zsh
related pages
which_shell_am_i_using.1672782846.txt.gz · Last modified: 2023/01/03 21:54 by raju