1 | <sect2>
|
---|
2 | <title>Contents</title>
|
---|
3 |
|
---|
4 | <para>
|
---|
5 | The Shellutils package contains the basename, chroot, date, dirname,
|
---|
6 | echo, env, expr, factor, false, groups, hostid, hostname, id, logname,
|
---|
7 | nice, nohup, pathchk, pinky, printenv, printf, pwd, seq, sleep, stty,
|
---|
8 | su, tee, test, true, tty, uname, uptime, users, who, whoami and yes
|
---|
9 | programs.
|
---|
10 | </para>
|
---|
11 |
|
---|
12 | </sect2>
|
---|
13 |
|
---|
14 | <sect2><title>Description</title>
|
---|
15 |
|
---|
16 | <sect3><title>basename</title>
|
---|
17 |
|
---|
18 | <para>
|
---|
19 | basename strips directory and suffixes from filenames.
|
---|
20 | </para>
|
---|
21 |
|
---|
22 | </sect3>
|
---|
23 |
|
---|
24 | <sect3><title>chroot</title>
|
---|
25 |
|
---|
26 | <para>
|
---|
27 | chroot runs a command or interactive shell with special root directory.
|
---|
28 | </para>
|
---|
29 |
|
---|
30 | </sect3>
|
---|
31 |
|
---|
32 | <sect3><title>date</title>
|
---|
33 |
|
---|
34 | <para>
|
---|
35 | date displays the current time in a specified format, or sets the system
|
---|
36 | date.
|
---|
37 | </para>
|
---|
38 |
|
---|
39 | </sect3>
|
---|
40 |
|
---|
41 | <sect3><title>dirname</title>
|
---|
42 |
|
---|
43 | <para>
|
---|
44 | dirname strips non-directory suffixes from file name.
|
---|
45 | </para>
|
---|
46 |
|
---|
47 | </sect3>
|
---|
48 |
|
---|
49 | <sect3><title>echo</title>
|
---|
50 |
|
---|
51 | <para>
|
---|
52 | echo displays a line of text.
|
---|
53 | </para>
|
---|
54 |
|
---|
55 | </sect3>
|
---|
56 |
|
---|
57 | <sect3><title>env</title>
|
---|
58 |
|
---|
59 | <para>
|
---|
60 | env runs a program in a modified environment.
|
---|
61 | </para>
|
---|
62 |
|
---|
63 | </sect3>
|
---|
64 |
|
---|
65 | <sect3><title>expr</title>
|
---|
66 |
|
---|
67 | <para>
|
---|
68 | expr evaluates expressions.
|
---|
69 | </para>
|
---|
70 |
|
---|
71 | </sect3>
|
---|
72 |
|
---|
73 | <sect3><title>factor</title>
|
---|
74 |
|
---|
75 | <para>
|
---|
76 | factor prints the prime factors of all specified integer numbers.
|
---|
77 | </para>
|
---|
78 |
|
---|
79 | </sect3>
|
---|
80 |
|
---|
81 | <sect3><title>false</title>
|
---|
82 |
|
---|
83 | <para>
|
---|
84 | false always exits with a status code indicating failure.
|
---|
85 | </para>
|
---|
86 |
|
---|
87 | </sect3>
|
---|
88 |
|
---|
89 | <sect3><title>groups</title>
|
---|
90 |
|
---|
91 | <para>
|
---|
92 | groups prints the groups a user is in.
|
---|
93 | </para>
|
---|
94 |
|
---|
95 | </sect3>
|
---|
96 |
|
---|
97 | <sect3><title>hostid</title>
|
---|
98 |
|
---|
99 | <para>
|
---|
100 | hostid prints the numeric identifier (in hexadecimal) for the current
|
---|
101 | host.
|
---|
102 | </para>
|
---|
103 |
|
---|
104 | </sect3>
|
---|
105 |
|
---|
106 | <sect3><title>hostname</title>
|
---|
107 |
|
---|
108 | <para>
|
---|
109 | hostname sets or prints the name of the current host system
|
---|
110 | </para>
|
---|
111 |
|
---|
112 | </sect3>
|
---|
113 |
|
---|
114 | <sect3><title>id</title>
|
---|
115 |
|
---|
116 | <para>
|
---|
117 | id prints the real and effective UIDs and GIDs of a user or the current
|
---|
118 | user.
|
---|
119 | </para>
|
---|
120 |
|
---|
121 | </sect3>
|
---|
122 |
|
---|
123 | <sect3><title>logname</title>
|
---|
124 |
|
---|
125 | <para>
|
---|
126 | logname prints the current user's login name.
|
---|
127 | </para>
|
---|
128 |
|
---|
129 | </sect3>
|
---|
130 |
|
---|
131 | <sect3><title>nice</title>
|
---|
132 |
|
---|
133 | <para>
|
---|
134 | nice runs a program with modified scheduling priority.
|
---|
135 | </para>
|
---|
136 |
|
---|
137 | </sect3>
|
---|
138 |
|
---|
139 | <sect3><title>nohup</title>
|
---|
140 |
|
---|
141 | <para>
|
---|
142 | nohup runs a command immune to hangups, with output to a non-tty
|
---|
143 | </para>
|
---|
144 |
|
---|
145 | </sect3>
|
---|
146 |
|
---|
147 | <sect3><title>pathchk</title>
|
---|
148 |
|
---|
149 | <para>
|
---|
150 | pathchk checks whether file names are valid or portable.
|
---|
151 | </para>
|
---|
152 |
|
---|
153 | </sect3>
|
---|
154 |
|
---|
155 | <sect3><title>pinky</title>
|
---|
156 |
|
---|
157 | <para>
|
---|
158 | pinky is a lightweight finger utility which retrieves information about
|
---|
159 | a certain user
|
---|
160 | </para>
|
---|
161 |
|
---|
162 | </sect3>
|
---|
163 |
|
---|
164 | <sect3><title>printenv</title>
|
---|
165 |
|
---|
166 | <para>
|
---|
167 | printenv prints all or part of the environment.
|
---|
168 | </para>
|
---|
169 |
|
---|
170 | </sect3>
|
---|
171 |
|
---|
172 | <sect3><title>printf</title>
|
---|
173 |
|
---|
174 | <para>
|
---|
175 | printf formats and print data (the same as the printf C function).
|
---|
176 | </para>
|
---|
177 |
|
---|
178 | </sect3>
|
---|
179 |
|
---|
180 | <sect3><title>pwd</title>
|
---|
181 |
|
---|
182 | <para>
|
---|
183 | pwd prints the name of the current/working directory
|
---|
184 | </para>
|
---|
185 |
|
---|
186 | </sect3>
|
---|
187 |
|
---|
188 | <sect3><title>seq</title>
|
---|
189 |
|
---|
190 | <para>
|
---|
191 | seq prints numbers in a certain range with a certain increment.
|
---|
192 | </para>
|
---|
193 |
|
---|
194 | </sect3>
|
---|
195 |
|
---|
196 | <sect3><title>sleep</title>
|
---|
197 |
|
---|
198 | <para>
|
---|
199 | sleep delays for a specified amount of time.
|
---|
200 | </para>
|
---|
201 |
|
---|
202 | </sect3>
|
---|
203 |
|
---|
204 | <sect3><title>stty</title>
|
---|
205 |
|
---|
206 | <para>
|
---|
207 | stty changes and prints terminal line settings.
|
---|
208 | </para>
|
---|
209 |
|
---|
210 | </sect3>
|
---|
211 |
|
---|
212 | <sect3><title>su</title>
|
---|
213 |
|
---|
214 | <para>
|
---|
215 | su runs a shell with substitute user and group IDs
|
---|
216 | </para>
|
---|
217 |
|
---|
218 | </sect3>
|
---|
219 |
|
---|
220 | <sect3><title>tee</title>
|
---|
221 |
|
---|
222 | <para>
|
---|
223 | tee reads from standard input and write to standard output and files.
|
---|
224 | </para>
|
---|
225 |
|
---|
226 | </sect3>
|
---|
227 |
|
---|
228 | <sect3><title>test</title>
|
---|
229 |
|
---|
230 | <para>
|
---|
231 | test checks file types and compares values.
|
---|
232 | </para>
|
---|
233 |
|
---|
234 | </sect3>
|
---|
235 |
|
---|
236 | <sect3><title>true</title>
|
---|
237 |
|
---|
238 | <para>
|
---|
239 | True always exits with a status code indicating success.
|
---|
240 | </para>
|
---|
241 |
|
---|
242 | </sect3>
|
---|
243 |
|
---|
244 | <sect3><title>tty</title>
|
---|
245 |
|
---|
246 | <para>
|
---|
247 | tty prints the file name of the terminal connected to standard input.
|
---|
248 | </para>
|
---|
249 |
|
---|
250 | </sect3>
|
---|
251 |
|
---|
252 | <sect3><title>uname</title>
|
---|
253 |
|
---|
254 | <para>
|
---|
255 | uname prints system information.
|
---|
256 | </para>
|
---|
257 |
|
---|
258 | </sect3>
|
---|
259 |
|
---|
260 | <sect3><title>uptime</title>
|
---|
261 |
|
---|
262 | <para>
|
---|
263 | uptime tells how long the system has been running.
|
---|
264 | </para>
|
---|
265 |
|
---|
266 | </sect3>
|
---|
267 |
|
---|
268 | <sect3><title>users</title>
|
---|
269 |
|
---|
270 | <para>
|
---|
271 | users prints the user names of users currently logged in to the
|
---|
272 | current host.
|
---|
273 | </para>
|
---|
274 |
|
---|
275 | </sect3>
|
---|
276 |
|
---|
277 | <sect3><title>who</title>
|
---|
278 |
|
---|
279 | <para>
|
---|
280 | who shows who is logged on.
|
---|
281 | </para>
|
---|
282 |
|
---|
283 | </sect3>
|
---|
284 |
|
---|
285 | <sect3><title>whoami</title>
|
---|
286 |
|
---|
287 | <para>
|
---|
288 | whoami prints the users effective userid.
|
---|
289 | </para>
|
---|
290 |
|
---|
291 | </sect3>
|
---|
292 |
|
---|
293 | <sect3><title>yes</title>
|
---|
294 |
|
---|
295 | <para>
|
---|
296 | yes outputs a string repeatedly until killed.
|
---|
297 | </para>
|
---|
298 |
|
---|
299 | </sect3>
|
---|
300 |
|
---|
301 | </sect2>
|
---|
302 |
|
---|