Process ID of the current instance of Bash. This is not the same as the $$ variable, but it often gives
the same result.
由图可知$BASHPID由1713变为了1760!
由于我这里用crt登录的 bash显示为:‘’-bash“(其实为一进程);
也可以用:ps -ef | grep echo $$ | grep -v grep | grep -v ps显示当前进程的ID
本文介绍了如何查看Bash实例的进程ID,展示了使用特定命令来观察$BASHPID的变化,并解释了它与$$变量的区别。
1080

被折叠的 条评论
为什么被折叠?



