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