diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-07-07 05:04:24 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-07-07 05:04:24 +0000 |
commit | b9eb0233a9d257ce5311d0557ccb4432e836f088 (patch) | |
tree | 6c2914dfab80f89192317843d4a0cf1fa955ec64 | |
parent | b0b732bfe45a5c16d7031851f056b4138074db64 (diff) | |
download | busybox-w32-b9eb0233a9d257ce5311d0557ccb4432e836f088.tar.gz busybox-w32-b9eb0233a9d257ce5311d0557ccb4432e836f088.tar.bz2 busybox-w32-b9eb0233a9d257ce5311d0557ccb4432e836f088.zip |
Yet another busybox documentation update from Matt Kraai <kraai@alumni.carnegiemellon.edu>
-Erik
-rw-r--r-- | docs/busybox.sgml | 1077 |
1 files changed, 415 insertions, 662 deletions
diff --git a/docs/busybox.sgml b/docs/busybox.sgml index 8ba31c0de..e0e023410 100644 --- a/docs/busybox.sgml +++ b/docs/busybox.sgml | |||
@@ -1841,765 +1841,518 @@ | |||
1841 | </para> | 1841 | </para> |
1842 | </sect1> | 1842 | </sect1> |
1843 | 1843 | ||
1844 | <!-- This is where I have stopped formatting stuff --> | 1844 | <sect1 id="md5sum"> |
1845 | <varlistentry><term><emphasis>md5sum | 1845 | <title>md5sum</title> |
1846 | |||
1847 | </emphasis></term> | ||
1848 | <listitem><para></para> | ||
1849 | |||
1850 | <para> | ||
1851 | Usage: md5sum [OPTION] [file ...] | ||
1852 | |||
1853 | |||
1854 | </para> | ||
1855 | |||
1856 | <para> | ||
1857 | Print or check MD5 checksums. | ||
1858 | |||
1859 | |||
1860 | </para> | ||
1861 | |||
1862 | <para> | ||
1863 | Options: | ||
1864 | |||
1865 | |||
1866 | </para> | ||
1867 | |||
1868 | <para> | ||
1869 | <screen> | ||
1870 | -b read files in binary mode | ||
1871 | -c check MD5 sums against given list | ||
1872 | -t read files in text mode (default) | ||
1873 | -g read a string | ||
1874 | </screen> | ||
1875 | |||
1876 | |||
1877 | </para> | ||
1878 | |||
1879 | <para> | ||
1880 | The following two options are useful only when verifying checksums: | ||
1881 | |||
1882 | |||
1883 | </para> | ||
1884 | |||
1885 | <para> | ||
1886 | <screen> | ||
1887 | -s don't output anything, status code shows success | ||
1888 | -w warn about improperly formated MD5 checksum lines | ||
1889 | </screen> | ||
1890 | |||
1891 | |||
1892 | </para> | ||
1893 | |||
1894 | <para> | ||
1895 | Example: | ||
1896 | |||
1897 | |||
1898 | </para> | ||
1899 | |||
1900 | <para> | ||
1901 | <screen> | ||
1902 | $ md5sum busybox | ||
1903 | 6fd11e98b98a58f64ff3398d7b324003 busybox | ||
1904 | $ md5sum -c - | ||
1905 | 6fd11e98b98a58f64ff3398d7b324003 busybox | ||
1906 | busybox: OK | ||
1907 | ^D | ||
1908 | </screen> | ||
1909 | |||
1910 | |||
1911 | </para> | ||
1912 | |||
1913 | <para> | ||
1914 | ------------------------------- | ||
1915 | |||
1916 | |||
1917 | </para> | ||
1918 | |||
1919 | </listitem></varlistentry> | ||
1920 | <varlistentry><term><emphasis>mkdir | ||
1921 | |||
1922 | </emphasis></term> | ||
1923 | <listitem><para></para> | ||
1924 | |||
1925 | <para> | ||
1926 | Usage: mkdir [OPTION] DIRECTORY... | ||
1927 | |||
1928 | |||
1929 | </para> | ||
1930 | |||
1931 | <para> | ||
1932 | Create the <literal>DIRECTORY(ies),</literal> if they do not already exist | ||
1933 | |||
1934 | |||
1935 | </para> | ||
1936 | |||
1937 | <para> | ||
1938 | Options: | ||
1939 | |||
1940 | |||
1941 | </para> | ||
1942 | |||
1943 | <para> | ||
1944 | <screen> | ||
1945 | -m set permission mode (as in chmod), not rwxrwxrwx - umask | ||
1946 | -p no error if directory exists, make parent directories as needed | ||
1947 | </screen> | ||
1948 | |||
1949 | |||
1950 | </para> | ||
1951 | |||
1952 | <para> | ||
1953 | Example: | ||
1954 | |||
1955 | |||
1956 | </para> | ||
1957 | |||
1958 | <para> | ||
1959 | <screen> | ||
1960 | $ mkdir /tmp/foo | ||
1961 | $ mkdir /tmp/foo | ||
1962 | /tmp/foo: File exists | ||
1963 | $ mkdir /tmp/foo/bar/baz | ||
1964 | /tmp/foo/bar/baz: No such file or directory | ||
1965 | $ mkdir -p /tmp/foo/bar/baz | ||
1966 | </screen> | ||
1967 | |||
1968 | |||
1969 | </para> | ||
1970 | |||
1971 | <para> | ||
1972 | ------------------------------- | ||
1973 | |||
1974 | |||
1975 | </para> | ||
1976 | |||
1977 | </listitem></varlistentry> | ||
1978 | <varlistentry><term><emphasis>mkfifo | ||
1979 | |||
1980 | </emphasis></term> | ||
1981 | <listitem><para></para> | ||
1982 | |||
1983 | <para> | ||
1984 | Usage: mkfifo [OPTIONS] name | ||
1985 | |||
1986 | |||
1987 | </para> | ||
1988 | |||
1989 | <para> | ||
1990 | Creates a named pipe (identical to 'mknod name p') | ||
1991 | |||
1992 | |||
1993 | </para> | ||
1994 | |||
1995 | <para> | ||
1996 | Options: | ||
1997 | |||
1998 | |||
1999 | </para> | ||
2000 | |||
2001 | <para> | ||
2002 | <screen> | ||
2003 | -m create the pipe using the specified mode (default a=rw) | ||
2004 | </screen> | ||
2005 | |||
2006 | |||
2007 | </para> | ||
2008 | |||
2009 | <para> | ||
2010 | ------------------------------- | ||
2011 | |||
2012 | |||
2013 | </para> | ||
2014 | |||
2015 | </listitem></varlistentry> | ||
2016 | <varlistentry><term><emphasis>mkfs.minix | ||
2017 | |||
2018 | </emphasis></term> | ||
2019 | <listitem><para></para> | ||
2020 | |||
2021 | <para> | ||
2022 | Usage: mkfs.minix [<emphasis>-c</emphasis> | <emphasis>-l</emphasis> filename] [<emphasis>-nXX</emphasis>] [<emphasis>-iXX</emphasis>] /dev/name [blocks] | ||
2023 | |||
2024 | |||
2025 | </para> | ||
2026 | |||
2027 | <para> | ||
2028 | Make a MINIX filesystem. | ||
2029 | |||
2030 | |||
2031 | </para> | ||
2032 | |||
2033 | <para> | ||
2034 | OPTIONS: | ||
2035 | |||
2036 | |||
2037 | </para> | ||
2038 | |||
2039 | <para> | ||
2040 | <screen> | ||
2041 | -c Check the device for bad blocks | ||
2042 | -n [14|30] Specify the maximum length of filenames | ||
2043 | -i Specify the number of inodes for the filesystem | ||
2044 | -l FILENAME Read the bad blocks list from FILENAME | ||
2045 | -v Make a Minix version 2 filesystem | ||
2046 | </screen> | ||
2047 | |||
2048 | |||
2049 | </para> | ||
2050 | |||
2051 | <para> | ||
2052 | ------------------------------- | ||
2053 | |||
2054 | |||
2055 | </para> | ||
2056 | |||
2057 | </listitem></varlistentry> | ||
2058 | <varlistentry><term><emphasis>mknod | ||
2059 | |||
2060 | </emphasis></term> | ||
2061 | <listitem><para></para> | ||
2062 | |||
2063 | <para> | ||
2064 | Usage: mknod [OPTIONS] NAME TYPE MAJOR MINOR | ||
2065 | |||
2066 | |||
2067 | </para> | ||
2068 | |||
2069 | <para> | ||
2070 | Create a special file (block, character, or pipe). | ||
2071 | |||
2072 | |||
2073 | </para> | ||
2074 | |||
2075 | <para> | ||
2076 | Options: | ||
2077 | |||
2078 | |||
2079 | </para> | ||
2080 | |||
2081 | <para> | ||
2082 | <screen> | ||
2083 | -m create the special file using the specified mode (default a=rw) | ||
2084 | </screen> | ||
2085 | |||
2086 | |||
2087 | </para> | ||
2088 | |||
2089 | <para> | ||
2090 | TYPEs include: b: Make a block (buffered) device. c or u: Make a character | ||
2091 | (un-buffered) device. p: Make a named pipe. MAJOR and MINOR are ignored for | ||
2092 | named pipes. | ||
2093 | |||
2094 | |||
2095 | </para> | ||
2096 | |||
2097 | <para> | ||
2098 | Example: | ||
2099 | |||
2100 | |||
2101 | </para> | ||
2102 | |||
2103 | <para> | ||
2104 | <screen> | ||
2105 | $ mknod /dev/fd0 b 2 0 | ||
2106 | $ mknod -m 644 /tmp/pipe p | ||
2107 | </screen> | ||
2108 | |||
2109 | |||
2110 | </para> | ||
2111 | |||
2112 | <para> | ||
2113 | ------------------------------- | ||
2114 | |||
2115 | |||
2116 | </para> | ||
2117 | |||
2118 | </listitem></varlistentry> | ||
2119 | <varlistentry><term><emphasis>mkswap | ||
2120 | |||
2121 | </emphasis></term> | ||
2122 | <listitem><para></para> | ||
2123 | |||
2124 | <para> | ||
2125 | Usage: mkswap [<emphasis>-c</emphasis>] [<emphasis>-v0</emphasis>|<emphasis>-v1</emphasis>] device [block-count] | ||
2126 | |||
2127 | |||
2128 | </para> | ||
2129 | |||
2130 | <para> | ||
2131 | Prepare a disk partition to be used as a swap partition. | ||
2132 | |||
2133 | |||
2134 | </para> | ||
2135 | |||
2136 | <para> | ||
2137 | Options: | ||
2138 | |||
2139 | |||
2140 | </para> | ||
2141 | |||
2142 | <para> | ||
2143 | <screen> | ||
2144 | -c Check for read-ability. | ||
2145 | -v0 Make version 0 swap [max 128 Megs]. | ||
2146 | -v1 Make version 1 swap [big!] (default for kernels > 2.1.117). | ||
2147 | block-count Number of block to use (default is entire partition). | ||
2148 | </screen> | ||
2149 | |||
2150 | |||
2151 | </para> | ||
2152 | |||
2153 | <para> | ||
2154 | ------------------------------- | ||
2155 | |||
2156 | |||
2157 | </para> | ||
2158 | |||
2159 | </listitem></varlistentry> | ||
2160 | <varlistentry><term><emphasis>mktemp | ||
2161 | |||
2162 | </emphasis></term> | ||
2163 | <listitem><para></para> | ||
2164 | |||
2165 | <para> | ||
2166 | Usage: mktemp [<emphasis>-q</emphasis>] TEMPLATE | ||
2167 | |||
2168 | |||
2169 | </para> | ||
2170 | |||
2171 | <para> | ||
2172 | Creates a temporary file with its name based on TEMPLATE. TEMPLATE is any | ||
2173 | name with six `Xs' (i.e. /tmp/temp.XXXXXX). | ||
2174 | |||
2175 | |||
2176 | </para> | ||
2177 | |||
2178 | <para> | ||
2179 | Example: | ||
2180 | |||
2181 | |||
2182 | </para> | ||
2183 | |||
2184 | <para> | ||
2185 | <screen> | ||
2186 | $ mktemp /tmp/temp.XXXXXX | ||
2187 | /tmp/temp.mWiLjM | ||
2188 | $ ls -la /tmp/temp.mWiLjM | ||
2189 | -rw------- 1 andersen andersen 0 Apr 25 17:10 /tmp/temp.mWiLjM | ||
2190 | </screen> | ||
2191 | |||
2192 | |||
2193 | </para> | ||
2194 | |||
2195 | <para> | ||
2196 | ------------------------------- | ||
2197 | |||
2198 | |||
2199 | </para> | ||
2200 | |||
2201 | </listitem></varlistentry> | ||
2202 | <varlistentry><term><emphasis>more | ||
2203 | |||
2204 | </emphasis></term> | ||
2205 | <listitem><para></para> | ||
2206 | |||
2207 | <para> | ||
2208 | Usage: more [file ...] | ||
2209 | |||
2210 | |||
2211 | </para> | ||
2212 | |||
2213 | <para> | ||
2214 | More is a filter for paging through text one screenful at a time. | ||
2215 | |||
2216 | |||
2217 | </para> | ||
2218 | |||
2219 | <para> | ||
2220 | Example: | ||
2221 | |||
2222 | |||
2223 | </para> | ||
2224 | |||
2225 | <para> | ||
2226 | <screen> | ||
2227 | $ dmesg | more | ||
2228 | </screen> | ||
2229 | |||
2230 | |||
2231 | </para> | ||
2232 | |||
2233 | <para> | ||
2234 | ------------------------------- | ||
2235 | |||
2236 | |||
2237 | </para> | ||
2238 | |||
2239 | </listitem></varlistentry> | ||
2240 | <varlistentry><term><emphasis>mount | ||
2241 | |||
2242 | </emphasis></term> | ||
2243 | <listitem><para></para> | ||
2244 | |||
2245 | <para> | ||
2246 | Usage: mount [flags] mount [flags] device directory [<emphasis>-o</emphasis> options,more-options] | ||
2247 | |||
2248 | |||
2249 | </para> | ||
2250 | |||
2251 | <para> | ||
2252 | Flags: | ||
2253 | |||
2254 | |||
2255 | </para> | ||
2256 | |||
2257 | <para> | ||
2258 | <screen> | ||
2259 | -a: Mount all file systems in fstab. | ||
2260 | -o option: One of many filesystem options, listed below. | ||
2261 | -r: Mount the filesystem read-only. | ||
2262 | -t fs-type: Specify the filesystem type. | ||
2263 | -w: Mount for reading and writing (default). | ||
2264 | </screen> | ||
2265 | |||
2266 | |||
2267 | </para> | ||
2268 | |||
2269 | <para> | ||
2270 | Options for use with the ``<emphasis>-o</emphasis>'' flag: | ||
2271 | |||
2272 | |||
2273 | </para> | ||
2274 | |||
2275 | <para> | ||
2276 | <screen> | ||
2277 | async/sync: Writes are asynchronous / synchronous. | ||
2278 | atime/noatime: Enable / disable updates to inode access times. | ||
2279 | dev/nodev: Allow use of special device files / disallow them. | ||
2280 | exec/noexec: Allow use of executable files / disallow them. | ||
2281 | loop: Mounts a file via loop device. | ||
2282 | suid/nosuid: Allow set-user-id-root programs / disallow them. | ||
2283 | remount: Re-mount a currently-mounted filesystem, changing its flags. | ||
2284 | ro/rw: Mount for read-only / read-write. | ||
2285 | There are EVEN MORE flags that are specific to each filesystem. | ||
2286 | You'll have to see the written documentation for those. | ||
2287 | </screen> | ||
2288 | |||
2289 | |||
2290 | </para> | ||
2291 | |||
2292 | <para> | ||
2293 | Example: | ||
2294 | |||
2295 | |||
2296 | </para> | ||
2297 | |||
2298 | <para> | ||
2299 | <screen> | ||
2300 | $ mount | ||
2301 | /dev/hda3 on / type minix (rw) | ||
2302 | proc on /proc type proc (rw) | ||
2303 | devpts on /dev/pts type devpts (rw) | ||
2304 | $ mount /dev/fd0 /mnt -t msdos -o ro | ||
2305 | $ mount /tmp/diskimage /opt -t ext2 -o loop | ||
2306 | </screen> | ||
2307 | |||
2308 | |||
2309 | </para> | ||
2310 | |||
2311 | <para> | ||
2312 | ------------------------------- | ||
2313 | |||
2314 | |||
2315 | </para> | ||
2316 | |||
2317 | </listitem></varlistentry> | ||
2318 | <varlistentry><term><emphasis>mt | ||
2319 | |||
2320 | </emphasis></term> | ||
2321 | <listitem><para></para> | ||
2322 | |||
2323 | <para> | ||
2324 | Usage: mt [<emphasis>-f</emphasis> device] opcode value | ||
2325 | |||
2326 | |||
2327 | </para> | ||
2328 | |||
2329 | <para> | ||
2330 | Control magnetic tape drive operation | ||
2331 | |||
2332 | |||
2333 | </para> | ||
2334 | |||
2335 | <para> | ||
2336 | ------------------------------- | ||
2337 | |||
2338 | |||
2339 | </para> | ||
2340 | |||
2341 | </listitem></varlistentry> | ||
2342 | <varlistentry><term><emphasis>mv | ||
2343 | |||
2344 | </emphasis></term> | ||
2345 | <listitem><para></para> | ||
2346 | |||
2347 | <para> | ||
2348 | Usage: mv SOURCE DEST | ||
2349 | |||
2350 | |||
2351 | </para> | ||
2352 | 1846 | ||
2353 | <para> | 1847 | <para> |
2354 | <screen> | 1848 | Usage: md5sum [OPTION]... FILE... |
2355 | or: mv SOURCE... DIRECTORY | 1849 | </para> |
2356 | </screen> | ||
2357 | |||
2358 | |||
2359 | </para> | ||
2360 | 1850 | ||
2361 | <para> | 1851 | <para> |
2362 | Rename SOURCE to DEST, or move <literal>SOURCE(s)</literal> to DIRECTORY. | 1852 | Print or check MD5 checksums. |
1853 | </para> | ||
2363 | 1854 | ||
1855 | <para> | ||
1856 | Options: | ||
1857 | </para> | ||
2364 | 1858 | ||
2365 | </para> | 1859 | <para> |
1860 | <screen> | ||
1861 | -b Read files in binary mode | ||
1862 | -c Check MD5 sums against given list | ||
1863 | -t Read files in text mode (default) | ||
1864 | -g Read a string | ||
1865 | </screen> | ||
1866 | </para> | ||
2366 | 1867 | ||
2367 | <para> | 1868 | <para> |
2368 | Example: | 1869 | The following two options are useful only when verifying |
1870 | checksums: | ||
1871 | </para> | ||
2369 | 1872 | ||
1873 | <para> | ||
1874 | <screen> | ||
1875 | -s Don't output anything, status code shows success | ||
1876 | -w Warn about improperly formated MD5 checksum lines | ||
1877 | </screen> | ||
1878 | </para> | ||
2370 | 1879 | ||
2371 | </para> | 1880 | <para> |
1881 | Example: | ||
1882 | </para> | ||
2372 | 1883 | ||
2373 | <para> | 1884 | <para> |
2374 | <screen> | 1885 | <screen> |
2375 | $ mv /tmp/foo /bin/bar | 1886 | $ md5sum busybox |
2376 | </screen> | 1887 | 6fd11e98b98a58f64ff3398d7b324003 busybox |
1888 | $ md5sum -c | ||
1889 | 6fd11e98b98a58f64ff3398d7b324003 busybox | ||
1890 | 6fd11e98b98a58f64ff3398d7b324002 busybox | ||
1891 | md5sum: MD5 check failed for 'busybox' | ||
1892 | ^D | ||
1893 | </screen> | ||
1894 | </para> | ||
1895 | </sect1> | ||
2377 | 1896 | ||
1897 | <sect1 id="mkdir"> | ||
1898 | <title>mkdir</title> | ||
2378 | 1899 | ||
2379 | </para> | 1900 | <para> |
1901 | Usage: mkdir [OPTION]... DIRECTORY... | ||
1902 | </para> | ||
2380 | 1903 | ||
2381 | <para> | 1904 | <para> |
2382 | ------------------------------- | 1905 | Create the DIRECTORY(s), if they do not already exist. |
1906 | </para> | ||
2383 | 1907 | ||
1908 | <para> | ||
1909 | Options: | ||
1910 | </para> | ||
2384 | 1911 | ||
2385 | </para> | 1912 | <para> |
1913 | <screen> | ||
1914 | -m Set permission mode (as in chmod), not rwxrwxrwx - umask | ||
1915 | -p No error if directory exists, make parent directories as needed | ||
1916 | </screen> | ||
1917 | </para> | ||
2386 | 1918 | ||
2387 | </listitem></varlistentry> | 1919 | <para> |
2388 | <varlistentry><term><emphasis>nc | 1920 | Example: |
1921 | </para> | ||
2389 | 1922 | ||
2390 | </emphasis></term> | 1923 | <para> |
2391 | <listitem><para></para> | 1924 | <screen> |
1925 | $ mkdir /tmp/foo | ||
1926 | $ mkdir /tmp/foo | ||
1927 | /tmp/foo: File exists | ||
1928 | $ mkdir /tmp/foo/bar/baz | ||
1929 | /tmp/foo/bar/baz: No such file or directory | ||
1930 | $ mkdir -p /tmp/foo/bar/baz | ||
1931 | </screen> | ||
1932 | </para> | ||
1933 | </sect1> | ||
2392 | 1934 | ||
2393 | <para> | 1935 | <sect1 id="mkfifo"> |
2394 | Usage: nc [IP] [port] | 1936 | <title>mkfifo</title> |
2395 | 1937 | ||
1938 | <para> | ||
1939 | Usage: mkfifo [OPTION] NAME | ||
1940 | </para> | ||
2396 | 1941 | ||
2397 | </para> | 1942 | <para> |
1943 | Create a named pipe (identical to 'mknod NAME p'). | ||
1944 | </para> | ||
2398 | 1945 | ||
2399 | <para> | 1946 | <para> |
2400 | Netcat opens a pipe to IP:port | 1947 | Options: |
1948 | </para> | ||
2401 | 1949 | ||
1950 | <para> | ||
1951 | <screen> | ||
1952 | -m MODE Create the pipe using the specified mode (default a=rw) | ||
1953 | </screen> | ||
1954 | </para> | ||
1955 | </sect1> | ||
2402 | 1956 | ||
2403 | </para> | 1957 | <sect1 id="mkfs.minix"> |
1958 | <title>mkfs.minix</title> | ||
2404 | 1959 | ||
2405 | <para> | 1960 | <para> |
2406 | Example: | 1961 | Usage: mkfs.minix [OPTION]... NAME [BLOCKS] |
1962 | </para> | ||
2407 | 1963 | ||
1964 | <para> | ||
1965 | Make a MINIX filesystem. | ||
1966 | </para> | ||
2408 | 1967 | ||
2409 | </para> | 1968 | <para> |
1969 | Options: | ||
1970 | </para> | ||
2410 | 1971 | ||
2411 | <para> | 1972 | <para> |
2412 | <screen> | 1973 | <screen> |
2413 | $ nc foobar.somedomain.com 25 | 1974 | -c Check the device for bad blocks |
2414 | 220 foobar ESMTP Exim 3.12 #1 Sat, 15 Apr 2000 00:03:02 -0600 | 1975 | -n [14|30] Specify the maximum length of filenames |
2415 | help | 1976 | -i Specify the number of inodes for the filesystem |
2416 | 214-Commands supported: | 1977 | -l FILENAME Read the bad blocks list from FILENAME |
2417 | 214- HELO EHLO MAIL RCPT DATA AUTH | 1978 | -v Make a Minix version 2 filesystem |
2418 | 214 NOOP QUIT RSET HELP | 1979 | </screen> |
2419 | quit | 1980 | </para> |
2420 | 221 foobar closing connection | 1981 | </sect1> |
2421 | </screen> | ||
2422 | 1982 | ||
1983 | <sect1 id="mknod"> | ||
1984 | <title>mknod</title> | ||
2423 | 1985 | ||
2424 | </para> | 1986 | <para> |
1987 | Usage: mknod [OPTION]... NAME TYPE MAJOR MINOR | ||
1988 | </para> | ||
2425 | 1989 | ||
2426 | <para> | 1990 | <para> |
2427 | ------------------------------- | 1991 | Create a special file (block, character, or pipe). |
1992 | </para> | ||
2428 | 1993 | ||
1994 | <para> | ||
1995 | Options: | ||
1996 | </para> | ||
2429 | 1997 | ||
2430 | </para> | 1998 | <para> |
1999 | <screen> | ||
2000 | -m Create the special file using the specified mode (default a=rw) | ||
2001 | </screen> | ||
2002 | </para> | ||
2431 | 2003 | ||
2432 | </listitem></varlistentry> | 2004 | <para> |
2433 | <varlistentry><term><emphasis>nslookup | 2005 | TYPE may be: |
2006 | </para> | ||
2434 | 2007 | ||
2435 | </emphasis></term> | 2008 | <para> |
2436 | <listitem><para></para> | 2009 | <screen> |
2010 | b Make a block (buffered) device | ||
2011 | c or u Make a character (un-buffered) device | ||
2012 | p Make a named pipe. MAJOR and MINOR are ignored for named pipes | ||
2013 | </screen> | ||
2014 | </para> | ||
2437 | 2015 | ||
2438 | <para> | 2016 | <para> |
2439 | Usage: nslookup [HOST] | 2017 | Example: |
2018 | </para> | ||
2440 | 2019 | ||
2020 | <para> | ||
2021 | <screen> | ||
2022 | $ mknod /dev/fd0 b 2 0 | ||
2023 | $ mknod -m 644 /tmp/pipe p | ||
2024 | </screen> | ||
2025 | </para> | ||
2026 | </sect1> | ||
2441 | 2027 | ||
2442 | </para> | 2028 | <sect1 id="mkswap"> |
2029 | <title>mkswap</title> | ||
2443 | 2030 | ||
2444 | <para> | 2031 | <para> |
2445 | Queries the nameserver for the IP address of the given HOST | 2032 | Usage: mkswap [OPTION]... DEVICE [BLOCKS] |
2033 | </para> | ||
2446 | 2034 | ||
2035 | <para> | ||
2036 | Prepare a disk partition to be used as a swap partition. | ||
2037 | </para> | ||
2447 | 2038 | ||
2448 | </para> | 2039 | <para> |
2040 | Options: | ||
2041 | </para> | ||
2449 | 2042 | ||
2450 | <para> | 2043 | <para> |
2451 | Example: | 2044 | <screen> |
2045 | -c Check for read-ability. | ||
2046 | -v0 Make version 0 swap [max 128 Megs]. | ||
2047 | -v1 Make version 1 swap [big!] (default for kernels > 2.1.117). | ||
2048 | BLOCKS Number of block to use (default is entire partition). | ||
2049 | </screen> | ||
2050 | </para> | ||
2051 | </sect1> | ||
2452 | 2052 | ||
2053 | <sect1 id="mktemp"> | ||
2054 | <title>mktemp</title> | ||
2453 | 2055 | ||
2454 | </para> | 2056 | <para> |
2057 | Usage: mktemp TEMPLATE | ||
2058 | </para> | ||
2455 | 2059 | ||
2456 | <para> | 2060 | <para> |
2457 | <screen> | 2061 | Creates a temporary file with its name based on |
2458 | $ nslookup localhost | 2062 | TEMPLATE. TEMPLATE is any name with six `Xs' (i.e. |
2459 | Server: default | 2063 | /tmp/temp.XXXXXX). |
2460 | Address: default | 2064 | </para> |
2461 | </screen> | ||
2462 | 2065 | ||
2066 | <para> | ||
2067 | Example: | ||
2068 | </para> | ||
2463 | 2069 | ||
2464 | </para> | 2070 | <para> |
2071 | <screen> | ||
2072 | $ mktemp /tmp/temp.XXXXXX | ||
2073 | /tmp/temp.mWiLjM | ||
2074 | $ ls -la /tmp/temp.mWiLjM | ||
2075 | -rw------- 1 andersen andersen 0 Apr 25 17:10 /tmp/temp.mWiLjM | ||
2076 | </screen> | ||
2077 | </para> | ||
2078 | </sect1> | ||
2465 | 2079 | ||
2466 | <para> | 2080 | <sect1 id="more"> |
2467 | <screen> | 2081 | <title>more</title> |
2468 | Name: debian | ||
2469 | Address: 127.0.0.1 | ||
2470 | </screen> | ||
2471 | 2082 | ||
2083 | <para> | ||
2084 | Usage: more [FILE]... | ||
2085 | </para> | ||
2472 | 2086 | ||
2473 | </para> | 2087 | <para> |
2088 | Page through text one screenful at a time. | ||
2089 | </para> | ||
2474 | 2090 | ||
2475 | <para> | 2091 | <para> |
2476 | ------------------------------- | 2092 | Example: |
2093 | </para> | ||
2477 | 2094 | ||
2095 | <para> | ||
2096 | <screen> | ||
2097 | $ dmesg | more | ||
2098 | </screen> | ||
2099 | </para> | ||
2100 | </sect1> | ||
2478 | 2101 | ||
2479 | </para> | 2102 | <sect1 id="mount"> |
2103 | <title>mount</title> | ||
2480 | 2104 | ||
2481 | </listitem></varlistentry> | 2105 | <para> |
2482 | <varlistentry><term><emphasis>ping | 2106 | Usage: mount [OPTION]... |
2107 | </para> | ||
2483 | 2108 | ||
2484 | </emphasis></term> | 2109 | <para> |
2485 | <listitem><para></para> | 2110 | <screen> |
2111 | or: mount [OPTION]... DEVICE DIRECTORY | ||
2112 | </screen> | ||
2113 | </para> | ||
2486 | 2114 | ||
2487 | <para> | 2115 | <para> |
2488 | Usage: ping [OPTION]... host | 2116 | Mount filesystems. |
2117 | </para> | ||
2489 | 2118 | ||
2119 | <para> | ||
2120 | Options: | ||
2121 | </para> | ||
2490 | 2122 | ||
2491 | </para> | 2123 | <para> |
2124 | <screen> | ||
2125 | -a Mount all filesystems in /etc/fstab | ||
2126 | -o One of the many filesystem options listed below | ||
2127 | -r Mount the filesystem read-only | ||
2128 | -t TYPE Specify the filesystem type | ||
2129 | -w Mount the filesystem read-write | ||
2130 | </screen> | ||
2131 | </para> | ||
2492 | 2132 | ||
2493 | <para> | 2133 | <para> |
2494 | Send ICMP ECHO_REQUEST packets to network hosts. | 2134 | Options for use with the -o flag: |
2135 | </para> | ||
2495 | 2136 | ||
2137 | <para> | ||
2138 | <screen> | ||
2139 | async/sync Writes are asynchronous / synchronous | ||
2140 | atime/noatime Enable / disable updates to inode access times | ||
2141 | dev/nodev Allow / disallow use of special device files | ||
2142 | exec/noexec Allow / disallow use of executable files | ||
2143 | loop Mount a file via loop device | ||
2144 | suid/nosuid Allow / disallow set-user-id-root programs | ||
2145 | remount Remount a currently mounted filesystem | ||
2146 | ro/rw Mount filesystem read-only / read-write | ||
2147 | </screen> | ||
2148 | </para> | ||
2496 | 2149 | ||
2497 | </para> | 2150 | <para> |
2151 | There are even more flags that are filesystem specific. | ||
2152 | You'll have to see the written documentation for those. | ||
2153 | </para> | ||
2498 | 2154 | ||
2499 | <para> | 2155 | <para> |
2500 | Options: | 2156 | Example: |
2157 | </para> | ||
2501 | 2158 | ||
2159 | <para> | ||
2160 | <screen> | ||
2161 | $ mount | ||
2162 | /dev/hda3 on / type minix (rw) | ||
2163 | proc on /proc type proc (rw) | ||
2164 | devpts on /dev/pts type devpts (rw) | ||
2165 | $ mount /dev/fd0 /mnt -t msdos -o ro | ||
2166 | $ mount /tmp/diskimage /opt -t ext2 -o loop | ||
2167 | </screen> | ||
2168 | </para> | ||
2169 | </sect1> | ||
2502 | 2170 | ||
2503 | </para> | 2171 | <sect1 id="mt"> |
2172 | <title>mt</title> | ||
2504 | 2173 | ||
2505 | <para> | 2174 | <para> |
2506 | <screen> | 2175 | Usage: mt [OPTION] OPCODE VALUE |
2507 | -c COUNT Send only COUNT pings. | 2176 | </para> |
2508 | -s SIZE Send SIZE data bytes in packets (default=56). | ||
2509 | -q Quiet mode, only displays output at start | ||
2510 | and when finished. | ||
2511 | Example: | ||
2512 | </screen> | ||
2513 | 2177 | ||
2178 | <para> | ||
2179 | Control magnetic tape drive operation. | ||
2180 | </para> | ||
2514 | 2181 | ||
2515 | </para> | 2182 | <para> |
2183 | Options: | ||
2184 | </para> | ||
2516 | 2185 | ||
2517 | <para> | 2186 | <para> |
2518 | <screen> | 2187 | <screen> |
2519 | $ ping localhost | 2188 | -f DEVICE Control DEVICE |
2520 | PING slag (127.0.0.1): 56 data bytes | 2189 | </screen> |
2521 | 64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=20.1 ms | 2190 | </para> |
2522 | </screen> | 2191 | </sect1> |
2523 | 2192 | ||
2193 | <sect1 id="mv"> | ||
2194 | <title>mv</title> | ||
2524 | 2195 | ||
2525 | </para> | 2196 | <para> |
2197 | Usage: mv SOURCE DEST | ||
2198 | </para> | ||
2526 | 2199 | ||
2527 | <para> | 2200 | <para> |
2528 | <screen> | 2201 | <screen> |
2529 | --- debian ping statistics --- | 2202 | or: mv SOURCE... DIRECTORY |
2530 | 1 packets transmitted, 1 packets received, 0% packet loss | 2203 | </screen> |
2531 | round-trip min/avg/max = 20.1/20.1/20.1 ms | 2204 | </para> |
2532 | </screen> | ||
2533 | 2205 | ||
2206 | <para> | ||
2207 | Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY. | ||
2208 | </para> | ||
2534 | 2209 | ||
2535 | </para> | 2210 | <para> |
2211 | Example: | ||
2212 | </para> | ||
2536 | 2213 | ||
2537 | <para> | 2214 | <para> |
2538 | ------------------------------- | 2215 | <screen> |
2216 | $ mv /tmp/foo /bin/bar | ||
2217 | </screen> | ||
2218 | </para> | ||
2219 | </sect1> | ||
2539 | 2220 | ||
2221 | <sect1 id="nc"> | ||
2222 | <title>nc</title> | ||
2540 | 2223 | ||
2541 | </para> | 2224 | <para> |
2225 | Usage: nc HOST PORT | ||
2226 | </para> | ||
2542 | 2227 | ||
2543 | </listitem></varlistentry> | 2228 | <para> |
2544 | <varlistentry><term><emphasis>poweroff | 2229 | Open a pipe to HOST:PORT. |
2230 | </para> | ||
2545 | 2231 | ||
2546 | </emphasis></term> | 2232 | <para> |
2547 | <listitem><para></para> | 2233 | Example: |
2234 | </para> | ||
2548 | 2235 | ||
2549 | <para> | 2236 | <para> |
2550 | Shuts down the system, and requests that the kernel turn off power upon | 2237 | <screen> |
2551 | halting. | 2238 | $ nc foobar.somedomain.com 25 |
2239 | 220 foobar ESMTP Exim 3.12 #1 Sat, 15 Apr 2000 00:03:02 -0600 | ||
2240 | help | ||
2241 | 214-Commands supported: | ||
2242 | 214- HELO EHLO MAIL RCPT DATA AUTH | ||
2243 | 214 NOOP QUIT RSET HELP | ||
2244 | quit | ||
2245 | 221 foobar closing connection | ||
2246 | </screen> | ||
2247 | </para> | ||
2248 | </sect1> | ||
2552 | 2249 | ||
2250 | <sect1 id="nslookup"> | ||
2251 | <title>nslookup</title> | ||
2553 | 2252 | ||
2554 | </para> | 2253 | <para> |
2254 | Usage: nslookup [HOST] | ||
2255 | </para> | ||
2555 | 2256 | ||
2556 | <para> | 2257 | <para> |
2557 | ------------------------------- | 2258 | Query the nameserver for the IP address of the given |
2259 | HOST. | ||
2260 | </para> | ||
2558 | 2261 | ||
2262 | <para> | ||
2263 | Example: | ||
2264 | </para> | ||
2559 | 2265 | ||
2560 | </para> | 2266 | <para> |
2267 | <screen> | ||
2268 | $ nslookup localhost | ||
2269 | Server: default | ||
2270 | Address: default | ||
2561 | 2271 | ||
2562 | </listitem></varlistentry> | 2272 | Name: debian |
2563 | <varlistentry><term><emphasis>printf | 2273 | Address: 127.0.0.1 |
2274 | </screen> | ||
2275 | </para> | ||
2276 | </sect1> | ||
2564 | 2277 | ||
2565 | </emphasis></term> | 2278 | <sect1 id="ping"> |
2566 | <listitem><para></para> | 2279 | <title>ping</title> |
2567 | 2280 | ||
2568 | <para> | 2281 | <para> |
2569 | Usage: printf format [argument...] | 2282 | Usage: ping [OPTION]... HOST |
2283 | </para> | ||
2570 | 2284 | ||
2285 | <para> | ||
2286 | Send ICMP ECHO_REQUEST packets to HOST. | ||
2287 | </para> | ||
2571 | 2288 | ||
2572 | </para> | 2289 | <para> |
2290 | Options: | ||
2291 | </para> | ||
2573 | 2292 | ||
2574 | <para> | 2293 | <para> |
2575 | Formats and prints the given data in a manner similar to the C printf | 2294 | <screen> |
2576 | command. | 2295 | -c COUNT Send only COUNT pings |
2296 | -s SIZE Send SIZE data bytes in packets (default=56) | ||
2297 | -q Quiet mode, only displays output at start and when finished | ||
2298 | </screen> | ||
2299 | </para> | ||
2577 | 2300 | ||
2301 | <para> | ||
2302 | Example: | ||
2303 | </para> | ||
2578 | 2304 | ||
2579 | </para> | 2305 | <para> |
2306 | <screen> | ||
2307 | $ ping localhost | ||
2308 | PING slag (127.0.0.1): 56 data bytes | ||
2309 | 64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=20.1 ms | ||
2580 | 2310 | ||
2581 | <para> | 2311 | --- debian ping statistics --- |
2582 | Example: | 2312 | 1 packets transmitted, 1 packets received, 0% packet loss |
2313 | round-trip min/avg/max = 20.1/20.1/20.1 ms | ||
2314 | </screen> | ||
2315 | </para> | ||
2316 | </sect1> | ||
2583 | 2317 | ||
2318 | <sect1 id="poweroff"> | ||
2319 | <title>poweroff</title> | ||
2584 | 2320 | ||
2585 | </para> | 2321 | <para> |
2322 | Usage: poweroff | ||
2323 | </para> | ||
2586 | 2324 | ||
2587 | <para> | 2325 | <para> |
2588 | <screen> | 2326 | Shut down the system, and request that the kernel turn |
2589 | $ printf "Val=%d\n" 5 | 2327 | off power upon halting. |
2590 | Val=5 | 2328 | </para> |
2591 | </screen> | 2329 | </sect1> |
2592 | 2330 | ||
2331 | <sect1 id="printf"> | ||
2332 | <title>printf</title> | ||
2593 | 2333 | ||
2594 | </para> | 2334 | <para> |
2335 | Usage: printf FORMAT [ARGUMENT]... | ||
2336 | </para> | ||
2595 | 2337 | ||
2596 | <para> | 2338 | <para> |
2597 | ------------------------------- | 2339 | Format and print the given data in a manner similar to |
2340 | the C printf command. | ||
2341 | </para> | ||
2598 | 2342 | ||
2343 | <para> | ||
2344 | Example: | ||
2345 | </para> | ||
2599 | 2346 | ||
2600 | </para> | 2347 | <para> |
2348 | <screen> | ||
2349 | $ printf "Val=%d\n" 5 | ||
2350 | Val=5 | ||
2351 | </screen> | ||
2352 | </para> | ||
2353 | </sect1> | ||
2601 | 2354 | ||
2602 | </listitem></varlistentry> | 2355 | <!-- This is where I have stopped formatting stuff --> |
2603 | <varlistentry><term><emphasis>ps | 2356 | <varlistentry><term><emphasis>ps |
2604 | 2357 | ||
2605 | </emphasis></term> | 2358 | </emphasis></term> |
@@ -4386,9 +4139,9 @@ stdout. | |||
4386 | GNU Libc uses the Name Service Switch (NSS) to configure the behavior of | 4139 | GNU Libc uses the Name Service Switch (NSS) to configure the behavior of |
4387 | the C library for the local environment, and to configure how it reads | 4140 | the C library for the local environment, and to configure how it reads |
4388 | system data, such as passwords and group information. BusyBox has made it | 4141 | system data, such as passwords and group information. BusyBox has made it |
4389 | Policy that it will never use NSS, and will never use and libc calls that | 4142 | Policy that it will never use NSS, and will never use libc calls that |
4390 | make use of NSS. This allows you to run an embedded system without the need | 4143 | make use of NSS. This allows you to run an embedded system without the need |
4391 | for installing an /etc/nsswitch.conf file and without and /lib/libnss_* | 4144 | for installing an /etc/nsswitch.conf file and without /lib/libnss_* |
4392 | libraries installed. | 4145 | libraries installed. |
4393 | 4146 | ||
4394 | 4147 | ||