[lug] Finding devices in /dev, gphoto2 permissions

Zan Lynx zlynx at acm.org
Wed Mar 23 23:15:10 MST 2005


On Wed, 2005-03-23 at 23:02 -0700, D. Stimits wrote:
> Stephen Queen wrote:
> > Is there a simple way to determine which special file in
> > /dev a device is associated with. For example, I know from
> > using lsusb the device and bus number

The Linux kernel 2.6 /sys directory solves this problem.  Every device
has a "device" file in there somewhere that tells you what major:minor
device numbers to look for.  Then a ls -l /dev should let you find the
device node.
-- 
Zan Lynx <zlynx at acm.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20050323/84c46ef1/attachment.pgp>


More information about the LUG mailing list