true, tty, umount, uname, uniq, unix2dos, update, uptime, usleep, uudecode,
uuencode, watchdog, wc, wget, which, whoami, xargs, yes, zcat, [
--------------------------------
-
=over 4
-
=item I<ar>
ar -[ovR]{ptx} archive filenames
Example:
-$ basename /usr/local/bin/foo
-foo
-$ basename /usr/local/bin/
-bin
-$ basename /foo/bar.txt .txt
-bar
+ $ basename /usr/local/bin/foo
+ foo
+ $ basename /usr/local/bin/
+ bin
+ $ basename /foo/bar.txt .txt
+ bar
-------------------------------
Example:
-$ cat /proc/uptime
-110716.72 17.67
+ $ cat /proc/uptime
+ 110716.72 17.67
-------------------------------
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
-
+ $ 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
-------------------------------
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
-
+ $ 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
-------------------------------
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
-
+ $ 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
-------------------------------
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*
-
+ $ 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*
-------------------------------
Example:
-$ echo Hello world | cut -f 1 -d ' '
-Hello
-$ echo Hello world | cut -f 2 -d ' '
-world
-
+ $ echo Hello world | cut -f 1 -d ' '
+ Hello
+ $ echo Hello world | cut -f 2 -d ' '
+ world
-------------------------------
Example:
-$ date
-Wed Apr 12 18:52:41 MDT 2000
-
+ $ date
+ Wed Apr 12 18:52:41 MDT 2000
-------------------------------
Example:
-$ dc 2 2 +
-4
-$ dc 8 8 * 2 2 + /
-16
-$ dc 0 1 and
-0
-$ dc 0 1 or
-1
-$ echo 72 9 div 8 mul | dc
-64
-
+ $ dc 2 2 +
+ 4
+ $ dc 8 8 * 2 2 + /
+ 16
+ $ dc 0 1 and
+ 0
+ $ dc 0 1 or
+ 1
+ $ echo 72 9 div 8 mul | dc
+ 64
-------------------------------
Example:
-$ dd if=/dev/zero of=/dev/ram1 bs=1M count=4
-4+0 records in
-4+0 records out
-
+ $ dd if=/dev/zero of=/dev/ram1 bs=1M count=4
+ 4+0 records in
+ 4+0 records out
-------------------------------
Example:
-$ df
-Filesystem 1k-blocks Used Available Use% Mounted on
-/dev/sda3 8690864 8553540 137324 98% /
-/dev/sda1 64216 36364 27852 57% /boot
-$ df /dev/sda3
-Filesystem 1k-blocks Used Available Use% Mounted on
-/dev/sda3 8690864 8553540 137324 98% /
-
+ $ df
+ Filesystem 1k-blocks Used Available Use% Mounted on
+ /dev/sda3 8690864 8553540 137324 98% /
+ /dev/sda1 64216 36364 27852 57% /boot
+ $ df /dev/sda3
+ Filesystem 1k-blocks Used Available Use% Mounted on
+ /dev/sda3 8690864 8553540 137324 98% /
-------------------------------
Example:
-$ dirname /tmp/foo
-/tmp
-$ dirname /tmp/foo/
-/tmp
-
+ $ dirname /tmp/foo
+ /tmp
+ $ dirname /tmp/foo/
+ /tmp
-------------------------------
Example:
-$ dpkg-deb -X ./busybox_0.48-1_i386.deb /tmp
-
+ $ dpkg-deb -X ./busybox_0.48-1_i386.deb /tmp
-------------------------------
Example:
-$ du
-16 ./CVS
-12 ./kernel-patches/CVS
-80 ./kernel-patches
-12 ./tests/CVS
-36 ./tests
-12 ./scripts/CVS
-16 ./scripts
-12 ./docs/CVS
-104 ./docs
-2417 .
-
+ $ du
+ 16 ./CVS
+ 12 ./kernel-patches/CVS
+ 80 ./kernel-patches
+ 12 ./tests/CVS
+ 36 ./tests
+ 12 ./scripts/CVS
+ 16 ./scripts
+ 12 ./docs/CVS
+ 104 ./docs
+ 2417 .
-------------------------------
Example:
-$ dumpkmap > keymap
-
+ $ dumpkmap > keymap
-------------------------------
Example:
-$ dutmp /var/run/utmp
-8|7||si|||0|0|0|955637625|760097|0
-2|0|~|~~|reboot||0|0|0|955637625|782235|0
-1|20020|~|~~|runlevel||0|0|0|955637625|800089|0
-8|125||l4|||0|0|0|955637629|998367|0
-6|245|tty1|1|LOGIN||0|0|0|955637630|998974|0
-6|246|tty2|2|LOGIN||0|0|0|955637630|999498|0
-7|336|pts/0|vt00andersen|andersen|:0.0|0|0|0|955637763|0|0
-
+ $ dutmp /var/run/utmp
+ 8|7||si|||0|0|0|955637625|760097|0
+ 2|0|~|~~|reboot||0|0|0|955637625|782235|0
+ 1|20020|~|~~|runlevel||0|0|0|955637625|800089|0
+ 8|125||l4|||0|0|0|955637629|998367|0
+ 6|245|tty1|1|LOGIN||0|0|0|955637630|998974|0
+ 6|246|tty2|2|LOGIN||0|0|0|955637630|999498|0
+ 7|336|pts/0|vt00andersen|andersen|:0.0|0|0|0|955637763|0|0
-------------------------------
Example:
-$ echo Erik is cool
-Erik is cool
-$ echo -e Erik
-is
-cool
-Erik
-is
-cool
-$ echo Erik
-is
-cool
-Erik
-is
-cool
-
-
--------------------------------
-
-=item I<egrep>
-
-egrep
-
-
+ $ echo Erik is cool
+ Erik is cool
+ $ echo -e Erik
+ is
+ cool
+ Erik
+ is
+ cool
+ $ echo Erik
+ is
+ cool
+ Erik
+ is
+ cool
-------------------------------
Example:
-$ false
-$ echo $?
-1
-
+ $ false
+ $ echo $?
+ 1
-------------------------------
Example:
-$ fbset
-mode 1024x768-76
- geometry 1024 768 1024 768 16
- timings 12714 128 32 16 4 128 4
- accel false
- rgba 5/11,6/5,5/0,0/0
-endmode
-
+ $ fbset
+ mode 1024x768-76
+ geometry 1024 768 1024 768 16
+ timings 12714 128 32 16 4 128 4
+ accel false
+ rgba 5/11,6/5,5/0,0/0
+ endmode
-------------------------------
Example:
-$ find / -name /etc/passwd
-/etc/passwd
-
+ $ find / -name /etc/passwd
+ /etc/passwd
-------------------------------
Example:
-$ free
- total used free shared buffers
- Mem: 257628 248724 8904 59644 93124
- Swap: 128516 8404 120112
-Total: 386144 257128 129016
-
+ $ free
+ total used free shared buffers
+ Mem: 257628 248724 8904 59644 93124
+ Swap: 128516 8404 120112
+ Total: 386144 257128 129016
+
-------------------------------
Example:
-$ freeramdisk /dev/ram2
-
+ $ freeramdisk /dev/ram2
-------------------------------
Example:
-$ cat getopt.test
-GETOPT=`getopt -o ab:c:: --long a-long,b-long:,c-long:: \
- -n 'example.busybox' -- $@`
-if [ $? != 0 ] ; then exit 1 ; fi
-eval set -- $GETOPT
-while true ; do
- case $1 in
- -a|--a-long) echo Option a ; shift ;;
- -b|--b-long) echo Option b, argument `$2' ; shift 2 ;;
- -c|--c-long)
- case $2 in
- \) echo Option c, no argument; shift 2 ;;
- *) echo Option c, argument `$2' ; shift 2 ;;
- esac ;;
- --) shift ; break ;;
- *) echo Internal error! ; exit 1 ;;
- esac
-done
-
+ $ cat getopt.test
+ GETOPT=`getopt -o ab:c:: --long a-long,b-long:,c-long:: \
+ -n 'example.busybox' -- $@`
+ if [ $? != 0 ] ; then exit 1 ; fi
+ eval set -- $GETOPT
+ while true ; do
+ case $1 in
+ -a|--a-long) echo Option a ; shift ;;
+ -b|--b-long) echo Option b, argument `$2' ; shift 2 ;;
+ -c|--c-long)
+ case $2 in
+ \) echo Option c, no argument; shift 2 ;;
+ *) echo Option c, argument `$2' ; shift 2 ;;
+ esac ;;
+ --) shift ; break ;;
+ *) echo Internal error! ; exit 1 ;;
+ esac
+ done
-------------------------------
Example:
-$ grep root /etc/passwd
-root:x:0:0:root:/root:/bin/bash
-$ grep ^[rR]oo. /etc/passwd
-root:x:0:0:root:/root:/bin/bash
-
+ $ grep root /etc/passwd
+ root:x:0:0:root:/root:/bin/bash
+ $ grep ^[rR]oo. /etc/passwd
+ root:x:0:0:root:/root:/bin/bash
-------------------------------
Example:
-$ ls -la /tmp/BusyBox*
--rw-rw-r-- 1 andersen andersen 557009 Apr 11 10:55 /tmp/BusyBox-0.43.tar.gz
-$ gunzip /tmp/BusyBox-0.43.tar.gz
-$ ls -la /tmp/BusyBox*
--rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/BusyBox-0.43.tar
-
+ $ ls -la /tmp/BusyBox*
+ -rw-rw-r-- 1 andersen andersen 557009 Apr 11 10:55 /tmp/BusyBox-0.43.tar.gz
+ $ gunzip /tmp/BusyBox-0.43.tar.gz
+ $ ls -la /tmp/BusyBox*
+ -rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/BusyBox-0.43.tar
-------------------------------
Example:
-$ ls -la /tmp/BusyBox*
--rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/BusyBox-0.43.tar
-$ gzip /tmp/BusyBox-0.43.tar
-$ ls -la /tmp/BusyBox*
--rw-rw-r-- 1 andersen andersen 554058 Apr 14 17:49 /tmp/BusyBox-0.43.tar.gz
-
+ $ ls -la /tmp/BusyBox*
+ -rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/BusyBox-0.43.tar
+ $ gzip /tmp/BusyBox-0.43.tar
+ $ ls -la /tmp/BusyBox*
+ -rw-rw-r-- 1 andersen andersen 554058 Apr 14 17:49 /tmp/BusyBox-0.43.tar.gz
-------------------------------
Example:
-$ head -n 2 /etc/passwd
-root:x:0:0:root:/root:/bin/bash
-daemon:x:1:1:daemon:/usr/sbin:/bin/sh
-
+ $ head -n 2 /etc/passwd
+ root:x:0:0:root:/root:/bin/bash
+ daemon:x:1:1:daemon:/usr/sbin:/bin/sh
-------------------------------
Example:
-$ hostname
-slag
-
+ $ hostname
+ slag
-------------------------------
Example:
-$ id
-uid=1000(andersen) gid=1000(andersen)
-
+ $ id
+ uid=1000(andersen) gid=1000(andersen)
-------------------------------
Example:
-$ ps | grep apache
-252 root root S [apache]
-263 www-data www-data S [apache]
-264 www-data www-data S [apache]
-265 www-data www-data S [apache]
-266 www-data www-data S [apache]
-267 www-data www-data S [apache]
-$ kill 252
-
+ $ ps | grep apache
+ 252 root root S [apache]
+ 263 www-data www-data S [apache]
+ 264 www-data www-data S [apache]
+ 265 www-data www-data S [apache]
+ 266 www-data www-data S [apache]
+ 267 www-data www-data S [apache]
+ $ kill 252
-------------------------------
Example:
-$ killall apache
-
+ $ killall apache
+
-------------------------------
Example:
-$ length Hello
-5
-
+ $ length Hello
+ 5
-------------------------------
Example:
-$ ln -s BusyBox /tmp/ls
-$ ls -l /tmp/ls
-lrwxrwxrwx 1 root root 7 Apr 12 18:39 ls -> BusyBox*
-
+ $ ln -s BusyBox /tmp/ls
+ $ ls -l /tmp/ls
+ lrwxrwxrwx 1 root root 7 Apr 12 18:39 ls -> BusyBox*
+
-------------------------------
Example:
-$ loadacm < /etc/i18n/acmname
-
+ $ loadacm < /etc/i18n/acmname
+
-------------------------------
Example:
-$ loadfont < /etc/i18n/fontname
-
+ $ loadfont < /etc/i18n/fontname
+
-------------------------------
Example:
-$ loadkmap < /etc/i18n/lang-keymap
-
+ $ loadkmap < /etc/i18n/lang-keymap
+
-------------------------------
Example:
-$ logger hello
-
+ $ logger hello
+
-------------------------------
Example:
-$ logname
-root
-
+ $ logname
+ root
+
-------------------------------
Example:
-$ makedevs /dev/ttyS c 4 66 2 63
-[creates ttyS2-ttyS63]
-$ makedevs /dev/hda b 3 0 0 8 s
-[creates hda,hda1-hda8]
-
+ $ makedevs /dev/ttyS c 4 66 2 63
+ [creates ttyS2-ttyS63]
+ $ makedevs /dev/hda b 3 0 0 8 s
+ [creates hda,hda1-hda8]
+
-------------------------------
Example:
-$ md5sum < busybox
-6fd11e98b98a58f64ff3398d7b324003
-$ md5sum busybox
-6fd11e98b98a58f64ff3398d7b324003 busybox
-$ md5sum -c -
-6fd11e98b98a58f64ff3398d7b324003 busybox
-busybox: OK
-^D
-
+ $ md5sum < busybox
+ 6fd11e98b98a58f64ff3398d7b324003
+ $ md5sum busybox
+ 6fd11e98b98a58f64ff3398d7b324003 busybox
+ $ md5sum -c -
+ 6fd11e98b98a58f64ff3398d7b324003 busybox
+ busybox: OK
+ ^D
-------------------------------
Example:
-$ mkdir /tmp/foo
-$ mkdir /tmp/foo
-/tmp/foo: File exists
-$ mkdir /tmp/foo/bar/baz
-/tmp/foo/bar/baz: No such file or directory
-$ mkdir -p /tmp/foo/bar/baz
-
+ $ mkdir /tmp/foo
+ $ mkdir /tmp/foo
+ /tmp/foo: File exists
+ $ mkdir /tmp/foo/bar/baz
+ /tmp/foo/bar/baz: No such file or directory
+ $ mkdir -p /tmp/foo/bar/baz
+
-------------------------------
Example:
-$ mknod /dev/fd0 b 2 0
-$ mknod -m 644 /tmp/pipe p
-
+ $ mknod /dev/fd0 b 2 0
+ $ mknod -m 644 /tmp/pipe p
+
-------------------------------
Example:
-$ mktemp /tmp/temp.XXXXXX
-/tmp/temp.mWiLjM
-$ ls -la /tmp/temp.mWiLjM
--rw------- 1 andersen andersen 0 Apr 25 17:10 /tmp/temp.mWiLjM
-
+ $ mktemp /tmp/temp.XXXXXX
+ /tmp/temp.mWiLjM
+ $ ls -la /tmp/temp.mWiLjM
+ -rw------- 1 andersen andersen 0 Apr 25 17:10 /tmp/temp.mWiLjM
+
-------------------------------
Example:
-$ dmesg | more
-
+ $ dmesg | more
+
-------------------------------
Example:
-$ mount
-/dev/hda3 on / type minix (rw)
-proc on /proc type proc (rw)
-devpts on /dev/pts type devpts (rw)
-$ mount /dev/fd0 /mnt -t msdos -o ro
-$ mount /tmp/diskimage /opt -t ext2 -o loop
-
+ $ mount
+ /dev/hda3 on / type minix (rw)
+ proc on /proc type proc (rw)
+ devpts on /dev/pts type devpts (rw)
+ $ mount /dev/fd0 /mnt -t msdos -o ro
+ $ mount /tmp/diskimage /opt -t ext2 -o loop
+
-------------------------------
Example:
-$ mv /tmp/foo /bin/bar
-
+ $ mv /tmp/foo /bin/bar
+
-------------------------------
Example:
-$ nc foobar.somedomain.com 25
-220 foobar ESMTP Exim 3.12 help
-214-Commands supported:
-214- HELO EHLO MAIL RCPT DATA AUTH
-214 NOOP QUIT RSET HELP
-quit
-221 foobar closing connection
-
+ $ nc foobar.somedomain.com 25
+ 220 foobar ESMTP Exim 3.12 help
+ 214-Commands supported:
+ 214- HELO EHLO MAIL RCPT DATA AUTH
+ 214 NOOP QUIT RSET HELP
+ quit
+ 221 foobar closing connection
+
-------------------------------
Example:
-$ nslookup localhost
-Server: default
-Address: default
-
-Name: debian
-Address: 127.0.0.1
-
+ $ nslookup localhost
+ Server: default
+ Address: default
+
+ Name: debian
+ Address: 127.0.0.1
+
-------------------------------
Example:
-$ ping localhost
-PING slag (127.0.0.1): 56 data bytes
-64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=20.1 ms
-
---- debian ping statistics ---
-1 packets transmitted, 1 packets received, 0% packet loss
-round-trip min/avg/max = 20.1/20.1/20.1 ms
-
+ $ ping localhost
+ PING slag (127.0.0.1): 56 data bytes
+ 64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=20.1 ms
+
+ --- debian ping statistics ---
+ 1 packets transmitted, 1 packets received, 0% packet loss
+ round-trip min/avg/max = 20.1/20.1/20.1 ms
+
-------------------------------
Example:
-$ printf Val=%d
- 5
-Val=5
-
+ $ printf Val=%d
+ 5
+ Val=5
+
-------------------------------
Example:
-$ ps
- PID Uid Gid State Command
- 1 root root S init
- 2 root root S [kflushd]
- 3 root root S [kupdate]
- 4 root root S [kpiod]
- 5 root root S [kswapd]
- 742 andersen andersen S [bash]
- 743 andersen andersen S -bash
- 745 root root S [getty]
- 2990 andersen andersen R ps
-
+ $ ps
+ PID Uid Gid State Command
+ 1 root root S init
+ 2 root root S [kflushd]
+ 3 root root S [kupdate]
+ 4 root root S [kpiod]
+ 5 root root S [kswapd]
+ 742 andersen andersen S [bash]
+ 743 andersen andersen S -bash
+ 745 root root S [getty]
+ 2990 andersen andersen R ps
-------------------------------
Example:
-$ pwd
-/root
-
+ $ pwd
+ /root
-------------------------------
Example:
-$ rm -rf /tmp/foo
-
+ $ rm -rf /tmp/foo
-------------------------------
Example:
-$ rmmod tulip
-
+ $ rmmod tulip
-------------------------------
Example:
-$ echo foo | sed -e 's/f[a-zA-Z]o/bar/g'
-bar
-
+ $ echo foo | sed -e 's/f[a-zA-Z]o/bar/g'
+ bar
-------------------------------
Example:
-$ setkeycodes e030 127
-
+ $ setkeycodes e030 127
-------------------------------
Example:
-$ sleep 2
-[2 second delay results]
-
+ $ sleep 2
+ [2 second delay results]
-------------------------------
Example:
-$ echo -e e
-f
-b
-d
-c
-a | sort
-a
-b
-c
-d
-e
-f
-
+ $ echo -e e
+ f
+ b
+ d
+ c
+ a | sort
+ a
+ b
+ c
+ d
+ e
+ f
-------------------------------
Example:
-$ syslogd -R masterlog:514
-$ syslogd -R 192.168.1.1:601
-
+ $ syslogd -R masterlog:514
+ $ syslogd -R 192.168.1.1:601
-------------------------------
-s SEC wait SEC seconds between reads with -f
-v always output headers giving file names
-If the first character of N (bytes or lines) is a `+', output begins with
+If the first character of N (bytes or lines) is a '+', output begins with
the Nth item from the start of each file, otherwise, print the last N items
in the file. N bytes may be suffixed by k (x1024), b (x512), or m (1024^2).
Example:
-$ tail -n 1 /etc/resolv.conf
-nameserver 10.0.0.1
-
+ $ tail -n 1 /etc/resolv.conf
+ nameserver 10.0.0.1
-------------------------------
Example:
-$ zcat /tmp/tarball.tar.gz | tar -xf -
-$ tar -cf /tmp/tarball.tar /usr/local
-
+ $ zcat /tmp/tarball.tar.gz | tar -xf -
+ $ tar -cf /tmp/tarball.tar /usr/local
-------------------------------
Example:
-$ echo Hello | tee /tmp/foo
-$ cat /tmp/foo
-Hello
-
+ $ echo Hello | tee /tmp/foo
+ $ cat /tmp/foo
+ Hello
-------------------------------
Example:
-$ test 1 -eq 2
-$ echo $?
-1
-$ test 1 -eq 1
-$ echo $?
-0
-$ [ -d /etc ]
-$ echo $?
-0
-$ [ -d /junk ]
-$ echo $?
-1
-
+ $ test 1 -eq 2
+ $ echo $?
+ 1
+ $ test 1 -eq 1
+ $ echo $?
+ 0
+ $ [ -d /etc ]
+ $ echo $?
+ 0
+ $ [ -d /junk ]
+ $ echo $?
+ 1
-------------------------------
Example:
-$ ls -l /tmp/foo
-/bin/ls: /tmp/foo: No such file or directory
-$ touch /tmp/foo
-$ ls -l /tmp/foo
--rw-rw-r-- 1 andersen andersen 0 Apr 15 01:11 /tmp/foo
-
+ $ ls -l /tmp/foo
+ /bin/ls: /tmp/foo: No such file or directory
+ $ touch /tmp/foo
+ $ ls -l /tmp/foo
+ -rw-rw-r-- 1 andersen andersen 0 Apr 15 01:11 /tmp/foo
+
-------------------------------
Example:
-$ echo gdkkn vnqkc | tr [a-y] [b-z]
-hello world
-
+ $ echo gdkkn vnqkc | tr [a-y] [b-z]
+ hello world
+
-------------------------------
Example:
-$ true
-$ echo $?
-0
-
+ $ true
+ $ echo $?
+ 0
-------------------------------
Example:
-$ tty
-/dev/tty2
-
+ $ tty
+ /dev/tty2
-------------------------------
Example:
-$ umount /dev/hdc1
-
+ $ umount /dev/hdc1
-------------------------------
Example:
-$ uname -a
-Linux debian 2.2.15pre13
+ $ uname -a
+ Linux debian 2.2.15pre13
-------------------------------
Example:
-$ echo -e a
-a
-b
-c
-c
-a | sort | uniq
-a
-b
-c
-
+ $ echo -e a
+ a
+ b
+ c
+ c
+ a | sort | uniq
+ a
+ b
+ c
-------------------------------
Example:
-$ uptime
- 1:55pm up 2:30, load average: 0.09, 0.04, 0.00
-
+ $ uptime
+ 1:55pm up 2:30, load average: 0.09, 0.04, 0.00
+
-------------------------------
Example:
-$ usleep 1000000
-[pauses for 1 second]
-
+ $ usleep 1000000
+ [pauses for 1 second]
-------------------------------
Example:
-$ uuencode busybox busybox
-begin 755 busybox
-M?T5,1@$!`0````````````(``P`!````L+@$.....
-$ uudecode busybox busybox > busybox.uu
-$
-
+ $ uuencode busybox busybox
+ begin 755 busybox
+ <encoded file snipped>
+ $ uudecode busybox busybox > busybox.uu
+ $
-------------------------------
Example:
-$ wc /etc/passwd
- 31 46 1365 /etc/passwd
-
+ $ wc /etc/passwd
+ 31 46 1365 /etc/passwd
+
-------------------------------
Example:
-$ which login
-/bin/login
-
+ $ which login
+ /bin/login
-------------------------------
Example:
-$ ls | xargs gzip
-$ find . -name '*.c' -print | xargs rm
-
+ $ ls | xargs gzip
+ $ find . -name '*.c' -print | xargs rm
+
-------------------------------
yes [OPTION]... [STRING]...
-Repeatedly outputs a line with all specified STRING(s), or `y'.
+Repeatedly outputs a line with all specified STRING(s), or 'y'.
-------------------------------
=cut
-# $Id: busybox.pod,v 1.90 2001/03/15 18:14:25 andersen Exp $
+# $Id: busybox.pod,v 1.91 2001/03/15 21:08:01 beppu Exp $