]> git.ipfire.org Git - thirdparty/systemd.git/blame - udevinfo.8
[PATCH] remove udevtest on 'make clean'
[thirdparty/systemd.git] / udevinfo.8
CommitLineData
7dae391f 1.TH UDEVINFO 8 "January 2004" "" "Linux Administrator's Manual"
e31474a1
GKH
2.SH NAME
3udevinfo \- retrieve information from udev
4.SH SYNOPSIS
5.B udevinfo
6.RI "[-q " query_type " -p " sysfs_path "] [-drVh]"
7.SH "DESCRIPTION"
8.B udevinfo
9allows users to query the udev database for information on any of the devices
10currently present in the system. It also provides a way to query any device
11in the sysfs tree to help in creating
12.B udev
13rule files.
14.SH "OPTIONS"
15.TP
16.B -V
17Print the version information.
18.TP
19.B -r
20Print the the
21.B udev_root
22directory. When used in conjunction with a query for the node name, the
23.B udev_root
24will be prepended.
25.TP
26.BI -q " query_type"
27Query the database for specified value of a created device node.
01fc6768
KS
28.RB Needs " -p " or " -n " specified.
29.br
e31474a1 30Valid types are:
01fc6768 31.BR name ", " symlink ", " mode " ," owner " , " group " or " path.
e31474a1
GKH
32.TP
33.BI -p " sysfs_path"
34Specify the sysfs path of the device to query.
35.TP
36.BI -n " name"
37Specify the name of the node for the device to query.
38.TP
01fc6768
KS
39.B -a
40Print all
16378373 41.BI SYSFS{ filename }
01fc6768
KS
42attributes along the device chain. Useful for for finding
43unique attributes to compose a rule.
44.RB Needs " -p " specified.
45.TP
e31474a1
GKH
46.B -d
47Dump the whole database.
48.TP
49.B -h
50Print help text.
51.SH "FILES"
52.nf
53/etc/udev/* udev config files
54.fi
55.LP
56.SH "SEE ALSO"
57.BR udev (8)
58.SH AUTHORS
59.B udevinfo
60was developed primarily by Kay Sievers <kay.sievers@vrfy.org>, with help
61from others.