In effort to avoid having to tape my microphone and camera on my laptop. I'd like to either write a script that alerts me if it's in use. So I can either say Hi to the user who successfully accessed my camera or microphone.
Or run for the hills.

I tried for example to run

fuser -v /dev/video*

But this returns nothing.

  • For the webcam, this command will at least give you the number of active users, but no names: lsmod|grep -e ^uvcvideo -e ^Module – Bernt Ribbum Jun 7 at 21:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.