aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-07-04 20:07:13 +0000
committerEric Andersen <andersen@codepoet.org>2000-07-04 20:07:13 +0000
commit028fb625f53208a4d835f4a5ae034c3edc1ad051 (patch)
tree770e4c60d1c5fc2d465e6bbfd236049b37c95b24
parent5331025f796d1defe90c8dda1fe1481de95850e5 (diff)
downloadbusybox-w32-028fb625f53208a4d835f4a5ae034c3edc1ad051.tar.gz
busybox-w32-028fb625f53208a4d835f4a5ae034c3edc1ad051.tar.bz2
busybox-w32-028fb625f53208a4d835f4a5ae034c3edc1ad051.zip
More doc updates
-Erik
-rw-r--r--docs/busybox.pod274
-rw-r--r--docs/busybox.sgml1265
2 files changed, 688 insertions, 851 deletions
diff --git a/docs/busybox.pod b/docs/busybox.pod
index 5c2c59054..d1d6f7efd 100644
--- a/docs/busybox.pod
+++ b/docs/busybox.pod
@@ -237,12 +237,6 @@ Example:
237 237
238------------------------------- 238-------------------------------
239 239
240=item clear
241
242Clears the screen.
243
244-------------------------------
245
246=item chvt 240=item chvt
247 241
248Usage: chvt N 242Usage: chvt N
@@ -251,6 +245,12 @@ Changes the foreground virtual terminal to /dev/ttyN
251 245
252------------------------------- 246-------------------------------
253 247
248=item clear
249
250Clears the screen.
251
252-------------------------------
253
254=item cp 254=item cp
255 255
256Usage: cp [OPTION]... SOURCE DEST 256Usage: cp [OPTION]... SOURCE DEST
@@ -363,6 +363,14 @@ Example:
363 363
364------------------------------- 364-------------------------------
365 365
366=item deallocvt
367
368Usage: deallocvt N
369
370Deallocates unused virtual terminal /dev/ttyN
371
372-------------------------------
373
366=item df 374=item df
367 375
368Usage: df [filesystem ...] 376Usage: df [filesystem ...]
@@ -580,14 +588,6 @@ Example:
580 588
581------------------------------- 589-------------------------------
582 590
583=item deallocvt
584
585Usage: deallocvt N
586
587Deallocates unused virtual terminal /dev/ttyN
588
589-------------------------------
590
591=item fsck.minix 591=item fsck.minix
592 592
593Usage: fsck.minix [B<-larvsmf>] /dev/name 593Usage: fsck.minix [B<-larvsmf>] /dev/name
@@ -1187,25 +1187,6 @@ Example:
1187 1187
1188------------------------------- 1188-------------------------------
1189 1189
1190=item nc
1191
1192Usage: nc [IP] [port]
1193
1194Netcat opens a pipe to IP:port
1195
1196Example:
1197
1198 $ nc foobar.somedomain.com 25
1199 220 foobar ESMTP Exim 3.12 #1 Sat, 15 Apr 2000 00:03:02 -0600
1200 help
1201 214-Commands supported:
1202 214- HELO EHLO MAIL RCPT DATA AUTH
1203 214 NOOP QUIT RSET HELP
1204 quit
1205 221 foobar closing connection
1206
1207-------------------------------
1208
1209=item more 1190=item more
1210 1191
1211Usage: more [file ...] 1192Usage: more [file ...]
@@ -1277,6 +1258,25 @@ Example:
1277 1258
1278------------------------------- 1259-------------------------------
1279 1260
1261=item nc
1262
1263Usage: nc [IP] [port]
1264
1265Netcat opens a pipe to IP:port
1266
1267Example:
1268
1269 $ nc foobar.somedomain.com 25
1270 220 foobar ESMTP Exim 3.12 #1 Sat, 15 Apr 2000 00:03:02 -0600
1271 help
1272 214-Commands supported:
1273 214- HELO EHLO MAIL RCPT DATA AUTH
1274 214 NOOP QUIT RSET HELP
1275 quit
1276 221 foobar closing connection
1277
1278-------------------------------
1279
1280=item nslookup 1280=item nslookup
1281 1281
1282Usage: nslookup [HOST] 1282Usage: nslookup [HOST]
@@ -1476,23 +1476,6 @@ Example:
1476 1476
1477------------------------------- 1477-------------------------------
1478 1478
1479=item sh
1480
1481Usage: sh
1482
1483lash -- the BusyBox LAme SHell (command interpreter)
1484
1485This command does not yet have proper documentation.
1486
1487Use lash just as you would use any other shell. It properly handles pipes,
1488redirects, job control, can be used as the shell for scripts (#!/bin/sh), and
1489has a sufficient set of builtins to do what is needed. It does not (yet)
1490support Bourne Shell syntax. If you need things like "if-then-else", "while",
1491and such, use ash or bash. If you just need a very simple and extremely small
1492shell, this will do the job.
1493
1494-------------------------------
1495
1496=item sfdisk 1479=item sfdisk
1497 1480
1498Usage: sfdisk [options] device ... 1481Usage: sfdisk [options] device ...
@@ -1536,6 +1519,23 @@ You can disable all consistency checking with:
1536 1519
1537------------------------------- 1520-------------------------------
1538 1521
1522=item sh
1523
1524Usage: sh
1525
1526lash -- the BusyBox LAme SHell (command interpreter)
1527
1528This command does not yet have proper documentation.
1529
1530Use lash just as you would use any other shell. It properly handles pipes,
1531redirects, job control, can be used as the shell for scripts (#!/bin/sh), and
1532has a sufficient set of builtins to do what is needed. It does not (yet)
1533support Bourne Shell syntax. If you need things like "if-then-else", "while",
1534and such, use ash or bash. If you just need a very simple and extremely small
1535shell, this will do the job.
1536
1537-------------------------------
1538
1539=item sleep 1539=item sleep
1540 1540
1541Usage: sleep N 1541Usage: sleep N
@@ -1567,27 +1567,15 @@ Example:
1567 1567
1568------------------------------- 1568-------------------------------
1569 1569
1570=item sync 1570=item swapoff
1571
1572Usage: sync
1573
1574Write all buffered filesystem blocks to disk.
1575
1576-------------------------------
1577
1578=item syslogd
1579 1571
1580Usage: syslogd [OPTION]... 1572Usage: swapoff [OPTION] [device]
1581 1573
1582Linux system and kernel (provides klogd) logging utility. 1574Stop swapping virtual memory pages on the given device.
1583Note that this version of syslogd/klogd ignores /etc/syslog.conf.
1584 1575
1585Options: 1576Options:
1586 1577
1587 -m NUM Interval between MARK lines (default=20min, 0=off) 1578 -a Stop swapping on all swap devices
1588 -n Run as a foreground process
1589 -K Do not start up the klogd process
1590 -O FILE Use an alternate log file (default=/var/log/messages)
1591 1579
1592------------------------------- 1580-------------------------------
1593 1581
@@ -1603,15 +1591,27 @@ Options:
1603 1591
1604------------------------------- 1592-------------------------------
1605 1593
1606=item swapoff 1594=item sync
1607 1595
1608Usage: swapoff [OPTION] [device] 1596Usage: sync
1609 1597
1610Stop swapping virtual memory pages on the given device. 1598Write all buffered filesystem blocks to disk.
1599
1600-------------------------------
1601
1602=item syslogd
1603
1604Usage: syslogd [OPTION]...
1605
1606Linux system and kernel (provides klogd) logging utility.
1607Note that this version of syslogd/klogd ignores /etc/syslog.conf.
1611 1608
1612Options: 1609Options:
1613 1610
1614 -a Stop swapping on all swap devices 1611 -m NUM Interval between MARK lines (default=20min, 0=off)
1612 -n Run as a foreground process
1613 -K Do not start up the klogd process
1614 -O FILE Use an alternate log file (default=/var/log/messages)
1615 1615
1616------------------------------- 1616-------------------------------
1617 1617
@@ -1666,28 +1666,21 @@ Example:
1666 1666
1667------------------------------- 1667-------------------------------
1668 1668
1669=item test, [ 1669=item tee
1670 1670
1671Usage: test EXPRESSION 1671Usage: tee [OPTION]... [FILE]...
1672or [ EXPRESSION ]
1673 1672
1674Checks file types and compares values returning an exit 1673Copy standard input to each FILE, and also to standard output.
1675code determined by the value of EXPRESSION. 1674
1675Options:
1676
1677 -a append to the given FILEs, do not overwrite
1676 1678
1677Example: 1679Example:
1678 1680
1679 $ test 1 -eq 2 1681 $ echo "Hello" | tee /tmp/foo
1680 $ echo $? 1682 $ cat /tmp/foo
1681 1 1683 Hello
1682 $ test 1 -eq 1
1683 $ echo $?
1684 0
1685 $ [ -d /etc ]
1686 $ echo $?
1687 0
1688 $ [ -d /junk ]
1689 $ echo $?
1690 1
1691 1684
1692------------------------------- 1685-------------------------------
1693 1686
@@ -1700,21 +1693,28 @@ computer over a network using the TELNET protocol.
1700 1693
1701------------------------------- 1694-------------------------------
1702 1695
1703=item tee 1696=item test, [
1704
1705Usage: tee [OPTION]... [FILE]...
1706
1707Copy standard input to each FILE, and also to standard output.
1708 1697
1709Options: 1698Usage: test EXPRESSION
1699or [ EXPRESSION ]
1710 1700
1711 -a append to the given FILEs, do not overwrite 1701Checks file types and compares values returning an exit
1702code determined by the value of EXPRESSION.
1712 1703
1713Example: 1704Example:
1714 1705
1715 $ echo "Hello" | tee /tmp/foo 1706 $ test 1 -eq 2
1716 $ cat /tmp/foo 1707 $ echo $?
1717 Hello 1708 1
1709 $ test 1 -eq 1
1710 $ echo $?
1711 0
1712 $ [ -d /etc ]
1713 $ echo $?
1714 0
1715 $ [ -d /junk ]
1716 $ echo $?
1717 1
1718 1718
1719------------------------------- 1719-------------------------------
1720 1720
@@ -1783,45 +1783,6 @@ Example:
1783 1783
1784------------------------------- 1784-------------------------------
1785 1785
1786=item uuencode
1787
1788Usage: uuencode [OPTION] [INFILE] REMOTEFILE
1789
1790Uuencode a file.
1791
1792Options:
1793
1794 -m use base64 encoding as of RFC1521
1795
1796Example:
1797
1798 $ uuencode busybox busybox
1799 begin 755 busybox
1800 M?T5,1@$!`0````````````(``P`!````L+@$"#0```!0N@,``````#0`(``&
1801 .....
1802 $ uudecode busybox busybox > busybox.uu
1803 $
1804
1805-------------------------------
1806
1807=item uudecode
1808
1809Usage: uudecode [OPTION] [FILE]
1810
1811Uudecode a uuencoded file
1812
1813Options:
1814
1815 -o FILE direct output to FILE
1816
1817Example:
1818
1819 $ uudecode -o busybox busybox.uu
1820 $ ls -l busybox
1821 -rwxr-xr-x 1 ams ams 245264 Jun 7 21:35 busybox
1822
1823-------------------------------
1824
1825=item umount 1786=item umount
1826 1787
1827Usage: umount [flags] filesystem|directory 1788Usage: umount [flags] filesystem|directory
@@ -1918,6 +1879,45 @@ Example:
1918 1879
1919------------------------------- 1880-------------------------------
1920 1881
1882=item uuencode
1883
1884Usage: uuencode [OPTION] [INFILE] REMOTEFILE
1885
1886Uuencode a file.
1887
1888Options:
1889
1890 -m use base64 encoding as of RFC1521
1891
1892Example:
1893
1894 $ uuencode busybox busybox
1895 begin 755 busybox
1896 M?T5,1@$!`0````````````(``P`!````L+@$"#0```!0N@,``````#0`(``&
1897 .....
1898 $ uudecode busybox busybox > busybox.uu
1899 $
1900
1901-------------------------------
1902
1903=item uudecode
1904
1905Usage: uudecode [OPTION] [FILE]
1906
1907Uudecode a uuencoded file
1908
1909Options:
1910
1911 -o FILE direct output to FILE
1912
1913Example:
1914
1915 $ uudecode -o busybox busybox.uu
1916 $ ls -l busybox
1917 -rwxr-xr-x 1 ams ams 245264 Jun 7 21:35 busybox
1918
1919-------------------------------
1920
1921=item wc 1921=item wc
1922 1922
1923Usage: wc [OPTION]... [FILE]... 1923Usage: wc [OPTION]... [FILE]...
@@ -2063,4 +2063,4 @@ Enrique Zanardi <ezanardi@ull.es>
2063 2063
2064=cut 2064=cut
2065 2065
2066# $Id: busybox.pod,v 1.52 2000/06/26 12:14:30 andersen Exp $ 2066# $Id: busybox.pod,v 1.53 2000/07/04 20:07:13 andersen Exp $
diff --git a/docs/busybox.sgml b/docs/busybox.sgml
index ac3e7e749..49b82c37d 100644
--- a/docs/busybox.sgml
+++ b/docs/busybox.sgml
@@ -231,531 +231,368 @@
231 </sect1> 231 </sect1>
232 232
233 233
234<para>
235-------------------------------
236
237
238</para>
239
240</listitem></varlistentry>
241<varlistentry><term><emphasis>chgrp
242
243</emphasis></term>
244<listitem><para></para>
245
246<para>
247Usage: chgrp [OPTION]... GROUP FILE...
248
249
250</para>
251
252<para>
253Change the group membership of each FILE to GROUP.
254
255
256</para>
257
258<para>
259Options:
260
261
262</para>
263
264<para>
265<screen>
266 -R change files and directories recursively
267</screen>
268
269
270</para>
271
272<para>
273Example:
274
275
276</para>
277
278<para>
279<screen>
280 $ ls -l /tmp/foo
281 -r--r--r-- 1 andersen andersen 0 Apr 12 18:25 /tmp/foo
282 $ chgrp root /tmp/foo
283 $ ls -l /tmp/foo
284 -r--r--r-- 1 andersen root 0 Apr 12 18:25 /tmp/foo
285</screen>
286
287
288</para>
289
290<para>
291-------------------------------
292
293
294</para>
295
296</listitem></varlistentry>
297<varlistentry><term><emphasis>chmod
298
299</emphasis></term>
300<listitem><para></para>
301
302<para>
303Usage: chmod [<emphasis>-R</emphasis>] MODE[,MODE]... FILE...
304
305
306</para>
307
308<para>
309Changes file access permissions for the specified
310<literal>FILE(s)</literal> (or directories). Each MODE is defined by
311combining the letters for WHO has access to the file, an OPERATOR for
312selecting how the permissions should be changed, and a PERMISSION for
313<literal>FILE(s)</literal> (or directories).
314
315
316</para>
317
318<para>
319WHO may be chosen from
320
321
322</para>
323
324<para>
325<screen>
326 u User who owns the file
327 g Users in the file's Group
328 o Other users not in the file's group
329 a All users
330</screen>
331
332
333</para>
334
335<para>
336OPERATOR may be chosen from
337
338
339</para>
340
341<para>
342<screen>
343 + Add a permission
344 - Remove a permission
345 = Assign a permission
346</screen>
347
348
349</para>
350
351<para>
352PERMISSION may be chosen from
353
354
355</para>
356
357<para>
358<screen>
359 r Read
360 w Write
361 x Execute (or access for directories)
362 s Set user (or group) ID bit
363 t Sticky bit (for directories prevents removing files by non-owners)
364</screen>
365
366
367</para>
368
369<para>
370Alternately, permissions can be set numerically where the first three
371numbers are calculated by adding the octal values, such as
372
373
374</para>
375
376<para>
377<screen>
378 4 Read
379 2 Write
380 1 Execute
381</screen>
382
383
384</para>
385
386<para>
387An optional fourth digit can also be used to specify
388
389
390</para>
391
392<para>
393<screen>
394 4 Set user ID
395 2 Set group ID
396 1 Sticky bit
397</screen>
398
399
400</para>
401
402<para>
403Options:
404
405
406</para>
407
408<para>
409<screen>
410 -R Change files and directories recursively.
411</screen>
412
413
414</para>
415
416<para>
417Example:
418
419
420</para>
421
422<para>
423<screen>
424 $ ls -l /tmp/foo
425 -rw-rw-r-- 1 root root 0 Apr 12 18:25 /tmp/foo
426 $ chmod u+x /tmp/foo
427 $ ls -l /tmp/foo
428 -rwxrw-r-- 1 root root 0 Apr 12 18:25 /tmp/foo*
429 $ chmod 444 /tmp/foo
430 $ ls -l /tmp/foo
431 -r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo
432</screen>
433
434
435</para>
436
437<para>
438-------------------------------
439
440
441</para>
442 234
443</listitem></varlistentry> 235 <sect1 id="chgrp">
444<varlistentry><term><emphasis>chown 236 <title>chgrp</title>
445
446</emphasis></term>
447<listitem><para></para>
448
449<para>
450Usage: chown [OPTION]... OWNER[&lt;.|:&gt;[GROUP] FILE...
451
452
453</para>
454
455<para>
456Changes the owner and/or group of each FILE to OWNER and/or GROUP.
457
458
459</para>
460
461<para>
462Options:
463
464
465</para>
466
467<para>
468<screen>
469 -R Changes files and directories recursively
470</screen>
471
472
473</para>
474
475<para>
476Example:
477
478
479</para>
480
481<para>
482<screen>
483 $ ls -l /tmp/foo
484 -r--r--r-- 1 andersen andersen 0 Apr 12 18:25 /tmp/foo
485 $ chown root /tmp/foo
486 $ ls -l /tmp/foo
487 -r--r--r-- 1 root andersen 0 Apr 12 18:25 /tmp/foo
488 $ chown root.root /tmp/foo
489 ls -l /tmp/foo
490 -r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo
491</screen>
492
493
494</para>
495
496<para>
497-------------------------------
498
499
500</para>
501
502</listitem></varlistentry>
503<varlistentry><term><emphasis>chroot
504
505</emphasis></term>
506<listitem><para></para>
507
508<para>
509Usage: chroot NEWROOT [COMMAND...]
510
511
512</para>
513
514<para>
515Run COMMAND with root directory set to NEWROOT.
516
517
518</para>
519
520<para>
521Example:
522
523
524</para>
525
526<para>
527<screen>
528 $ ls -l /bin/ls
529 lrwxrwxrwx 1 root root 12 Apr 13 00:46 /bin/ls -&gt; /BusyBox
530 $ mount /dev/hdc1 /mnt -t minix
531 $ chroot /mnt
532 $ ls -l /bin/ls
533 -rwxr-xr-x 1 root root 40816 Feb 5 07:45 /bin/ls*
534</screen>
535
536
537</para>
538
539<para>
540-------------------------------
541
542
543</para>
544
545</listitem></varlistentry>
546<varlistentry><term><emphasis>clear
547
548</emphasis></term>
549<listitem><para></para>
550
551<para>
552Clears the screen.
553
554
555</para>
556
557<para>
558-------------------------------
559
560
561</para>
562 237
563</listitem></varlistentry> 238 <para>
564<varlistentry><term><emphasis>chvt 239 Usage: chgrp [OPTION]... GROUP FILE...
565 240 </para>
566</emphasis></term>
567<listitem><para></para>
568
569<para>
570Usage: chvt N
571
572
573</para>
574 241
575<para> 242 <para>
576Changes the foreground virtual terminal to /dev/ttyN 243 Change the group membership of each FILE to GROUP.
244 </para>
577 245
246 <para>
247 Options:
248 </para>
578 249
579</para> 250 <para>
251 <screen>
252 -R change files and directories recursively
253 </screen>
254 </para>
580 255
581<para> 256 <para>
582------------------------------- 257 Example:
258 </para>
583 259
260 <para>
261 <screen>
262 $ ls -l /tmp/foo
263 -r--r--r-- 1 andersen andersen 0 Apr 12 18:25 /tmp/foo
264 $ chgrp root /tmp/foo
265 $ ls -l /tmp/foo
266 -r--r--r-- 1 andersen root 0 Apr 12 18:25 /tmp/foo
267 </screen>
268 </para>
269 </sect1>
584 270
585</para>
586 271
587</listitem></varlistentry>
588<varlistentry><term><emphasis>cp
589 272
590</emphasis></term> 273 <sect1 id="chmod">
591<listitem><para></para> 274 <title>chmod</title>
592 275
593<para> 276 <para>
594Usage: cp [OPTION]... SOURCE DEST 277 Usage: chmod [<emphasis>-R</emphasis>] MODE[,MODE]... FILE...
278 </para>
595 279
280 <para>
281 Changes file access permissions for the specified
282 <literal>FILE(s)</literal> (or directories). Each MODE is defined by
283 combining the letters for WHO has access to the file, an OPERATOR for
284 selecting how the permissions should be changed, and a PERMISSION for
285 <literal>FILE(s)</literal> (or directories).
286 </para>
596 287
597</para> 288 <para>
289 WHO may be chosen from
290 </para>
598 291
599<para> 292 <para>
600<screen> 293 <screen>
601 or: cp [OPTION]... SOURCE... DIRECTORY 294 u User who owns the file
602</screen> 295 g Users in the file's Group
296 o Other users not in the file's group
297 a All users
298 </screen>
299 </para>
603 300
301 <para>
302 OPERATOR may be chosen from
303 </para>
604 304
605</para> 305 <para>
306 <screen>
307 + Add a permission
308 - Remove a permission
309 = Assign a permission
310 </screen>
311 </para>
606 312
607<para> 313 <para>
608Copies SOURCE to DEST, or multiple <literal>SOURCE(s)</literal> to 314 PERMISSION may be chosen from
609DIRECTORY. 315 </para>
610 316
317 <para>
318 <screen>
319 r Read
320 w Write
321 x Execute (or access for directories)
322 s Set user (or group) ID bit
323 t Sticky bit (for directories prevents removing files by non-owners)
324 </screen>
325 </para>
611 326
612</para> 327 <para>
328 Alternately, permissions can be set numerically where the first three
329 numbers are calculated by adding the octal values, such as
330 </para>
613 331
614<para> 332 <para>
615Options: 333 <screen>
334 4 Read
335 2 Write
336 1 Execute
337 </screen>
338 </para>
616 339
340 <para>
341 An optional fourth digit can also be used to specify
342 </para>
617 343
618</para> 344 <para>
345 <screen>
346 4 Set user ID
347 2 Set group ID
348 1 Sticky bit
349 </screen>
350 </para>
619 351
620<para> 352 <para>
621<screen> 353 Options:
622 -a Same as -dpR 354 </para>
623 -d Preserves links
624 -p Preserves file attributes if possible
625 -R Copies directories recursively
626</screen>
627 355
356 <para>
357 <screen>
358 -R Change files and directories recursively.
359 </screen>
360 </para>
628 361
629</para> 362 <para>
363 Example:
364 </para>
630 365
631<para> 366 <para>
632------------------------------- 367 <screen>
368 $ ls -l /tmp/foo
369 -rw-rw-r-- 1 root root 0 Apr 12 18:25 /tmp/foo
370 $ chmod u+x /tmp/foo
371 $ ls -l /tmp/foo
372 -rwxrw-r-- 1 root root 0 Apr 12 18:25 /tmp/foo*
373 $ chmod 444 /tmp/foo
374 $ ls -l /tmp/foo
375 -r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo
376 </screen>
377 </para>
378 </sect1>
633 379
634 380
635</para> 381
382 <sect1 id="chown">
383 <title>chown</title>
384 <para>
385 Usage: chown [OPTION]... OWNER[&lt;.|:&gt;[GROUP] FILE...
386 </para>
636 387
637</listitem></varlistentry> 388 <para>
638<varlistentry><term><emphasis>cut 389 Changes the owner and/or group of each FILE to OWNER and/or GROUP.
390 </para>
639 391
640</emphasis></term> 392 <para>
641<listitem><para></para> 393 Options:
394 </para>
642 395
643<para> 396 <para>
644Usage: cut [OPTION]... [FILE]... 397 <screen>
398 -R Changes files and directories recursively
399 </screen>
400 </para>
645 401
402 <para>
403 Example:
404 </para>
646 405
647</para> 406 <para>
407 <screen>
408 $ ls -l /tmp/foo
409 -r--r--r-- 1 andersen andersen 0 Apr 12 18:25 /tmp/foo
410 $ chown root /tmp/foo
411 $ ls -l /tmp/foo
412 -r--r--r-- 1 root andersen 0 Apr 12 18:25 /tmp/foo
413 $ chown root.root /tmp/foo
414 ls -l /tmp/foo
415 -r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo
416 </screen>
417 </para>
418 </sect1>
648 419
649<para>
650Prints selected fields from each input FILE to standard output.
651 420
652 421
653</para> 422 <sect1 id="chroot">
423 <title>chroot</title>
424 <para>
425 Usage: chroot NEWROOT [COMMAND...]
426 </para>
654 427
655<para> 428 <para>
656Options: 429 Run COMMAND with root directory set to NEWROOT.
430 </para>
657 431
432 <para>
433 Example:
434 </para>
658 435
659</para> 436 <para>
437 <screen>
438 $ ls -l /bin/ls
439 lrwxrwxrwx 1 root root 12 Apr 13 00:46 /bin/ls -&gt; /BusyBox
440 $ mount /dev/hdc1 /mnt -t minix
441 $ chroot /mnt
442 $ ls -l /bin/ls
443 -rwxr-xr-x 1 root root 40816 Feb 5 07:45 /bin/ls*
444 </screen>
445 </para>
446 </sect1>
660 447
661<para>
662<screen>
663 -b LIST Output only bytes from LIST
664 -c LIST Output only characters from LIST
665 -d CHAR Use CHAR instead of tab as the field delimiter
666 -s Only output Lines if the include DELIM
667 -f N Print only these fields
668 -n Ignored
669</screen>
670 448
449 <sect1 id="chvt">
450 <title>chvt</title>
451 <para>
452 Usage: chvt N
453 </para>
671 454
672</para> 455 <para>
456 Changes the foreground virtual terminal to /dev/ttyN
457 </para>
458 </sect1>
673 459
674<para>
675Example:
676 460
677 461
678</para>
679 462
680<para> 463 <sect1 id="clear">
681<screen> 464 <title>clear</title>
682 $ echo "Hello world" | cut -f 1 -d ' '
683 Hello
684 $ echo "Hello world" | cut -f 2 -d ' '
685 world
686</screen>
687 465
466 <para>
467 Usage: clear
468 </para>
688 469
689</para> 470 <para>
471 Clears the screen.
472 </para>
473 </sect1>
690 474
691<para>
692-------------------------------
693 475
476 <sect1 id="cp">
477 <title>cp</title>
694 478
695</para> 479 <para>
480 Usage: cp [OPTION]... SOURCE DEST
481 </para>
696 482
697</listitem></varlistentry> 483 <para>
698<varlistentry><term><emphasis>date 484 <screen>
485 or: cp [OPTION]... SOURCE... DIRECTORY
486 </screen>
487 </para>
699 488
700</emphasis></term> 489 <para>
701<listitem><para></para> 490 Copies SOURCE to DEST, or multiple <literal>SOURCE(s)</literal> to
491 DIRECTORY.
492 </para>
702 493
703<para> 494 <para>
704Usage: date [OPTION]... [+FORMAT] 495 Options:
496 </para>
705 497
498 <para>
499 <screen>
500 -a Same as -dpR
501 -d Preserves links
502 -p Preserves file attributes if possible
503 -R Copies directories recursively
504 </screen>
505 </para>
506 </sect1>
706 507
707</para>
708 508
709<para> 509 <sect1 id="cut">
710<screen> 510 <title>cut</title>
711 or: date [OPTION] [MMDDhhmm[[CC]YY][.ss]]
712</screen>
713 511
512 <para>
513 Usage: cut [OPTION]... [FILE]...
514 </para>
714 515
715</para> 516 <para>
517 Prints selected fields from each input FILE to standard output.
518 </para>
716 519
717<para> 520 <para>
718Displays the current time in the given FORMAT, or sets the system date. 521 Options:
522 </para>
719 523
524 <para>
525 <screen>
526 -b LIST Output only bytes from LIST
527 -c LIST Output only characters from LIST
528 -d CHAR Use CHAR instead of tab as the field delimiter
529 -s Only output Lines if the include DELIM
530 -f N Print only these fields
531 -n Ignored
532 </screen>
533 </para>
720 534
721</para> 535 <para>
536 Example:
537 </para>
722 538
723<para> 539 <para>
724Options: 540 <screen>
541 $ echo "Hello world" | cut -f 1 -d ' '
542 Hello
543 $ echo "Hello world" | cut -f 2 -d ' '
544 world
545 </screen>
546 </para>
547 </sect1>
725 548
726 549
727</para>
728 550
729<para> 551 <sect1 id="date">
730<screen> 552 <title>date</title>
731 -R Outputs RFC-822 compliant date string
732 -s Sets time described by STRING
733 -u Prints or sets Coordinated Universal Time
734</screen>
735 553
554 <para>
555 Usage: date [OPTION]... [+FORMAT]
556 </para>
736 557
737</para> 558 <para>
559 <screen>
560 or: date [OPTION] [MMDDhhmm[[CC]YY][.ss]]
561 </screen>
562 </para>
738 563
739<para> 564 <para>
740Example: 565 Displays the current time in the given FORMAT, or sets the system date.
566 </para>
741 567
568 <para>
569 Options:
570 </para>
742 571
743</para> 572 <para>
573 <screen>
574 -R Outputs RFC-822 compliant date string
575 -s Sets time described by STRING
576 -u Prints or sets Coordinated Universal Time
577 </screen>
578 </para>
744 579
745<para> 580 <para>
746<screen> 581 Example:
747 $ date 582 </para>
748 Wed Apr 12 18:52:41 MDT 2000
749</screen>
750 583
584 <para>
585 <screen>
586 $ date
587 Wed Apr 12 18:52:41 MDT 2000
588 </screen>
589 </para>
590 </sect1>
751 591
752</para>
753 592
754<para>
755-------------------------------
756 593
594<!-- This is where I have stopped formatting stuff -->
757 595
758</para>
759 596
760</listitem></varlistentry> 597</listitem></varlistentry>
761<varlistentry><term><emphasis>dc 598<varlistentry><term><emphasis>dc
@@ -869,6 +706,30 @@ Example:
869<para> 706<para>
870------------------------------- 707-------------------------------
871 708
709</para>
710
711</listitem></varlistentry>
712<varlistentry><term><emphasis>deallocvt
713
714</emphasis></term>
715<listitem><para></para>
716
717<para>
718Usage: deallocvt N
719
720
721</para>
722
723<para>
724Deallocates unused virtual terminal /dev/ttyN
725
726
727</para>
728
729<para>
730-------------------------------
731
732
872 733
873</para> 734</para>
874 735
@@ -1416,30 +1277,6 @@ Example:
1416</para> 1277</para>
1417 1278
1418</listitem></varlistentry> 1279</listitem></varlistentry>
1419<varlistentry><term><emphasis>deallocvt
1420
1421</emphasis></term>
1422<listitem><para></para>
1423
1424<para>
1425Usage: deallocvt N
1426
1427
1428</para>
1429
1430<para>
1431Deallocates unused virtual terminal /dev/ttyN
1432
1433
1434</para>
1435
1436<para>
1437-------------------------------
1438
1439
1440</para>
1441
1442</listitem></varlistentry>
1443<varlistentry><term><emphasis>fsck.minix 1280<varlistentry><term><emphasis>fsck.minix
1444 1281
1445</emphasis></term> 1282</emphasis></term>
@@ -3064,51 +2901,6 @@ Example:
3064</para> 2901</para>
3065 2902
3066</listitem></varlistentry> 2903</listitem></varlistentry>
3067<varlistentry><term><emphasis>nc
3068
3069</emphasis></term>
3070<listitem><para></para>
3071
3072<para>
3073Usage: nc [IP] [port]
3074
3075
3076</para>
3077
3078<para>
3079Netcat opens a pipe to IP:port
3080
3081
3082</para>
3083
3084<para>
3085Example:
3086
3087
3088</para>
3089
3090<para>
3091<screen>
3092 $ nc foobar.somedomain.com 25
3093 220 foobar ESMTP Exim 3.12 #1 Sat, 15 Apr 2000 00:03:02 -0600
3094 help
3095 214-Commands supported:
3096 214- HELO EHLO MAIL RCPT DATA AUTH
3097 214 NOOP QUIT RSET HELP
3098 quit
3099 221 foobar closing connection
3100</screen>
3101
3102
3103</para>
3104
3105<para>
3106-------------------------------
3107
3108
3109</para>
3110
3111</listitem></varlistentry>
3112<varlistentry><term><emphasis>more 2904<varlistentry><term><emphasis>more
3113 2905
3114</emphasis></term> 2906</emphasis></term>
@@ -3295,6 +3087,51 @@ Example:
3295</para> 3087</para>
3296 3088
3297</listitem></varlistentry> 3089</listitem></varlistentry>
3090<varlistentry><term><emphasis>nc
3091
3092</emphasis></term>
3093<listitem><para></para>
3094
3095<para>
3096Usage: nc [IP] [port]
3097
3098
3099</para>
3100
3101<para>
3102Netcat opens a pipe to IP:port
3103
3104
3105</para>
3106
3107<para>
3108Example:
3109
3110
3111</para>
3112
3113<para>
3114<screen>
3115 $ nc foobar.somedomain.com 25
3116 220 foobar ESMTP Exim 3.12 #1 Sat, 15 Apr 2000 00:03:02 -0600
3117 help
3118 214-Commands supported:
3119 214- HELO EHLO MAIL RCPT DATA AUTH
3120 214 NOOP QUIT RSET HELP
3121 quit
3122 221 foobar closing connection
3123</screen>
3124
3125
3126</para>
3127
3128<para>
3129-------------------------------
3130
3131
3132</para>
3133
3134</listitem></varlistentry>
3298<varlistentry><term><emphasis>nslookup 3135<varlistentry><term><emphasis>nslookup
3299 3136
3300</emphasis></term> 3137</emphasis></term>
@@ -3860,47 +3697,6 @@ Example:
3860</para> 3697</para>
3861 3698
3862</listitem></varlistentry> 3699</listitem></varlistentry>
3863<varlistentry><term><emphasis>sh
3864
3865</emphasis></term>
3866<listitem><para></para>
3867
3868<para>
3869Usage: sh
3870
3871
3872</para>
3873
3874<para>
3875lash -- the BusyBox LAme SHell (command interpreter)
3876
3877
3878</para>
3879
3880<para>
3881This command does not yet have proper documentation.
3882
3883
3884</para>
3885
3886<para>
3887Use lash just as you would use any other shell. It properly handles pipes,
3888redirects, job control, can be used as the shell for scripts (#!/bin/sh),
3889and has a sufficient set of builtins to do what is needed. It does not
3890(yet) support Bourne Shell syntax. If you need things like
3891``if-then-else'', ``while'', and such, use ash or bash. If you just need a
3892very simple and extremely small shell, this will do the job.
3893
3894
3895</para>
3896
3897<para>
3898-------------------------------
3899
3900
3901</para>
3902
3903</listitem></varlistentry>
3904<varlistentry><term><emphasis>sfdisk 3700<varlistentry><term><emphasis>sfdisk
3905 3701
3906</emphasis></term> 3702</emphasis></term>
@@ -3996,6 +3792,47 @@ You can disable all consistency checking with:
3996</para> 3792</para>
3997 3793
3998</listitem></varlistentry> 3794</listitem></varlistentry>
3795<varlistentry><term><emphasis>sh
3796
3797</emphasis></term>
3798<listitem><para></para>
3799
3800<para>
3801Usage: sh
3802
3803
3804</para>
3805
3806<para>
3807lash -- the BusyBox LAme SHell (command interpreter)
3808
3809
3810</para>
3811
3812<para>
3813This command does not yet have proper documentation.
3814
3815
3816</para>
3817
3818<para>
3819Use lash just as you would use any other shell. It properly handles pipes,
3820redirects, job control, can be used as the shell for scripts (#!/bin/sh),
3821and has a sufficient set of builtins to do what is needed. It does not
3822(yet) support Bourne Shell syntax. If you need things like
3823``if-then-else'', ``while'', and such, use ash or bash. If you just need a
3824very simple and extremely small shell, this will do the job.
3825
3826
3827</para>
3828
3829<para>
3830-------------------------------
3831
3832
3833</para>
3834
3835</listitem></varlistentry>
3999<varlistentry><term><emphasis>sleep 3836<varlistentry><term><emphasis>sleep
4000 3837
4001</emphasis></term> 3838</emphasis></term>
@@ -4079,19 +3916,33 @@ Example:
4079</para> 3916</para>
4080 3917
4081</listitem></varlistentry> 3918</listitem></varlistentry>
4082<varlistentry><term><emphasis>sync 3919<varlistentry><term><emphasis>swapoff
4083 3920
4084</emphasis></term> 3921</emphasis></term>
4085<listitem><para></para> 3922<listitem><para></para>
4086 3923
4087<para> 3924<para>
4088Usage: sync 3925Usage: swapoff [OPTION] [device]
4089 3926
4090 3927
4091</para> 3928</para>
4092 3929
4093<para> 3930<para>
4094Write all buffered filesystem blocks to disk. 3931Stop swapping virtual memory pages on the given device.
3932
3933
3934</para>
3935
3936<para>
3937Options:
3938
3939
3940</para>
3941
3942<para>
3943<screen>
3944 -a Stop swapping on all swap devices
3945</screen>
4095 3946
4096 3947
4097</para> 3948</para>
@@ -4103,20 +3954,19 @@ Write all buffered filesystem blocks to disk.
4103</para> 3954</para>
4104 3955
4105</listitem></varlistentry> 3956</listitem></varlistentry>
4106<varlistentry><term><emphasis>syslogd 3957<varlistentry><term><emphasis>swapon
4107 3958
4108</emphasis></term> 3959</emphasis></term>
4109<listitem><para></para> 3960<listitem><para></para>
4110 3961
4111<para> 3962<para>
4112Usage: syslogd [OPTION]... 3963Usage: swapon [OPTION] [device]
4113 3964
4114 3965
4115</para> 3966</para>
4116 3967
4117<para> 3968<para>
4118Linux system and kernel (provides klogd) logging utility. Note that this 3969Start swapping virtual memory pages on the given device.
4119version of syslogd/klogd ignores /etc/syslog.conf.
4120 3970
4121 3971
4122</para> 3972</para>
@@ -4129,10 +3979,7 @@ Options:
4129 3979
4130<para> 3980<para>
4131<screen> 3981<screen>
4132 -m NUM Interval between MARK lines (default=20min, 0=off) 3982 -a Start swapping on all swap devices
4133 -n Run as a foreground process
4134 -K Do not start up the klogd process
4135 -O FILE Use an alternate log file (default=/var/log/messages)
4136</screen> 3983</screen>
4137 3984
4138 3985
@@ -4145,33 +3992,19 @@ Options:
4145</para> 3992</para>
4146 3993
4147</listitem></varlistentry> 3994</listitem></varlistentry>
4148<varlistentry><term><emphasis>swapon 3995<varlistentry><term><emphasis>sync
4149 3996
4150</emphasis></term> 3997</emphasis></term>
4151<listitem><para></para> 3998<listitem><para></para>
4152 3999
4153<para> 4000<para>
4154Usage: swapon [OPTION] [device] 4001Usage: sync
4155
4156
4157</para>
4158
4159<para>
4160Start swapping virtual memory pages on the given device.
4161
4162
4163</para>
4164
4165<para>
4166Options:
4167 4002
4168 4003
4169</para> 4004</para>
4170 4005
4171<para> 4006<para>
4172<screen> 4007Write all buffered filesystem blocks to disk.
4173 -a Start swapping on all swap devices
4174</screen>
4175 4008
4176 4009
4177</para> 4010</para>
@@ -4183,19 +4016,20 @@ Options:
4183</para> 4016</para>
4184 4017
4185</listitem></varlistentry> 4018</listitem></varlistentry>
4186<varlistentry><term><emphasis>swapoff 4019<varlistentry><term><emphasis>syslogd
4187 4020
4188</emphasis></term> 4021</emphasis></term>
4189<listitem><para></para> 4022<listitem><para></para>
4190 4023
4191<para> 4024<para>
4192Usage: swapoff [OPTION] [device] 4025Usage: syslogd [OPTION]...
4193 4026
4194 4027
4195</para> 4028</para>
4196 4029
4197<para> 4030<para>
4198Stop swapping virtual memory pages on the given device. 4031Linux system and kernel (provides klogd) logging utility. Note that this
4032version of syslogd/klogd ignores /etc/syslog.conf.
4199 4033
4200 4034
4201</para> 4035</para>
@@ -4208,7 +4042,10 @@ Options:
4208 4042
4209<para> 4043<para>
4210<screen> 4044<screen>
4211 -a Stop swapping on all swap devices 4045 -m NUM Interval between MARK lines (default=20min, 0=off)
4046 -n Run as a foreground process
4047 -K Do not start up the klogd process
4048 -O FILE Use an alternate log file (default=/var/log/messages)
4212</screen> 4049</screen>
4213 4050
4214 4051
@@ -4364,20 +4201,33 @@ Example:
4364</para> 4201</para>
4365 4202
4366</listitem></varlistentry> 4203</listitem></varlistentry>
4367<varlistentry><term><emphasis>test, [ 4204<varlistentry><term><emphasis>tee
4368 4205
4369</emphasis></term> 4206</emphasis></term>
4370<listitem><para></para> 4207<listitem><para></para>
4371 4208
4372<para> 4209<para>
4373Usage: test EXPRESSION or [ EXPRESSION ] 4210Usage: tee [OPTION]... [FILE]...
4374 4211
4375 4212
4376</para> 4213</para>
4377 4214
4378<para> 4215<para>
4379Checks file types and compares values returning an exit code determined by 4216Copy standard input to each FILE, and also to standard output.
4380the value of EXPRESSION. 4217
4218
4219</para>
4220
4221<para>
4222Options:
4223
4224
4225</para>
4226
4227<para>
4228<screen>
4229 -a append to the given FILEs, do not overwrite
4230</screen>
4381 4231
4382 4232
4383</para> 4233</para>
@@ -4390,18 +4240,9 @@ Example:
4390 4240
4391<para> 4241<para>
4392<screen> 4242<screen>
4393 $ test 1 -eq 2 4243 $ echo "Hello" | tee /tmp/foo
4394 $ echo $? 4244 $ cat /tmp/foo
4395 1 4245 Hello
4396 $ test 1 -eq 1
4397 $ echo $?
4398 0
4399 $ [ -d /etc ]
4400 $ echo $?
4401 0
4402 $ [ -d /junk ]
4403 $ echo $?
4404 1
4405</screen> 4246</screen>
4406 4247
4407 4248
@@ -4439,33 +4280,20 @@ over a network using the TELNET protocol.
4439</para> 4280</para>
4440 4281
4441</listitem></varlistentry> 4282</listitem></varlistentry>
4442<varlistentry><term><emphasis>tee 4283<varlistentry><term><emphasis>test, [
4443 4284
4444</emphasis></term> 4285</emphasis></term>
4445<listitem><para></para> 4286<listitem><para></para>
4446 4287
4447<para> 4288<para>
4448Usage: tee [OPTION]... [FILE]... 4289Usage: test EXPRESSION or [ EXPRESSION ]
4449
4450
4451</para>
4452
4453<para>
4454Copy standard input to each FILE, and also to standard output.
4455
4456
4457</para>
4458
4459<para>
4460Options:
4461 4290
4462 4291
4463</para> 4292</para>
4464 4293
4465<para> 4294<para>
4466<screen> 4295Checks file types and compares values returning an exit code determined by
4467 -a append to the given FILEs, do not overwrite 4296the value of EXPRESSION.
4468</screen>
4469 4297
4470 4298
4471</para> 4299</para>
@@ -4478,9 +4306,18 @@ Example:
4478 4306
4479<para> 4307<para>
4480<screen> 4308<screen>
4481 $ echo "Hello" | tee /tmp/foo 4309 $ test 1 -eq 2
4482 $ cat /tmp/foo 4310 $ echo $?
4483 Hello 4311 1
4312 $ test 1 -eq 1
4313 $ echo $?
4314 0
4315 $ [ -d /etc ]
4316 $ echo $?
4317 0
4318 $ [ -d /junk ]
4319 $ echo $?
4320 1
4484</screen> 4321</screen>
4485 4322
4486 4323
@@ -4678,32 +4515,29 @@ Example:
4678</para> 4515</para>
4679 4516
4680</listitem></varlistentry> 4517</listitem></varlistentry>
4681<varlistentry><term><emphasis>uuencode 4518<varlistentry><term><emphasis>umount
4682 4519
4683</emphasis></term> 4520</emphasis></term>
4684<listitem><para></para> 4521<listitem><para></para>
4685 4522
4686<para> 4523<para>
4687Usage: uuencode [OPTION] [INFILE] REMOTEFILE 4524Usage: umount [flags] filesystem|directory
4688
4689
4690</para>
4691
4692<para>
4693Uuencode a file.
4694 4525
4695 4526
4696</para> 4527</para>
4697 4528
4698<para> 4529<para>
4699Options: 4530Flags:
4700 4531
4701 4532
4702</para> 4533</para>
4703 4534
4704<para> 4535<para>
4705<screen> 4536<screen>
4706 -m use base64 encoding as of RFC1521 4537 -a: Unmount all file systems
4538 -r: Try to remount devices as read-only if mount is busy
4539 -f: Force filesystem umount (i.e. unreachable NFS server)
4540 -l: Do not free loop device (if a loop device has been used)
4707</screen> 4541</screen>
4708 4542
4709 4543
@@ -4717,12 +4551,7 @@ Example:
4717 4551
4718<para> 4552<para>
4719<screen> 4553<screen>
4720 $ uuencode busybox busybox 4554 $ umount /dev/hdc1
4721 begin 755 busybox
4722 M?T5,1@$!`0````````````(``P`!````L+@$"#0```!0N@,``````#0`(``&amp;
4723 .....
4724 $ uudecode busybox busybox &gt; busybox.uu
4725 $
4726</screen> 4555</screen>
4727 4556
4728 4557
@@ -4735,19 +4564,19 @@ Example:
4735</para> 4564</para>
4736 4565
4737</listitem></varlistentry> 4566</listitem></varlistentry>
4738<varlistentry><term><emphasis>uudecode 4567<varlistentry><term><emphasis>uname
4739 4568
4740</emphasis></term> 4569</emphasis></term>
4741<listitem><para></para> 4570<listitem><para></para>
4742 4571
4743<para> 4572<para>
4744Usage: uudecode [OPTION] [FILE] 4573Usage: uname [OPTION]...
4745 4574
4746 4575
4747</para> 4576</para>
4748 4577
4749<para> 4578<para>
4750Uudecode a uuencoded file 4579Print certain system information. With no OPTION, same as <emphasis>-s</emphasis>.
4751 4580
4752 4581
4753</para> 4582</para>
@@ -4760,7 +4589,13 @@ Options:
4760 4589
4761<para> 4590<para>
4762<screen> 4591<screen>
4763 -o FILE direct output to FILE 4592 -a print all information
4593 -m the machine (hardware) type
4594 -n print the machine's network node hostname
4595 -r print the operating system release
4596 -s print the operating system name
4597 -p print the host processor type
4598 -v print the operating system version
4764</screen> 4599</screen>
4765 4600
4766 4601
@@ -4774,9 +4609,8 @@ Example:
4774 4609
4775<para> 4610<para>
4776<screen> 4611<screen>
4777 $ uudecode -o busybox busybox.uu 4612 $ uname -a
4778 $ ls -l busybox 4613 Linux debian 2.2.15pre13 #5 Tue Mar 14 16:03:50 MST 2000 i686 unknown
4779 -rwxr-xr-x 1 ams ams 245264 Jun 7 21:35 busybox
4780</screen> 4614</screen>
4781 4615
4782 4616
@@ -4789,30 +4623,20 @@ Example:
4789</para> 4623</para>
4790 4624
4791</listitem></varlistentry> 4625</listitem></varlistentry>
4792<varlistentry><term><emphasis>umount 4626<varlistentry><term><emphasis>uniq
4793 4627
4794</emphasis></term> 4628</emphasis></term>
4795<listitem><para></para> 4629<listitem><para></para>
4796 4630
4797<para> 4631<para>
4798Usage: umount [flags] filesystem|directory 4632Usage: uniq [OPTION]... [INPUT [OUTPUT]]
4799
4800
4801</para>
4802
4803<para>
4804Flags:
4805 4633
4806 4634
4807</para> 4635</para>
4808 4636
4809<para> 4637<para>
4810<screen> 4638Discard all but one of successive identical lines from INPUT (or standard
4811 -a: Unmount all file systems 4639input), writing to OUTPUT (or standard output).
4812 -r: Try to remount devices as read-only if mount is busy
4813 -f: Force filesystem umount (i.e. unreachable NFS server)
4814 -l: Do not free loop device (if a loop device has been used)
4815</screen>
4816 4640
4817 4641
4818</para> 4642</para>
@@ -4825,7 +4649,10 @@ Example:
4825 4649
4826<para> 4650<para>
4827<screen> 4651<screen>
4828 $ umount /dev/hdc1 4652 $ echo -e "a\na\nb\nc\nc\na" | sort | uniq
4653 a
4654 b
4655 c
4829</screen> 4656</screen>
4830 4657
4831 4658
@@ -4838,19 +4665,19 @@ Example:
4838</para> 4665</para>
4839 4666
4840</listitem></varlistentry> 4667</listitem></varlistentry>
4841<varlistentry><term><emphasis>uname 4668<varlistentry><term><emphasis>update
4842 4669
4843</emphasis></term> 4670</emphasis></term>
4844<listitem><para></para> 4671<listitem><para></para>
4845 4672
4846<para> 4673<para>
4847Usage: uname [OPTION]... 4674Usage: update [options]
4848 4675
4849 4676
4850</para> 4677</para>
4851 4678
4852<para> 4679<para>
4853Print certain system information. With no OPTION, same as <emphasis>-s</emphasis>. 4680Periodically flushes filesystem buffers.
4854 4681
4855 4682
4856</para> 4683</para>
@@ -4863,28 +4690,9 @@ Options:
4863 4690
4864<para> 4691<para>
4865<screen> 4692<screen>
4866 -a print all information 4693 -S force use of sync(2) instead of flushing
4867 -m the machine (hardware) type 4694 -s SECS call sync this often (default 30)
4868 -n print the machine's network node hostname 4695 -f SECS flush some buffers this often (default 5)
4869 -r print the operating system release
4870 -s print the operating system name
4871 -p print the host processor type
4872 -v print the operating system version
4873</screen>
4874
4875
4876</para>
4877
4878<para>
4879Example:
4880
4881
4882</para>
4883
4884<para>
4885<screen>
4886 $ uname -a
4887 Linux debian 2.2.15pre13 #5 Tue Mar 14 16:03:50 MST 2000 i686 unknown
4888</screen> 4696</screen>
4889 4697
4890 4698
@@ -4897,20 +4705,19 @@ Example:
4897</para> 4705</para>
4898 4706
4899</listitem></varlistentry> 4707</listitem></varlistentry>
4900<varlistentry><term><emphasis>uniq 4708<varlistentry><term><emphasis>uptime
4901 4709
4902</emphasis></term> 4710</emphasis></term>
4903<listitem><para></para> 4711<listitem><para></para>
4904 4712
4905<para> 4713<para>
4906Usage: uniq [OPTION]... [INPUT [OUTPUT]] 4714Usage: uptime
4907 4715
4908 4716
4909</para> 4717</para>
4910 4718
4911<para> 4719<para>
4912Discard all but one of successive identical lines from INPUT (or standard 4720Tells how long the system has been running since boot.
4913input), writing to OUTPUT (or standard output).
4914 4721
4915 4722
4916</para> 4723</para>
@@ -4923,10 +4730,8 @@ Example:
4923 4730
4924<para> 4731<para>
4925<screen> 4732<screen>
4926 $ echo -e "a\na\nb\nc\nc\na" | sort | uniq 4733 $ uptime
4927 a 4734 1:55pm up 2:30, load average: 0.09, 0.04, 0.00
4928 b
4929 c
4930</screen> 4735</screen>
4931 4736
4932 4737
@@ -4939,34 +4744,33 @@ Example:
4939</para> 4744</para>
4940 4745
4941</listitem></varlistentry> 4746</listitem></varlistentry>
4942<varlistentry><term><emphasis>update 4747<varlistentry><term><emphasis>usleep
4943 4748
4944</emphasis></term> 4749</emphasis></term>
4945<listitem><para></para> 4750<listitem><para></para>
4946 4751
4947<para> 4752<para>
4948Usage: update [options] 4753Usage: usleep N
4949 4754
4950 4755
4951</para> 4756</para>
4952 4757
4953<para> 4758<para>
4954Periodically flushes filesystem buffers. 4759Pauses for N microseconds.
4955 4760
4956 4761
4957</para> 4762</para>
4958 4763
4959<para> 4764<para>
4960Options: 4765Example:
4961 4766
4962 4767
4963</para> 4768</para>
4964 4769
4965<para> 4770<para>
4966<screen> 4771<screen>
4967 -S force use of sync(2) instead of flushing 4772 $ usleep 1000000
4968 -s SECS call sync this often (default 30) 4773 [pauses for 1 second]
4969 -f SECS flush some buffers this often (default 5)
4970</screen> 4774</screen>
4971 4775
4972 4776
@@ -4979,19 +4783,33 @@ Options:
4979</para> 4783</para>
4980 4784
4981</listitem></varlistentry> 4785</listitem></varlistentry>
4982<varlistentry><term><emphasis>uptime 4786<varlistentry><term><emphasis>uudecode
4983 4787
4984</emphasis></term> 4788</emphasis></term>
4985<listitem><para></para> 4789<listitem><para></para>
4986 4790
4987<para> 4791<para>
4988Usage: uptime 4792Usage: uudecode [OPTION] [FILE]
4989 4793
4990 4794
4991</para> 4795</para>
4992 4796
4993<para> 4797<para>
4994Tells how long the system has been running since boot. 4798Uudecode a uuencoded file
4799
4800
4801</para>
4802
4803<para>
4804Options:
4805
4806
4807</para>
4808
4809<para>
4810<screen>
4811 -o FILE direct output to FILE
4812</screen>
4995 4813
4996 4814
4997</para> 4815</para>
@@ -5004,8 +4822,9 @@ Example:
5004 4822
5005<para> 4823<para>
5006<screen> 4824<screen>
5007 $ uptime 4825 $ uudecode -o busybox busybox.uu
5008 1:55pm up 2:30, load average: 0.09, 0.04, 0.00 4826 $ ls -l busybox
4827 -rwxr-xr-x 1 ams ams 245264 Jun 7 21:35 busybox
5009</screen> 4828</screen>
5010 4829
5011 4830
@@ -5018,19 +4837,33 @@ Example:
5018</para> 4837</para>
5019 4838
5020</listitem></varlistentry> 4839</listitem></varlistentry>
5021<varlistentry><term><emphasis>usleep 4840<varlistentry><term><emphasis>uuencode
5022 4841
5023</emphasis></term> 4842</emphasis></term>
5024<listitem><para></para> 4843<listitem><para></para>
5025 4844
5026<para> 4845<para>
5027Usage: usleep N 4846Usage: uuencode [OPTION] [INFILE] REMOTEFILE
5028 4847
5029 4848
5030</para> 4849</para>
5031 4850
5032<para> 4851<para>
5033Pauses for N microseconds. 4852Uuencode a file.
4853
4854
4855</para>
4856
4857<para>
4858Options:
4859
4860
4861</para>
4862
4863<para>
4864<screen>
4865 -m use base64 encoding as of RFC1521
4866</screen>
5034 4867
5035 4868
5036</para> 4869</para>
@@ -5043,8 +4876,12 @@ Example:
5043 4876
5044<para> 4877<para>
5045<screen> 4878<screen>
5046 $ usleep 1000000 4879 $ uuencode busybox busybox
5047 [pauses for 1 second] 4880 begin 755 busybox
4881 M?T5,1@$!`0````````````(``P`!````L+@$"#0```!0N@,``````#0`(``&amp;
4882 .....
4883 $ uudecode busybox busybox &gt; busybox.uu
4884 $
5048</screen> 4885</screen>
5049 4886
5050 4887