From 028fb625f53208a4d835f4a5ae034c3edc1ad051 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 4 Jul 2000 20:07:13 +0000 Subject: [PATCH] More doc updates -Erik --- docs/busybox.pod | 274 +++++----- docs/busybox.sgml | 1265 ++++++++++++++++++++------------------------- 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: ------------------------------- -=item clear - -Clears the screen. - -------------------------------- - =item chvt Usage: chvt N @@ -251,6 +245,12 @@ Changes the foreground virtual terminal to /dev/ttyN ------------------------------- +=item clear + +Clears the screen. + +------------------------------- + =item cp Usage: cp [OPTION]... SOURCE DEST @@ -363,6 +363,14 @@ Example: ------------------------------- +=item deallocvt + +Usage: deallocvt N + +Deallocates unused virtual terminal /dev/ttyN + +------------------------------- + =item df Usage: df [filesystem ...] @@ -580,14 +588,6 @@ Example: ------------------------------- -=item deallocvt - -Usage: deallocvt N - -Deallocates unused virtual terminal /dev/ttyN - -------------------------------- - =item fsck.minix Usage: fsck.minix [B<-larvsmf>] /dev/name @@ -1187,25 +1187,6 @@ Example: ------------------------------- -=item nc - -Usage: nc [IP] [port] - -Netcat opens a pipe to IP:port - -Example: - - $ nc foobar.somedomain.com 25 - 220 foobar ESMTP Exim 3.12 #1 Sat, 15 Apr 2000 00:03:02 -0600 - help - 214-Commands supported: - 214- HELO EHLO MAIL RCPT DATA AUTH - 214 NOOP QUIT RSET HELP - quit - 221 foobar closing connection - -------------------------------- - =item more Usage: more [file ...] @@ -1277,6 +1258,25 @@ Example: ------------------------------- +=item nc + +Usage: nc [IP] [port] + +Netcat opens a pipe to IP:port + +Example: + + $ nc foobar.somedomain.com 25 + 220 foobar ESMTP Exim 3.12 #1 Sat, 15 Apr 2000 00:03:02 -0600 + help + 214-Commands supported: + 214- HELO EHLO MAIL RCPT DATA AUTH + 214 NOOP QUIT RSET HELP + quit + 221 foobar closing connection + +------------------------------- + =item nslookup Usage: nslookup [HOST] @@ -1476,23 +1476,6 @@ Example: ------------------------------- -=item sh - -Usage: sh - -lash -- the BusyBox LAme SHell (command interpreter) - -This command does not yet have proper documentation. - -Use lash just as you would use any other shell. It properly handles pipes, -redirects, job control, can be used as the shell for scripts (#!/bin/sh), and -has a sufficient set of builtins to do what is needed. It does not (yet) -support Bourne Shell syntax. If you need things like "if-then-else", "while", -and such, use ash or bash. If you just need a very simple and extremely small -shell, this will do the job. - -------------------------------- - =item sfdisk Usage: sfdisk [options] device ... @@ -1536,6 +1519,23 @@ You can disable all consistency checking with: ------------------------------- +=item sh + +Usage: sh + +lash -- the BusyBox LAme SHell (command interpreter) + +This command does not yet have proper documentation. + +Use lash just as you would use any other shell. It properly handles pipes, +redirects, job control, can be used as the shell for scripts (#!/bin/sh), and +has a sufficient set of builtins to do what is needed. It does not (yet) +support Bourne Shell syntax. If you need things like "if-then-else", "while", +and such, use ash or bash. If you just need a very simple and extremely small +shell, this will do the job. + +------------------------------- + =item sleep Usage: sleep N @@ -1567,27 +1567,15 @@ Example: ------------------------------- -=item sync - -Usage: sync - -Write all buffered filesystem blocks to disk. - -------------------------------- - -=item syslogd +=item swapoff -Usage: syslogd [OPTION]... +Usage: swapoff [OPTION] [device] -Linux system and kernel (provides klogd) logging utility. -Note that this version of syslogd/klogd ignores /etc/syslog.conf. +Stop swapping virtual memory pages on the given device. Options: - -m NUM Interval between MARK lines (default=20min, 0=off) - -n Run as a foreground process - -K Do not start up the klogd process - -O FILE Use an alternate log file (default=/var/log/messages) + -a Stop swapping on all swap devices ------------------------------- @@ -1603,15 +1591,27 @@ Options: ------------------------------- -=item swapoff +=item sync -Usage: swapoff [OPTION] [device] +Usage: sync -Stop swapping virtual memory pages on the given device. +Write all buffered filesystem blocks to disk. + +------------------------------- + +=item syslogd + +Usage: syslogd [OPTION]... + +Linux system and kernel (provides klogd) logging utility. +Note that this version of syslogd/klogd ignores /etc/syslog.conf. Options: - -a Stop swapping on all swap devices + -m NUM Interval between MARK lines (default=20min, 0=off) + -n Run as a foreground process + -K Do not start up the klogd process + -O FILE Use an alternate log file (default=/var/log/messages) ------------------------------- @@ -1666,28 +1666,21 @@ Example: ------------------------------- -=item test, [ +=item tee -Usage: test EXPRESSION -or [ EXPRESSION ] +Usage: tee [OPTION]... [FILE]... -Checks file types and compares values returning an exit -code determined by the value of EXPRESSION. +Copy standard input to each FILE, and also to standard output. + +Options: + + -a append to the given FILEs, do not overwrite Example: - $ test 1 -eq 2 - $ echo $? - 1 - $ test 1 -eq 1 - $ echo $? - 0 - $ [ -d /etc ] - $ echo $? - 0 - $ [ -d /junk ] - $ echo $? - 1 + $ echo "Hello" | tee /tmp/foo + $ cat /tmp/foo + Hello ------------------------------- @@ -1700,21 +1693,28 @@ computer over a network using the TELNET protocol. ------------------------------- -=item tee - -Usage: tee [OPTION]... [FILE]... - -Copy standard input to each FILE, and also to standard output. +=item test, [ -Options: +Usage: test EXPRESSION +or [ EXPRESSION ] - -a append to the given FILEs, do not overwrite +Checks file types and compares values returning an exit +code determined by the value of EXPRESSION. Example: - $ echo "Hello" | tee /tmp/foo - $ cat /tmp/foo - Hello + $ test 1 -eq 2 + $ echo $? + 1 + $ test 1 -eq 1 + $ echo $? + 0 + $ [ -d /etc ] + $ echo $? + 0 + $ [ -d /junk ] + $ echo $? + 1 ------------------------------- @@ -1783,45 +1783,6 @@ Example: ------------------------------- -=item uuencode - -Usage: uuencode [OPTION] [INFILE] REMOTEFILE - -Uuencode a file. - -Options: - - -m use base64 encoding as of RFC1521 - -Example: - - $ uuencode busybox busybox - begin 755 busybox - M?T5,1@$!`0````````````(``P`!````L+@$"#0```!0N@,``````#0`(``& - ..... - $ uudecode busybox busybox > busybox.uu - $ - -------------------------------- - -=item uudecode - -Usage: uudecode [OPTION] [FILE] - -Uudecode a uuencoded file - -Options: - - -o FILE direct output to FILE - -Example: - - $ uudecode -o busybox busybox.uu - $ ls -l busybox - -rwxr-xr-x 1 ams ams 245264 Jun 7 21:35 busybox - -------------------------------- - =item umount Usage: umount [flags] filesystem|directory @@ -1918,6 +1879,45 @@ Example: ------------------------------- +=item uuencode + +Usage: uuencode [OPTION] [INFILE] REMOTEFILE + +Uuencode a file. + +Options: + + -m use base64 encoding as of RFC1521 + +Example: + + $ uuencode busybox busybox + begin 755 busybox + M?T5,1@$!`0````````````(``P`!````L+@$"#0```!0N@,``````#0`(``& + ..... + $ uudecode busybox busybox > busybox.uu + $ + +------------------------------- + +=item uudecode + +Usage: uudecode [OPTION] [FILE] + +Uudecode a uuencoded file + +Options: + + -o FILE direct output to FILE + +Example: + + $ uudecode -o busybox busybox.uu + $ ls -l busybox + -rwxr-xr-x 1 ams ams 245264 Jun 7 21:35 busybox + +------------------------------- + =item wc Usage: wc [OPTION]... [FILE]... @@ -2063,4 +2063,4 @@ Enrique Zanardi =cut -# $Id: busybox.pod,v 1.52 2000/06/26 12:14:30 andersen Exp $ +# $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 @@ - -------------------------------- - - - - - -chgrp - - - - - -Usage: chgrp [OPTION]... GROUP FILE... - - - - - -Change the group membership of each FILE to GROUP. - - - - - -Options: - - - - - - - -R change files and directories recursively - - - - - - -Example: - - - - - - - $ ls -l /tmp/foo - -r--r--r-- 1 andersen andersen 0 Apr 12 18:25 /tmp/foo - $ chgrp root /tmp/foo - $ ls -l /tmp/foo - -r--r--r-- 1 andersen root 0 Apr 12 18:25 /tmp/foo - - - - - - -------------------------------- - - - - - -chmod - - - - - -Usage: chmod [-R] MODE[,MODE]... FILE... - - - - - -Changes file access permissions for the specified -FILE(s) (or directories). Each MODE is defined by -combining the letters for WHO has access to the file, an OPERATOR for -selecting how the permissions should be changed, and a PERMISSION for -FILE(s) (or directories). - - - - - -WHO may be chosen from - - - - - - - u User who owns the file - g Users in the file's Group - o Other users not in the file's group - a All users - - - - - - -OPERATOR may be chosen from - - - - - - - + Add a permission - - Remove a permission - = Assign a permission - - - - - - -PERMISSION may be chosen from - - - - - - - r Read - w Write - x Execute (or access for directories) - s Set user (or group) ID bit - t Sticky bit (for directories prevents removing files by non-owners) - - - - - - -Alternately, permissions can be set numerically where the first three -numbers are calculated by adding the octal values, such as - - - - - - - 4 Read - 2 Write - 1 Execute - - - - - - -An optional fourth digit can also be used to specify - - - - - - - 4 Set user ID - 2 Set group ID - 1 Sticky bit - - - - - - -Options: - - - - - - - -R Change files and directories recursively. - + + chgrp - - - -Example: - - - - - - - $ ls -l /tmp/foo - -rw-rw-r-- 1 root root 0 Apr 12 18:25 /tmp/foo - $ chmod u+x /tmp/foo - $ ls -l /tmp/foo - -rwxrw-r-- 1 root root 0 Apr 12 18:25 /tmp/foo* - $ chmod 444 /tmp/foo - $ ls -l /tmp/foo - -r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo - - - - - - -------------------------------- - - - - - -chown - - - - - -Usage: chown [OPTION]... OWNER[<.|:>[GROUP] FILE... - - - - - -Changes the owner and/or group of each FILE to OWNER and/or GROUP. - - - - - -Options: - - - - - - - -R Changes files and directories recursively - - - - - - -Example: - - - - - - - $ ls -l /tmp/foo - -r--r--r-- 1 andersen andersen 0 Apr 12 18:25 /tmp/foo - $ chown root /tmp/foo - $ ls -l /tmp/foo - -r--r--r-- 1 root andersen 0 Apr 12 18:25 /tmp/foo - $ chown root.root /tmp/foo - ls -l /tmp/foo - -r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo - - - - - - -------------------------------- - - - - - -chroot - - - - - -Usage: chroot NEWROOT [COMMAND...] - - - - - -Run COMMAND with root directory set to NEWROOT. - - - - - -Example: - - - - - - - $ ls -l /bin/ls - lrwxrwxrwx 1 root root 12 Apr 13 00:46 /bin/ls -> /BusyBox - $ mount /dev/hdc1 /mnt -t minix - $ chroot /mnt - $ ls -l /bin/ls - -rwxr-xr-x 1 root root 40816 Feb 5 07:45 /bin/ls* - - - - - - -------------------------------- - - - - - -clear - - - - - -Clears the screen. - - - - - -------------------------------- - - - - - -chvt - - - - - -Usage: chvt N - - - + + Usage: chgrp [OPTION]... GROUP FILE... + - -Changes the foreground virtual terminal to /dev/ttyN + + Change the group membership of each FILE to GROUP. + + + Options: + - + + + -R change files and directories recursively + + - -------------------------------- + + Example: + + + + $ ls -l /tmp/foo + -r--r--r-- 1 andersen andersen 0 Apr 12 18:25 /tmp/foo + $ chgrp root /tmp/foo + $ ls -l /tmp/foo + -r--r--r-- 1 andersen root 0 Apr 12 18:25 /tmp/foo + + + - - -cp - - + + chmod - -Usage: cp [OPTION]... SOURCE DEST + + Usage: chmod [-R] MODE[,MODE]... FILE... + + + Changes file access permissions for the specified + FILE(s) (or directories). Each MODE is defined by + combining the letters for WHO has access to the file, an OPERATOR for + selecting how the permissions should be changed, and a PERMISSION for + FILE(s) (or directories). + - + + WHO may be chosen from + - - - or: cp [OPTION]... SOURCE... DIRECTORY - + + + u User who owns the file + g Users in the file's Group + o Other users not in the file's group + a All users + + + + OPERATOR may be chosen from + - + + + + Add a permission + - Remove a permission + = Assign a permission + + - -Copies SOURCE to DEST, or multiple SOURCE(s) to -DIRECTORY. + + PERMISSION may be chosen from + + + + r Read + w Write + x Execute (or access for directories) + s Set user (or group) ID bit + t Sticky bit (for directories prevents removing files by non-owners) + + - + + Alternately, permissions can be set numerically where the first three + numbers are calculated by adding the octal values, such as + - -Options: + + + 4 Read + 2 Write + 1 Execute + + + + An optional fourth digit can also be used to specify + - + + + 4 Set user ID + 2 Set group ID + 1 Sticky bit + + - - - -a Same as -dpR - -d Preserves links - -p Preserves file attributes if possible - -R Copies directories recursively - + + Options: + + + + -R Change files and directories recursively. + + - + + Example: + - -------------------------------- + + + $ ls -l /tmp/foo + -rw-rw-r-- 1 root root 0 Apr 12 18:25 /tmp/foo + $ chmod u+x /tmp/foo + $ ls -l /tmp/foo + -rwxrw-r-- 1 root root 0 Apr 12 18:25 /tmp/foo* + $ chmod 444 /tmp/foo + $ ls -l /tmp/foo + -r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo + + + - + + + chown + + Usage: chown [OPTION]... OWNER[<.|:>[GROUP] FILE... + - -cut + + Changes the owner and/or group of each FILE to OWNER and/or GROUP. + - - + + Options: + - -Usage: cut [OPTION]... [FILE]... + + + -R Changes files and directories recursively + + + + Example: + - + + + $ ls -l /tmp/foo + -r--r--r-- 1 andersen andersen 0 Apr 12 18:25 /tmp/foo + $ chown root /tmp/foo + $ ls -l /tmp/foo + -r--r--r-- 1 root andersen 0 Apr 12 18:25 /tmp/foo + $ chown root.root /tmp/foo + ls -l /tmp/foo + -r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo + + + - -Prints selected fields from each input FILE to standard output. - + + chroot + + Usage: chroot NEWROOT [COMMAND...] + - -Options: + + Run COMMAND with root directory set to NEWROOT. + + + Example: + - + + + $ ls -l /bin/ls + lrwxrwxrwx 1 root root 12 Apr 13 00:46 /bin/ls -> /BusyBox + $ mount /dev/hdc1 /mnt -t minix + $ chroot /mnt + $ ls -l /bin/ls + -rwxr-xr-x 1 root root 40816 Feb 5 07:45 /bin/ls* + + + - - - -b LIST Output only bytes from LIST - -c LIST Output only characters from LIST - -d CHAR Use CHAR instead of tab as the field delimiter - -s Only output Lines if the include DELIM - -f N Print only these fields - -n Ignored - + + chvt + + Usage: chvt N + - + + Changes the foreground virtual terminal to /dev/ttyN + + - -Example: - - - - $ echo "Hello world" | cut -f 1 -d ' ' - Hello - $ echo "Hello world" | cut -f 2 -d ' ' - world - + + clear + + Usage: clear + - + + Clears the screen. + + - -------------------------------- + + cp - + + Usage: cp [OPTION]... SOURCE DEST + - -date + + + or: cp [OPTION]... SOURCE... DIRECTORY + + - - + + Copies SOURCE to DEST, or multiple SOURCE(s) to + DIRECTORY. + - -Usage: date [OPTION]... [+FORMAT] + + Options: + + + + -a Same as -dpR + -d Preserves links + -p Preserves file attributes if possible + -R Copies directories recursively + + + - - - - or: date [OPTION] [MMDDhhmm[[CC]YY][.ss]] - + + cut + + Usage: cut [OPTION]... [FILE]... + - + + Prints selected fields from each input FILE to standard output. + - -Displays the current time in the given FORMAT, or sets the system date. + + Options: + + + + -b LIST Output only bytes from LIST + -c LIST Output only characters from LIST + -d CHAR Use CHAR instead of tab as the field delimiter + -s Only output Lines if the include DELIM + -f N Print only these fields + -n Ignored + + - + + Example: + - -Options: + + + $ echo "Hello world" | cut -f 1 -d ' ' + Hello + $ echo "Hello world" | cut -f 2 -d ' ' + world + + + - - - - -R Outputs RFC-822 compliant date string - -s Sets time described by STRING - -u Prints or sets Coordinated Universal Time - + + date + + Usage: date [OPTION]... [+FORMAT] + - + + + or: date [OPTION] [MMDDhhmm[[CC]YY][.ss]] + + - -Example: + + Displays the current time in the given FORMAT, or sets the system date. + + + Options: + - + + + -R Outputs RFC-822 compliant date string + -s Sets time described by STRING + -u Prints or sets Coordinated Universal Time + + - - - $ date - Wed Apr 12 18:52:41 MDT 2000 - + + Example: + + + + $ date + Wed Apr 12 18:52:41 MDT 2000 + + + - - -------------------------------- + - dc @@ -869,6 +706,30 @@ Example: ------------------------------- + + + +deallocvt + + + + + +Usage: deallocvt N + + + + + +Deallocates unused virtual terminal /dev/ttyN + + + + + +------------------------------- + + @@ -1413,30 +1274,6 @@ Example: ------------------------------- - - - -deallocvt - - - - - -Usage: deallocvt N - - - - - -Deallocates unused virtual terminal /dev/ttyN - - - - - -------------------------------- - - @@ -3061,51 +2898,6 @@ Example: ------------------------------- - - - -nc - - - - - -Usage: nc [IP] [port] - - - - - -Netcat opens a pipe to IP:port - - - - - -Example: - - - - - - - $ nc foobar.somedomain.com 25 - 220 foobar ESMTP Exim 3.12 #1 Sat, 15 Apr 2000 00:03:02 -0600 - help - 214-Commands supported: - 214- HELO EHLO MAIL RCPT DATA AUTH - 214 NOOP QUIT RSET HELP - quit - 221 foobar closing connection - - - - - - -------------------------------- - - @@ -3292,6 +3084,51 @@ Example: ------------------------------- + + + +nc + + + + + +Usage: nc [IP] [port] + + + + + +Netcat opens a pipe to IP:port + + + + + +Example: + + + + + + + $ nc foobar.somedomain.com 25 + 220 foobar ESMTP Exim 3.12 #1 Sat, 15 Apr 2000 00:03:02 -0600 + help + 214-Commands supported: + 214- HELO EHLO MAIL RCPT DATA AUTH + 214 NOOP QUIT RSET HELP + quit + 221 foobar closing connection + + + + + + +------------------------------- + + @@ -3857,47 +3694,6 @@ Example: ------------------------------- - - - -sh - - - - - -Usage: sh - - - - - -lash -- the BusyBox LAme SHell (command interpreter) - - - - - -This command does not yet have proper documentation. - - - - - -Use lash just as you would use any other shell. It properly handles pipes, -redirects, job control, can be used as the shell for scripts (#!/bin/sh), -and has a sufficient set of builtins to do what is needed. It does not -(yet) support Bourne Shell syntax. If you need things like -``if-then-else'', ``while'', and such, use ash or bash. If you just need a -very simple and extremely small shell, this will do the job. - - - - - -------------------------------- - - @@ -3993,6 +3789,47 @@ You can disable all consistency checking with: ------------------------------- + + + +sh + + + + + +Usage: sh + + + + + +lash -- the BusyBox LAme SHell (command interpreter) + + + + + +This command does not yet have proper documentation. + + + + + +Use lash just as you would use any other shell. It properly handles pipes, +redirects, job control, can be used as the shell for scripts (#!/bin/sh), +and has a sufficient set of builtins to do what is needed. It does not +(yet) support Bourne Shell syntax. If you need things like +``if-then-else'', ``while'', and such, use ash or bash. If you just need a +very simple and extremely small shell, this will do the job. + + + + + +------------------------------- + + @@ -4079,19 +3916,33 @@ Example: -sync +swapoff -Usage: sync +Usage: swapoff [OPTION] [device] -Write all buffered filesystem blocks to disk. +Stop swapping virtual memory pages on the given device. + + + + + +Options: + + + + + + + -a Stop swapping on all swap devices + @@ -4103,20 +3954,19 @@ Write all buffered filesystem blocks to disk. -syslogd +swapon -Usage: syslogd [OPTION]... +Usage: swapon [OPTION] [device] -Linux system and kernel (provides klogd) logging utility. Note that this -version of syslogd/klogd ignores /etc/syslog.conf. +Start swapping virtual memory pages on the given device. @@ -4129,10 +3979,7 @@ Options: - -m NUM Interval between MARK lines (default=20min, 0=off) - -n Run as a foreground process - -K Do not start up the klogd process - -O FILE Use an alternate log file (default=/var/log/messages) + -a Start swapping on all swap devices @@ -4145,33 +3992,19 @@ Options: -swapon +sync -Usage: swapon [OPTION] [device] - - - - - -Start swapping virtual memory pages on the given device. - - - - - -Options: +Usage: sync - - -a Start swapping on all swap devices - +Write all buffered filesystem blocks to disk. @@ -4183,19 +4016,20 @@ Options: -swapoff +syslogd -Usage: swapoff [OPTION] [device] +Usage: syslogd [OPTION]... -Stop swapping virtual memory pages on the given device. +Linux system and kernel (provides klogd) logging utility. Note that this +version of syslogd/klogd ignores /etc/syslog.conf. @@ -4208,7 +4042,10 @@ Options: - -a Stop swapping on all swap devices + -m NUM Interval between MARK lines (default=20min, 0=off) + -n Run as a foreground process + -K Do not start up the klogd process + -O FILE Use an alternate log file (default=/var/log/messages) @@ -4364,20 +4201,33 @@ Example: -test, [ +tee -Usage: test EXPRESSION or [ EXPRESSION ] +Usage: tee [OPTION]... [FILE]... -Checks file types and compares values returning an exit code determined by -the value of EXPRESSION. +Copy standard input to each FILE, and also to standard output. + + + + + +Options: + + + + + + + -a append to the given FILEs, do not overwrite + @@ -4390,18 +4240,9 @@ Example: - $ test 1 -eq 2 - $ echo $? - 1 - $ test 1 -eq 1 - $ echo $? - 0 - $ [ -d /etc ] - $ echo $? - 0 - $ [ -d /junk ] - $ echo $? - 1 + $ echo "Hello" | tee /tmp/foo + $ cat /tmp/foo + Hello @@ -4439,33 +4280,20 @@ over a network using the TELNET protocol. -tee +test, [ -Usage: tee [OPTION]... [FILE]... - - - - - -Copy standard input to each FILE, and also to standard output. - - - - - -Options: +Usage: test EXPRESSION or [ EXPRESSION ] - - -a append to the given FILEs, do not overwrite - +Checks file types and compares values returning an exit code determined by +the value of EXPRESSION. @@ -4478,9 +4306,18 @@ Example: - $ echo "Hello" | tee /tmp/foo - $ cat /tmp/foo - Hello + $ test 1 -eq 2 + $ echo $? + 1 + $ test 1 -eq 1 + $ echo $? + 0 + $ [ -d /etc ] + $ echo $? + 0 + $ [ -d /junk ] + $ echo $? + 1 @@ -4678,32 +4515,29 @@ Example: -uuencode +umount -Usage: uuencode [OPTION] [INFILE] REMOTEFILE - - - - - -Uuencode a file. +Usage: umount [flags] filesystem|directory -Options: +Flags: - -m use base64 encoding as of RFC1521 + -a: Unmount all file systems + -r: Try to remount devices as read-only if mount is busy + -f: Force filesystem umount (i.e. unreachable NFS server) + -l: Do not free loop device (if a loop device has been used) @@ -4717,12 +4551,7 @@ Example: - $ uuencode busybox busybox - begin 755 busybox - M?T5,1@$!`0````````````(``P`!````L+@$"#0```!0N@,``````#0`(``& - ..... - $ uudecode busybox busybox > busybox.uu - $ + $ umount /dev/hdc1 @@ -4735,19 +4564,19 @@ Example: -uudecode +uname -Usage: uudecode [OPTION] [FILE] +Usage: uname [OPTION]... -Uudecode a uuencoded file +Print certain system information. With no OPTION, same as -s. @@ -4760,7 +4589,13 @@ Options: - -o FILE direct output to FILE + -a print all information + -m the machine (hardware) type + -n print the machine's network node hostname + -r print the operating system release + -s print the operating system name + -p print the host processor type + -v print the operating system version @@ -4774,9 +4609,8 @@ Example: - $ uudecode -o busybox busybox.uu - $ ls -l busybox - -rwxr-xr-x 1 ams ams 245264 Jun 7 21:35 busybox + $ uname -a + Linux debian 2.2.15pre13 #5 Tue Mar 14 16:03:50 MST 2000 i686 unknown @@ -4789,30 +4623,20 @@ Example: -umount +uniq -Usage: umount [flags] filesystem|directory - - - - - -Flags: +Usage: uniq [OPTION]... [INPUT [OUTPUT]] - - -a: Unmount all file systems - -r: Try to remount devices as read-only if mount is busy - -f: Force filesystem umount (i.e. unreachable NFS server) - -l: Do not free loop device (if a loop device has been used) - +Discard all but one of successive identical lines from INPUT (or standard +input), writing to OUTPUT (or standard output). @@ -4825,7 +4649,10 @@ Example: - $ umount /dev/hdc1 + $ echo -e "a\na\nb\nc\nc\na" | sort | uniq + a + b + c @@ -4838,19 +4665,19 @@ Example: -uname +update -Usage: uname [OPTION]... +Usage: update [options] -Print certain system information. With no OPTION, same as -s. +Periodically flushes filesystem buffers. @@ -4863,28 +4690,9 @@ Options: - -a print all information - -m the machine (hardware) type - -n print the machine's network node hostname - -r print the operating system release - -s print the operating system name - -p print the host processor type - -v print the operating system version - - - - - - -Example: - - - - - - - $ uname -a - Linux debian 2.2.15pre13 #5 Tue Mar 14 16:03:50 MST 2000 i686 unknown + -S force use of sync(2) instead of flushing + -s SECS call sync this often (default 30) + -f SECS flush some buffers this often (default 5) @@ -4897,20 +4705,19 @@ Example: -uniq +uptime -Usage: uniq [OPTION]... [INPUT [OUTPUT]] +Usage: uptime -Discard all but one of successive identical lines from INPUT (or standard -input), writing to OUTPUT (or standard output). +Tells how long the system has been running since boot. @@ -4923,10 +4730,8 @@ Example: - $ echo -e "a\na\nb\nc\nc\na" | sort | uniq - a - b - c + $ uptime + 1:55pm up 2:30, load average: 0.09, 0.04, 0.00 @@ -4939,34 +4744,33 @@ Example: -update +usleep -Usage: update [options] +Usage: usleep N -Periodically flushes filesystem buffers. +Pauses for N microseconds. -Options: +Example: - -S force use of sync(2) instead of flushing - -s SECS call sync this often (default 30) - -f SECS flush some buffers this often (default 5) + $ usleep 1000000 + [pauses for 1 second] @@ -4979,19 +4783,33 @@ Options: -uptime +uudecode -Usage: uptime +Usage: uudecode [OPTION] [FILE] -Tells how long the system has been running since boot. +Uudecode a uuencoded file + + + + + +Options: + + + + + + + -o FILE direct output to FILE + @@ -5004,8 +4822,9 @@ Example: - $ uptime - 1:55pm up 2:30, load average: 0.09, 0.04, 0.00 + $ uudecode -o busybox busybox.uu + $ ls -l busybox + -rwxr-xr-x 1 ams ams 245264 Jun 7 21:35 busybox @@ -5018,19 +4837,33 @@ Example: -usleep +uuencode -Usage: usleep N +Usage: uuencode [OPTION] [INFILE] REMOTEFILE -Pauses for N microseconds. +Uuencode a file. + + + + + +Options: + + + + + + + -m use base64 encoding as of RFC1521 + @@ -5043,8 +4876,12 @@ Example: - $ usleep 1000000 - [pauses for 1 second] + $ uuencode busybox busybox + begin 755 busybox + M?T5,1@$!`0````````````(``P`!````L+@$"#0```!0N@,``````#0`(``& + ..... + $ uudecode busybox busybox > busybox.uu + $ -- 2.25.1