- To get the name:
sh -c 'ps -p $$ -o ppid=' | xargs ps -o comm= -p
- OR to get full path of executable:
sh -c 'ps -p $$ -o ppid=' | xargs -I'{}' readlink -f '/proc/{}/exe'
source: https://askubuntu.com/a/1022440
sh -c 'ps -p $$ -o ppid=' | xargs ps -o comm= -p
sh -c 'ps -p $$ -o ppid=' | xargs -I'{}' readlink -f '/proc/{}/exe'
source: https://askubuntu.com/a/1022440