could someone help me how to get the result of this sudo ls -l that get the full path of PID, but i just want to show the result after the "->" in my .txt file..
sudo ls -l /proc/$pid/exe
example terminal result:
lrwxrwxrwx 1 user user 0 Sep 22 16:20 /proc/2518/exe -> /usr/libexec/gnome-terminal-server
example/expected result:
/usr/libexec/gnome-terminal-server
thanks, just a newbie here in using linux/ubuntu commands. :)