aboutsummaryrefslogtreecommitdiff
path: root/misc-utils/lsmtd.8
blob: 198c8a702b521fd31a636a556dbd8f125e8bb4cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
.TH LSMTD 8 "April 2017" "mtd-utils"
.SH NAME
lsmtd \- list memory technology devices
.SH SYNOPSIS
.B lsmtd
[options]
.RI [ device ...]
.SH DESCRIPTION
.B lsmtd
lists information about all available or the specified MTD and UBI devices.
The
.B lsmtd
command reads the
.B sysfs
filesystem to gather information. Alternatively, the
.B procfs
filesystem and ioctl interfaces are used, should the sysfs filesystem not
be available.
.PP
The command prints all MTD and UBI devices in a pretty-printed list format by
default.
.PP
The default output is subject to change. So whenever possible, you should
avoid using default outputs in your scripts. Always explicitly define expected
columns by using
.B \-\-output
.I columns-list
in environments where a stable output is required.
.PP
Use
.B "lsmtd --help"
to get a list of all available columns.
.SH OPTIONS
.TP
.BR \-b , " \-\-bytes"
Print columns with size quantities (e.g. erase block size) in bytes instead
of a human-readable format.
.TP
.BR \-h , " \-\-help"
Display a help text and exit.
.TP
.BR \-i , " \-\-ascii"
Only use ascii characters for pretty printing.
.TP
.BR \-J , " \-\-json"
Use JSON output format. All potentially unsafe characters in string values are
escaped with JSON escape sequences or hex-escaped (\\u<code>).
.TP
.BR \-l , " \-\-list"
Use a pretty-printed list output format (default).
.TP
.BR \-m , " \-\-no-ubi"
Do not display information about UBI devices or volumes.
.TP
.BR \-n , " \-\-noheadings"
Do not print column headings when using raw or list output format.
.TP
.BR \-o , " \-\-output " \fIlist\fP
Specify which output columns to print.  Use
.B \-\-help
to get a list of all supported columns.

The default list of columns may be extended if \fIlist\fP is
specified in the format \fI+list\fP (e.g. \fBlsmtd -o +EB-SIZE\fP).
.TP
.BR \-O , " \-\-output\-all "
Output all available columns.
.TP
.BR \-P , " \-\-pairs"
Produce output in the form of key="value" pairs.
All potentially unsafe characters are hex-escaped (\\x<code>).
.TP
.BR \-r , " \-\-raw"
Produce output in raw format. All potentially unsafe characters are
hex-escaped (\\x<code>).
.TP
.BR \-u , " \-\-si\-units"
Display human readable sizes as powers of ten rather than powers of two.
.TP
.BR \-V , " \-\-version"
Print version information and exit.
.TP
.BR \-x , " \-\-sort " \fIcolumn\fP
Sort output lines by \fIcolumn\fP.
.SH NOTES
If the
.B \-\-bytes
option is not specified, the JSON output format prints sizes as string values
even if they do not have a suffix.
.SH AUTHORS
.nf
David Oberhollenzer <david.oberhollenzer@sigma-star.at>
.fi
.SH REPORTING BUGS
Report mtd-utils bugs to the Linux mtd mailing list.
.TP
Linux mtd mailing list: <linux-mtd@lists.infradead.org>
.TP
Linux mtd home page: <http://www.linux-mtd.infradead.org/>
.SH AVAILABILITY
The lsmtd command is part of the mtd-utils package and is available from
ftp://ftp.infradead.org/pub/mtd-utils/.
.SH COPYRIGHT
Copyright \(co 2017 David Oberhollenzer - sigma star gmbh
.br
License GPLv2: GNU GPL version 2 <http://gnu.org/licenses/gpl2.html>.
.br
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
.SH SEE ALSO
.BR lsblk (8),
.BR ls (1)