Is it possible to change the video device for eg a webcam form /dev/video6
to /dev/video0
? Can that be achieved by a command?
Asked
Active
Viewed 4,463 times
-1

user2737037
- 1,119
- 1
- 16
- 29
3 Answers
2
You can always manually rename the device file but that change won't be permanent. To make it clean and permanent you will need to add a udev rule. You can find documentation, for example for Arch Linux, here. The udev rules should apply to all current Linux distributions.

gerrit zijlstra
- 766
- 4
- 8
1
Can you just symlink /dev/video6
to /dev/video0
? That is, ln -s /dev/video6 /dev/video0
. If so, since the link is in /dev
you'd need to recreate the link whenever your system boots.

shanet
- 7,246
- 3
- 34
- 46