How do you list a computer's video devices via terminal? Is there a command that lists them?
To list video output devices (e.g. monitors),
$ system_profiler SPDisplaysDataType
To list video input devices (e.g. webcams),
$ system_profiler SPCameraDataType
To get just the device names, filter the list accordingly:
$ system_profiler SPCameraDataType | grep "^ [^ ]" | sed "s/ //" | sed "s/://"
system_profiler
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With