Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

list video devices via terminal

How do you list a computer's video devices via terminal? Is there a command that lists them?

like image 898
keith Avatar asked Nov 30 '10 17:11

keith


2 Answers

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/://"
like image 110
Ian Avatar answered Sep 21 '22 08:09

Ian


system_profiler

like image 35
khachik Avatar answered Sep 22 '22 08:09

khachik