我想知道是否有办法跟踪在 Linux 中运行命令的位置。
例如,如果我调用一个脚本,有没有办法跟踪它是从哪里调用的,比如从程序或另一个 bash 脚本启动。
linux bash command-line
bash ×1
command-line ×1
linux ×1