GNU/Linux |
CentOS 5.3 |
|
![]() |
fexe(1) |
![]() |
fexe − Print a process or corefile’s executable path
fexe [−v] |
fexe Print a processe or corefile’s full executable path to standard output.
−v |
Use more verbose output, the process, executable, and /proc/PID/exe contents are printed. |
In this sequence a copy of bash is created and then executed, the running processes path examined:
$ cp /bin/bash
/tmp/sh
$ PS1=’sh$ ’ /tmp/sh
sh$ fexe $$
/tmp/sh
sh$ rm /tmp/sh
sh$ fexe −v $$
1234 null /tmp/sh (deleted)
frysk(7)
Report bugs to http://sourceware.org/frysk
![]() |
fexe(1) | ![]() |