[LINUX] Get absolute path of running process

$ ps -ef | grep containerd

root      8723  8715  0 12:26 ?        00:00:01 containerd

If there have many commands with name containerd, the result may let some annoyance.

If you want to know the full path of the process, can do this:

$ ls -al /proc/8723/exe 
lrwxrwxrwx 1 root root 0 Feb 14 12:26 /proc/8723/exe -> /usr/local/bin/containerd

Recommended Posts

Get absolute path of running process
Get the absolute path of the script you are running
To get the path of the currently running python.exe
I want to get the path of the directory where the running file is stored.
[Python] Get the official file path of the shortcut file (.lnk)
[Python] Get the script execution directory with an absolute path
Handling of absolute paths of os.path.join
About Japanese path of pyminizip
Deep running 2 Tuning of deep learning
Get rid of python's KeyError
Get the number of digits
Maya | Get the workspace path
[Introduction to Udemy Python3 + Application] 69. Import of absolute path and relative path
Get a list of files in a folder with python without a path