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 3,622 times
-1
user2737037
- 1,021
- 15
- 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
- 716
- 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
- 6,961
- 3
- 33
- 45