Thursday, July 23, 2009

fuser/ps top tip

Stolen from http://www.c0t0d0s0.org/archives/4228-Less-known-Solaris-Features-fuser.html#extended and http://blogs.sun.com/petesh/date/20050127 but worth repeating.

This nice one liner gives ps output for the processes using a mountpoint;
ps -f -p "$(fuser -c /app/data 2>/dev/null)"

No comments:

Post a Comment