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/

posted @ 2022-10-28 00:27  profesor  阅读(14)  评论(0编辑  收藏  举报