-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcinfo.1
216 lines (216 loc) · 3.2 KB
/
cinfo.1
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
.TH "CINFO" "1" "" "Version\-VERSION" "cinfo Manual"
.SH NAME
cinfo \- system information utility
.SH SYNOPSIS
\f[B]cinfo\f[R] [\f[B]\-a\f[R]] [\f[B]\-c\f[R]] [\f[B]\-d\f[R]]
[\f[B]\-i\f[R]]
.SH DESCRIPTION
\f[B]cinfo\f[R] is a fast and minimal system information tool for
linux\-based operating systems
.SH OPTIONS
Without given settings, start colored version.
If the environment variable \f[B]NO_COLOR\f[R] is set, start plain ascii
version.
.TP
\f[B]\-a\f[R]
Start plain ascii version.
.TP
\f[B]\-c\f[R]
Start colored version.
.TP
\f[B]\-d\f[R]
Delete the cached files defined in the config.
.TP
\f[B]\-i\f[R]
Displays information about execution times of the individual functions
for optimization and the version number of the tool
.SH CUSTOMIZATION
\f[B]cinfo\f[R] can be customized by creating/editing a custom config.h
and (re\-)compiling the source code.
.TP
\f[B]\f[BI]PKGS*\f[B]\f[R]
Values to configure package manager counting.
.PP
Example values for some distros:
.PP
.TS
tab(@);
lw(8.6n) lw(49.1n) lw(12.3n).
T{
Distro
T}@T{
\f[B]PKGS_CMD\f[R]
T}@T{
\f[B]PKGS_DESC\f[R]
T}
_
T{
Arch
T}@T{
ls \-p /var/lib/pacman/local | grep \-c /
T}@T{
[pacman]
T}
T{
Red Hat
T}@T{
rpm \-qa | wc \-l
T}@T{
[rpm]
T}
T{
Red Hat
T}@T{
dnf list installed | wc \-l
T}@T{
[dnf]
T}
T{
Red Hat
T}@T{
yum list installed | wc \-l
T}@T{
[yum]
T}
T{
Debian
T}@T{
dpkg \-l | grep \-c `\[ha]ii'
T}@T{
[apt]
T}
T{
Gentoo
T}@T{
qlist \-I | wc \-l
T}@T{
[portage]
T}
.TE
.PP
The result of the shell command in \f[B]PKGS_CMD\f[R] must be an
integer!
.TP
\f[B]\f[BI]CPU*\f[B]\f[R]
Values to configure cpu information.
.TP
\f[B]\f[BI]MEMORY*\f[B]\f[R]
Values to configure memory information.
.PP
\f[B]MEMORY_METHOD\f[R]
.PP
.TS
tab(@);
cw(4.8n) lw(37.4n) lw(27.8n).
T{
Value
T}@T{
Calculation
T}@T{
Comparable
T}
_
T{
0
T}@T{
total \- available
T}@T{
btop, polybar, free, neofetch
T}
T{
1
T}@T{
total + shared \- free \- buffer \- cached
T}@T{
htop
T}
.TE
.PP
Since Linux 3.14, \f[I]MemAvailable\f[R] (method 0) is the preferred
choice.
.PP
\f[B]MEMORY_UNIT\f[R]
.PP
.TS
tab(@);
l l l.
T{
Value
T}@T{
Condition
T}@T{
Description
T}
_
T{
auto
T}@T{
total => 1024 MiB
T}@T{
Displays result in Gibibyte
T}
T{
T}@T{
total < 1024 MiB
T}@T{
Displays result in Mebibyte
T}
T{
GiB
T}@T{
T}@T{
Displays result in Gibibyte
T}
T{
MiB
T}@T{
T}@T{
Displays result in Mebibyte
T}
.TE
.TP
\f[B]\f[BI]SHELL*\f[B]\f[R]
Values to configure shell information.
.TP
\f[B]\f[BI]INFO*\f[B]\f[R]
Values to configure information in general.
.TP
\f[B]\f[BI]LABEL*\f[B]\f[R]
Values to configure labels for ascii and color table.
.TP
\f[B]\f[BI]COLOR*\f[B]\f[R]
Values to configure color table.
.TP
\f[B]\f[BI]ASCII*\f[B]\f[R]
Values to configure ascii table.
.TP
\f[B]\f[BI]CACHE*\f[B]\f[R]
Values to configure the cache paths.
.SH EXAMPLES
.PP
\f[B]cinfo\f[R]
.PD 0
.P
.PD
\f[B]cinfo\f[R] \-a
.PD 0
.P
.PD
\f[B]cinfo\f[R] \-c
.PD 0
.P
.PD
\f[B]cinfo\f[R] \-d
.PD 0
.P
.PD
\f[B]cinfo\f[R] \-i
.SH BUGS
See GitHub Issues: \f[I]https://github.com/mrdotx/cinfo/issues\f[R]
.SH AUTHORS
\f[B]cinfo\f[R] was written by mrdotx <\f[I]klassiker\[at]gmx.de\f[R]>
.SH SEE ALSO
\f[B]htop\f[R](1), \f[B]free\f[R](1), \f[B]neofetch\f[R](1),
\f[B]polybar\f[R](1)
.SH LICENSE
See the \f[I]LICENSE.md\f[R] file for the terms of redistribution.