4 ways to find which shell I'm using
可以使用以下四条命令中的任意一条
ps -p $$
echo $0
pstree $$
cat /proc/$$/cmdline
确定shell的版本
zsh --version
bash --version
来源:https://linuxhandbook.com/shell-using/
可以使用以下四条命令中的任意一条
ps -p $$
echo $0
pstree $$
cat /proc/$$/cmdline
确定shell的版本
zsh --version
bash --version
来源:https://linuxhandbook.com/shell-using/