Linux – Equivalent of openSuse “zypper ps” on other distros

centoslinuxopensuse

I love how "zypper ps" in openSuse 11.2 tells you which currently running processes need to be restarted after an update with "zypper update".

How can I do this with other distros, in particular CentOS?

Best Answer

A generic solution would be:

lsof | grep deleted

This gives a list of files which are deleted, but still referenced by processes.

FYI, internally, the system already replaced the filename, hence it points to the new data. The old data blocks still exist at the disk until the remaining applications have closed the file.

Related Topic