Saturday, January 19, 2013

Using fuser to find who's doing what

I just ran across a use of the program fuser which I have never used. It might come in handy for debugging stuff. It is used to identify processes using files or sockets.

It was suggested to use fuser to find what user has access to my sound card.
~ $ fuser -v /dev/snd/*          
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  tward       785 F.... cairo-dock
                     tward       791 F.... pulseaudio

No comments:

Post a Comment