Forrest logo
back to the v4l2-ctl tool

v4l2-ctl:tldr:5ca8f

v4l2-ctl: List all video devices.
$ v4l2-ctl --list-devices
try on your machine

The command "v4l2-ctl --list-devices" is used to display a list of video devices (or webcams) connected to your system that are supported by the Video4Linux2 framework.

Here's how the command works:

  1. "v4l2-ctl" is the name of the command-line utility used to control settings and properties of Video4Linux2 devices in Linux.

  2. "--list-devices" is an option or argument provided to the "v4l2-ctl" command. It instructs the utility to list all the video devices available on the system.

When you run this command, the output will show information about the detected video devices such as their names, driver information, and the device paths. This information can be useful for identifying and troubleshooting video devices on your Linux system.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the v4l2-ctl tool