What this does It goes back all of the parent processes and prints them to stdout, so you know what program your script was started by. Example output 755957: /bin/zsh 685059: konsole [kdeinit5] 5625: kdeinit5: Running... 1: /sbin/init