]> git.ipfire.org Git - thirdparty/systemd.git/blame - udevinfo.8
[PATCH] 040 release
[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
758f236f 6.RI "[\-q " query_type " \-p " sysfs_path "] [\-drVh]"
e31474a1
GKH
7.SH "DESCRIPTION"
8.B udevinfo
b86f56ff
KS
9allows users to query the udev database for information on any device
10currently present on the system. It also provides a way to query any device
11in the sysfs tree to help creating
e31474a1 12.B udev
b86f56ff 13rules.
e31474a1
GKH
14.SH "OPTIONS"
15.TP
758f236f 16.B \-V
e31474a1
GKH
17Print the version information.
18.TP
758f236f 19.B \-r
b86f56ff 20Print the
e31474a1
GKH
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
758f236f 26.BI \-q " query_type"
fc238cff
KS
27Query the database for specified value of a created device node or network
28interface.
758f236f 29.RB Needs " \-p " or " \-n " specified.
01fc6768 30.br
e31474a1 31Valid types are:
8ea84a8a 32.BR name ", " symlink ", " mode " ," owner " , " group " , " path " or " all.
e31474a1 33.TP
758f236f 34.BI \-p " sysfs_path"
e31474a1
GKH
35Specify the sysfs path of the device to query.
36.TP
758f236f 37.BI \-n " name"
fc238cff
KS
38Specify the name of the node, the symlink or the network interface for the
39device to query. Partition names generated with the NAME{all_partitons} option
40can not be queried, the main device must be used instead.
e31474a1 41.TP
758f236f 42.B \-a
01fc6768 43Print all
16378373 44.BI SYSFS{ filename }
b86f56ff 45attributes along the device chain. Useful for finding
01fc6768 46unique attributes to compose a rule.
758f236f 47.RB Needs " \-p " specified.
01fc6768 48.TP
758f236f 49.B \-d
e31474a1
GKH
50Dump the whole database.
51.TP
758f236f 52.B \-h
e31474a1
GKH
53Print help text.
54.SH "FILES"
55.nf
56/etc/udev/* udev config files
57.fi
58.LP
59.SH "SEE ALSO"
60.BR udev (8)
61.SH AUTHORS
62.B udevinfo
63was developed primarily by Kay Sievers <kay.sievers@vrfy.org>, with help
64from others.