
How to check if process is running in linux - Stack Overflow
Nov 6, 2012 · You don't want to know if a particular process (of known pid) is running (this can be done by testing if /proc/1234/ exists for pid 1234) but if some process is running a given …
How find out which process is using a file in Linux?
Aug 22, 2023 · (THough of course, if killing the process is what you want, fuser can do that with its -k option. You can have fuser use other signals with the -s option -- check the man page for …
linux - how to investigate what a process is doing ... - Stack Overflow
May 19, 2009 · A great tool to use is ps and lsof. You can use ps to find the PID or process ID of that process or use ps -u {process-username} to get it's PID. Then use lsof to see which files …
show a process's detail by id on linux - Stack Overflow
Jul 18, 2014 · ps -p <pid> -lF ...will give you information about the process like which command started it, time it was started, its state, parent pid, size etc.
linux - What killed my process and why? - Stack Overflow
There are 3 players in this event: (1) The process which (common cause) takes too much memory and causes the OOM condition (2) The kernel which sends the SIGKILL (signal 9) to terminate …
linux - Is there a way to identify the user who owns a process from ...
May 3, 2023 · The owner of the process is the owner of all files in the /proc/PID directory. $ ls -l /proc/27595 total 0 dr-xr-xr-x 2 me users 0 Jul 14 11:53 attr -r----- 1 me users 0 Jul 14 11:53 …
How to find out which processes are using swap space in Linux?
Jan 26, 2009 · Process names on Linux can contain any byte value but 0 but are limited to 15 bytes in length. The Name entry in /proc/*/status encodes some of those byte values. Try for …
Retrieve CPU usage and memory usage of a single process on Linux?
Aug 3, 2009 · All of the answers here show only the memory percentage for the PID. Here's an example of how to get the rss memory usage in KB for all apache processes, replace "grep …
How to find ports opened by process ID in Linux?
As a side note, netstat -ao will read the /proc/PID/tcp etc to see the ports opened by the process. This means that its reading information supplied by the system (the linux KERNEL), and is in …
linux - How to show only sleeping processes - Stack Overflow
Dec 30, 2019 · Every utility querying about processes go thru /proc/ (because there is no other way to interact with the kernel to query process state). However, you should consider using …