diff -Naur busybox-1.20.2/applets/Kbuild busybox-1.20.2_mod/applets/Kbuild --- busybox-1.20.2/applets/Kbuild 1970-01-01 08:00:00.000000000 +0800 +++ busybox-1.20.2_mod/applets/Kbuild 2024-04-11 16:00:59.513113667 +0800 @@ -0,0 +1,48 @@ +# DO NOT EDIT. This file is generated from Kbuild.src +# Makefile for busybox +# +# Copyright (C) 1999-2005 by Erik Andersen +# +# Licensed under GPLv2, see file LICENSE in this source tree. + +obj-y := +obj-y += applets.o + +hostprogs-y:= +hostprogs-y += usage usage_pod applet_tables + +always:= $(hostprogs-y) + +# Generated files need additional love + +# This trick decreases amount of rebuilds +# if tree is merely renamed/copied +ifeq ($(srctree),$(objtree)) +srctree_slash = +else +srctree_slash = $(srctree)/ +endif + +HOSTCFLAGS_usage.o = -I$(srctree_slash)include -Iinclude +HOSTCFLAGS_usage_pod.o = -I$(srctree_slash)include -Iinclude + +applets/applets.o: include/usage_compressed.h include/applet_tables.h + +applets/applet_tables: .config include/applets.h +applets/usage: .config include/applets.h +applets/usage_pod: .config include/applet_tables.h include/applets.h + +quiet_cmd_gen_usage_compressed = GEN include/usage_compressed.h + cmd_gen_usage_compressed = $(srctree_slash)applets/usage_compressed include/usage_compressed.h applets + +include/usage_compressed.h: applets/usage $(srctree_slash)applets/usage_compressed + $(call cmd,gen_usage_compressed) + +quiet_cmd_gen_applet_tables = GEN include/applet_tables.h + cmd_gen_applet_tables = applets/applet_tables include/applet_tables.h include/NUM_APPLETS.h + +include/applet_tables.h: applets/applet_tables + $(call cmd,gen_applet_tables) + +include/NUM_APPLETS.h: applets/applet_tables + $(call cmd,gen_applet_tables) diff -Naur busybox-1.20.2/archival/Config.in busybox-1.20.2_mod/archival/Config.in --- busybox-1.20.2/archival/Config.in 1970-01-01 08:00:00.000000000 +0800 +++ busybox-1.20.2_mod/archival/Config.in 2024-04-11 16:00:59.677113567 +0800 @@ -0,0 +1,388 @@ +# DO NOT EDIT. This file is generated from Config.src +# +# For a description of the syntax of this configuration file, +# see scripts/kbuild/config-language.txt. +# + +menu "Archival Utilities" + + +config FEATURE_SEAMLESS_XZ + bool "Make tar, rpm, modprobe etc understand .xz data" + default y + help + Make tar, rpm, modprobe etc understand .xz data. + +config FEATURE_SEAMLESS_LZMA + bool "Make tar, rpm, modprobe etc understand .lzma data" + default y + help + Make tar, rpm, modprobe etc understand .lzma data. + +config FEATURE_SEAMLESS_BZ2 + bool "Make tar, rpm, modprobe etc understand .bz2 data" + default y + help + Make tar, rpm, modprobe etc understand .bz2 data. + +config FEATURE_SEAMLESS_GZ + bool "Make tar, rpm, modprobe etc understand .gz data" + default y + help + Make tar, rpm, modprobe etc understand .gz data. + +config FEATURE_SEAMLESS_Z + bool "tar, rpm, modprobe etc understand .Z data" + default n + help + Make tar, rpm, modprobe etc understand .Z data. + +config AR + bool "ar" + default n # needs to be improved to be able to replace binutils ar + help + ar is an archival utility program used to create, modify, and + extract contents from archives. An archive is a single file holding + a collection of other files in a structure that makes it possible to + retrieve the original individual files (called archive members). + The original files' contents, mode (permissions), timestamp, owner, + and group are preserved in the archive, and can be restored on + extraction. + + The stored filename is limited to 15 characters. (for more information + see long filename support). + ar has 60 bytes of overheads for every stored file. + + This implementation of ar can extract archives, it cannot create or + modify them. + On an x86 system, the ar applet adds about 1K. + + Unless you have a specific application which requires ar, you should + probably say N here. + +config FEATURE_AR_LONG_FILENAMES + bool "Support for long filenames (not needed for debs)" + default y + depends on AR + help + By default the ar format can only store the first 15 characters + of the filename, this option removes that limitation. + It supports the GNU ar long filename method which moves multiple long + filenames into a the data section of a new ar entry. + +config FEATURE_AR_CREATE + bool "Support archive creation" + default y + depends on AR + help + This enables archive creation (-c and -r) with busybox ar. + +config BUNZIP2 + bool "bunzip2" + default y + help + bunzip2 is a compression utility using the Burrows-Wheeler block + sorting text compression algorithm, and Huffman coding. Compression + is generally considerably better than that achieved by more + conventional LZ77/LZ78-based compressors, and approaches the + performance of the PPM family of statistical compressors. + + Unless you have a specific application which requires bunzip2, you + should probably say N here. + +config BZIP2 + bool "bzip2" + default y + help + bzip2 is a compression utility using the Burrows-Wheeler block + sorting text compression algorithm, and Huffman coding. Compression + is generally considerably better than that achieved by more + conventional LZ77/LZ78-based compressors, and approaches the + performance of the PPM family of statistical compressors. + + Unless you have a specific application which requires bzip2, you + should probably say N here. + +config CPIO + bool "cpio" + default y + help + cpio is an archival utility program used to create, modify, and + extract contents from archives. + cpio has 110 bytes of overheads for every stored file. + + This implementation of cpio can extract cpio archives created in the + "newc" or "crc" format, it cannot create or modify them. + + Unless you have a specific application which requires cpio, you + should probably say N here. + +config FEATURE_CPIO_O + bool "Support for archive creation" + default y + depends on CPIO + help + This implementation of cpio can create cpio archives in the "newc" + format only. + +config FEATURE_CPIO_P + bool "Support for passthrough mode" + default y + depends on FEATURE_CPIO_O + help + Passthrough mode. Rarely used. + +config DPKG + bool "dpkg" + default n + select FEATURE_SEAMLESS_GZ + help + dpkg is a medium-level tool to install, build, remove and manage + Debian packages. + + This implementation of dpkg has a number of limitations, + you should use the official dpkg if possible. + +config DPKG_DEB + bool "dpkg_deb" + default n + select FEATURE_SEAMLESS_GZ + help + dpkg-deb unpacks and provides information about Debian archives. + + This implementation of dpkg-deb cannot pack archives. + + Unless you have a specific application which requires dpkg-deb, + say N here. + +config FEATURE_DPKG_DEB_EXTRACT_ONLY + bool "Extract only (-x)" + default n + depends on DPKG_DEB + help + This reduces dpkg-deb to the equivalent of + "ar -p data.tar.gz | tar -zx". However it saves space as none + of the extra dpkg-deb, ar or tar options are needed, they are linked + to internally. + +config GUNZIP + bool "gunzip" + default y + help + gunzip is used to decompress archives created by gzip. + You can use the `-t' option to test the integrity of + an archive, without decompressing it. + +config GZIP + bool "gzip" + default y + help + gzip is used to compress files. + It's probably the most widely used UNIX compression program. + +config FEATURE_GZIP_LONG_OPTIONS + bool "Enable long options" + default y + depends on GZIP && LONG_OPTS + help + Enable use of long options, increases size by about 106 Bytes + +config GZIP_FAST + int "Trade memory for gzip speed (0:small,slow - 2:fast,big)" + default 0 + range 0 2 + depends on GZIP + help + Enable big memory options for gzip. + 0: small buffers, small hash-tables + 1: larger buffers, larger hash-tables + 2: larger buffers, largest hash-tables + Larger models may give slightly better compression + +config LZOP + bool "lzop" + default y + help + Lzop compression/decompresion. + +config LZOP_COMPR_HIGH + bool "lzop compression levels 7,8,9 (not very useful)" + default n + depends on LZOP + help + High levels (7,8,9) of lzop compression. These levels + are actually slower than gzip at equivalent compression ratios + and take up 3.2K of code. + +config RPM2CPIO + bool "rpm2cpio" + default y + help + Converts a RPM file into a CPIO archive. + +config RPM + bool "rpm" + default y + help + Mini RPM applet - queries and extracts RPM packages. + +config TAR + bool "tar" + default y + help + tar is an archiving program. It's commonly used with gzip to + create compressed archives. It's probably the most widely used + UNIX archive program. + +config FEATURE_TAR_CREATE + bool "Enable archive creation" + default y + depends on TAR + help + If you enable this option you'll be able to create + tar archives using the `-c' option. + +config FEATURE_TAR_AUTODETECT + bool "Autodetect compressed tarballs" + default y + depends on TAR && (FEATURE_SEAMLESS_Z || FEATURE_SEAMLESS_GZ || FEATURE_SEAMLESS_BZ2 || FEATURE_SEAMLESS_LZMA || FEATURE_SEAMLESS_XZ) + help + With this option tar can automatically detect compressed + tarballs. Currently it works only on files (not pipes etc). + +config FEATURE_TAR_FROM + bool "Enable -X (exclude from) and -T (include from) options)" + default y + depends on TAR + help + If you enable this option you'll be able to specify + a list of files to include or exclude from an archive. + +config FEATURE_TAR_OLDGNU_COMPATIBILITY + bool "Support for old tar header format" + default y + depends on TAR || DPKG + help + This option is required to unpack archives created in + the old GNU format; help to kill this old format by + repacking your ancient archives with the new format. + +config FEATURE_TAR_OLDSUN_COMPATIBILITY + bool "Enable untarring of tarballs with checksums produced by buggy Sun tar" + default y + depends on TAR || DPKG + help + This option is required to unpack archives created by some old + version of Sun's tar (it was calculating checksum using signed + arithmetic). It is said to be fixed in newer Sun tar, but "old" + tarballs still exist. + +config FEATURE_TAR_GNU_EXTENSIONS + bool "Support for GNU tar extensions (long filenames)" + default y + depends on TAR || DPKG + help + With this option busybox supports GNU long filenames and + linknames. + +config FEATURE_TAR_LONG_OPTIONS + bool "Enable long options" + default y + depends on TAR && LONG_OPTS + help + Enable use of long options, increases size by about 400 Bytes + +config FEATURE_TAR_TO_COMMAND + bool "Support for writing to an external program" + default y + depends on TAR && FEATURE_TAR_LONG_OPTIONS + help + If you enable this option you'll be able to instruct tar to send + the contents of each extracted file to the standard input of an + external program. + +config FEATURE_TAR_UNAME_GNAME + bool "Enable use of user and group names" + default y + depends on TAR + help + Enables use of user and group names in tar. This affects contents + listings (-t) and preserving permissions when unpacking (-p). + +200 bytes. + +config FEATURE_TAR_NOPRESERVE_TIME + bool "Enable -m (do not preserve time) option" + default y + depends on TAR + help + With this option busybox supports GNU tar -m + (do not preserve time) option. + +config FEATURE_TAR_SELINUX + bool "Support for extracting SELinux labels" + default n + depends on TAR && SELINUX + help + With this option busybox supports restoring SELinux labels + when extracting files from tar archives. + +config UNCOMPRESS + bool "uncompress" + default n + help + uncompress is used to decompress archives created by compress. + Not much used anymore, replaced by gzip/gunzip. + +config UNLZMA + bool "unlzma" + default y + help + unlzma is a compression utility using the Lempel-Ziv-Markov chain + compression algorithm, and range coding. Compression + is generally considerably better than that achieved by the bzip2 + compressors. + + The BusyBox unlzma applet is limited to decompression only. + On an x86 system, this applet adds about 4K. + +config FEATURE_LZMA_FAST + bool "Optimize unlzma for speed" + default n + depends on UNLZMA + help + This option reduces decompression time by about 25% at the cost of + a 1K bigger binary. + +config LZMA + bool "Provide lzma alias which supports only unpacking" + default y + depends on UNLZMA + help + Enable this option if you want commands like "lzma -d" to work. + IOW: you'll get lzma applet, but it will always require -d option. + +config UNXZ + bool "unxz" + default y + help + unxz is a unlzma successor. + +config XZ + bool "Provide xz alias which supports only unpacking" + default y + depends on UNXZ + help + Enable this option if you want commands like "xz -d" to work. + IOW: you'll get xz applet, but it will always require -d option. + +config UNZIP + bool "unzip" + default y + help + unzip will list or extract files from a ZIP archive, + commonly found on DOS/WIN systems. The default behavior + (with no options) is to extract the archive into the + current directory. Use the `-d' option to extract to a + directory of your choice. + +endmenu diff -Naur busybox-1.20.2/archival/Kbuild busybox-1.20.2_mod/archival/Kbuild --- busybox-1.20.2/archival/Kbuild 1970-01-01 08:00:00.000000000 +0800 +++ busybox-1.20.2_mod/archival/Kbuild 2024-04-11 16:00:59.669113572 +0800 @@ -0,0 +1,30 @@ +# DO NOT EDIT. This file is generated from Kbuild.src +# Makefile for busybox +# +# Copyright (C) 1999-2005 by Erik Andersen +# +# Licensed under GPLv2, see file LICENSE in this source tree. + +libs-y += libarchive/ + +lib-y:= + + +lib-$(CONFIG_AR) += ar.o +lib-$(CONFIG_CPIO) += cpio.o +lib-$(CONFIG_DPKG) += dpkg.o +lib-$(CONFIG_DPKG_DEB) += dpkg_deb.o +lib-$(CONFIG_RPM2CPIO) += rpm2cpio.o +lib-$(CONFIG_RPM) += rpm.o +lib-$(CONFIG_TAR) += tar.o +lib-$(CONFIG_UNZIP) += unzip.o + +lib-$(CONFIG_LZOP) += lzop.o bbunzip.o +lib-$(CONFIG_GZIP) += gzip.o bbunzip.o +lib-$(CONFIG_BZIP2) += bzip2.o bbunzip.o + +lib-$(CONFIG_UNXZ) += bbunzip.o +lib-$(CONFIG_UNLZMA) += bbunzip.o +lib-$(CONFIG_BUNZIP2) += bbunzip.o +lib-$(CONFIG_GUNZIP) += bbunzip.o +lib-$(CONFIG_UNCOMPRESS) += bbunzip.o diff -Naur busybox-1.20.2/archival/libarchive/Kbuild busybox-1.20.2_mod/archival/libarchive/Kbuild --- busybox-1.20.2/archival/libarchive/Kbuild 1970-01-01 08:00:00.000000000 +0800 +++ busybox-1.20.2_mod/archival/libarchive/Kbuild 2024-04-11 16:00:59.685113563 +0800 @@ -0,0 +1,69 @@ +# DO NOT EDIT. This file is generated from Kbuild.src +# Makefile for busybox +# +# Copyright (C) 1999-2004 by Erik Andersen +# +# Licensed under GPLv2 or later, see file LICENSE in this source tree. + +lib-y:= + +COMMON_FILES:= \ +\ + data_skip.o \ + data_extract_all.o \ + data_extract_to_stdout.o \ +\ + filter_accept_all.o \ + filter_accept_list.o \ + filter_accept_reject_list.o \ +\ + header_skip.o \ + header_list.o \ + header_verbose_list.o \ +\ + seek_by_read.o \ + seek_by_jump.o \ +\ + data_align.o \ + find_list_entry.o \ + init_handle.o + +DPKG_FILES:= \ + unpack_ar_archive.o \ + filter_accept_list_reassign.o \ + get_header_ar.o \ + get_header_tar.o \ + get_header_tar_gz.o \ + get_header_tar_bz2.o \ + get_header_tar_lzma.o \ + + +lib-$(CONFIG_AR) += get_header_ar.o unpack_ar_archive.o +lib-$(CONFIG_BUNZIP2) += decompress_bunzip2.o +lib-$(CONFIG_UNLZMA) += decompress_unlzma.o +lib-$(CONFIG_UNXZ) += decompress_unxz.o +lib-$(CONFIG_CPIO) += get_header_cpio.o +lib-$(CONFIG_DPKG) += $(DPKG_FILES) +lib-$(CONFIG_DPKG_DEB) += $(DPKG_FILES) +lib-$(CONFIG_GUNZIP) += open_transformer.o decompress_gunzip.o +lib-$(CONFIG_RPM2CPIO) += decompress_gunzip.o get_header_cpio.o +lib-$(CONFIG_RPM) += open_transformer.o decompress_gunzip.o get_header_cpio.o +lib-$(CONFIG_TAR) += get_header_tar.o +lib-$(CONFIG_UNCOMPRESS) += decompress_uncompress.o +lib-$(CONFIG_UNZIP) += decompress_gunzip.o +lib-$(CONFIG_LZOP) += lzo1x_1.o lzo1x_1o.o lzo1x_d.o +lib-$(CONFIG_LZOP_COMPR_HIGH) += lzo1x_9x.o +lib-$(CONFIG_MODINFO) += open_transformer.o +lib-$(CONFIG_INSMOD) += open_transformer.o +lib-$(CONFIG_FEATURE_SEAMLESS_Z) += open_transformer.o decompress_uncompress.o +lib-$(CONFIG_FEATURE_SEAMLESS_GZ) += open_transformer.o decompress_gunzip.o +lib-$(CONFIG_FEATURE_SEAMLESS_BZ2) += open_transformer.o decompress_bunzip2.o +lib-$(CONFIG_FEATURE_SEAMLESS_LZMA) += open_transformer.o decompress_unlzma.o +lib-$(CONFIG_FEATURE_SEAMLESS_XZ) += open_transformer.o decompress_unxz.o +lib-$(CONFIG_FEATURE_COMPRESS_USAGE) += open_transformer.o decompress_bunzip2.o +lib-$(CONFIG_FEATURE_COMPRESS_BBCONFIG) += decompress_bunzip2.o +lib-$(CONFIG_FEATURE_TAR_TO_COMMAND) += data_extract_to_command.o + +ifneq ($(lib-y),) +lib-y += $(COMMON_FILES) +endif diff -Naur busybox-1.20.2/.config busybox-1.20.2_mod/.config --- busybox-1.20.2/.config 1970-01-01 08:00:00.000000000 +0800 +++ busybox-1.20.2_mod/.config 2024-04-16 14:06:25.262548922 +0800 @@ -0,0 +1,1024 @@ +# +# Automatically generated make config: don't edit +# Busybox version: 1.20.2 +# Tue Apr 16 14:06:25 2024 +# +CONFIG_HAVE_DOT_CONFIG=y + +# +# Busybox Settings +# + +# +# General Configuration +# +CONFIG_DESKTOP=y +# CONFIG_EXTRA_COMPAT is not set +CONFIG_INCLUDE_SUSv2=y +# CONFIG_USE_PORTABLE_CODE is not set +CONFIG_PLATFORM_LINUX=y +CONFIG_FEATURE_BUFFERS_USE_MALLOC=y +# CONFIG_FEATURE_BUFFERS_GO_ON_STACK is not set +# CONFIG_FEATURE_BUFFERS_GO_IN_BSS is not set +CONFIG_SHOW_USAGE=y +CONFIG_FEATURE_VERBOSE_USAGE=y +CONFIG_FEATURE_COMPRESS_USAGE=y +CONFIG_FEATURE_INSTALLER=y +# CONFIG_INSTALL_NO_USR is not set +# CONFIG_LOCALE_SUPPORT is not set +CONFIG_UNICODE_SUPPORT=y +# CONFIG_UNICODE_USING_LOCALE is not set +# CONFIG_FEATURE_CHECK_UNICODE_IN_ENV is not set +CONFIG_SUBST_WCHAR=63 +CONFIG_LAST_SUPPORTED_WCHAR=767 +# CONFIG_UNICODE_COMBINING_WCHARS is not set +# CONFIG_UNICODE_WIDE_WCHARS is not set +# CONFIG_UNICODE_BIDI_SUPPORT is not set +# CONFIG_UNICODE_NEUTRAL_TABLE is not set +# CONFIG_UNICODE_PRESERVE_BROKEN is not set +CONFIG_LONG_OPTS=y +CONFIG_FEATURE_DEVPTS=y +# CONFIG_FEATURE_CLEAN_UP is not set +CONFIG_FEATURE_UTMP=y +CONFIG_FEATURE_WTMP=y +CONFIG_FEATURE_PIDFILE=y +CONFIG_FEATURE_SUID=y +CONFIG_FEATURE_SUID_CONFIG=y +CONFIG_FEATURE_SUID_CONFIG_QUIET=y +# CONFIG_SELINUX is not set +# CONFIG_FEATURE_PREFER_APPLETS is not set +CONFIG_BUSYBOX_EXEC_PATH="/proc/self/exe" +CONFIG_FEATURE_SYSLOG=y +CONFIG_FEATURE_HAVE_RPC=y + +# +# Build Options +# +# CONFIG_STATIC is not set +# CONFIG_PIE is not set +# CONFIG_NOMMU is not set +CONFIG_BUILD_LIBBUSYBOX=y +# CONFIG_FEATURE_INDIVIDUAL is not set +CONFIG_FEATURE_SHARED_BUSYBOX=y +CONFIG_LFS=y +CONFIG_CROSS_COMPILER_PREFIX="aarch64-linux-gnu-" +CONFIG_SYSROOT="" +CONFIG_EXTRA_CFLAGS="" +CONFIG_EXTRA_LDFLAGS="" +CONFIG_EXTRA_LDLIBS="" + +# +# Debugging Options +# +# CONFIG_DEBUG is not set +# CONFIG_DEBUG_PESSIMIZE is not set +# CONFIG_WERROR is not set +CONFIG_NO_DEBUG_LIB=y +# CONFIG_DMALLOC is not set +# CONFIG_EFENCE is not set + +# +# Installation Options ("make install" behavior) +# +CONFIG_INSTALL_APPLET_SYMLINKS=y +# CONFIG_INSTALL_APPLET_HARDLINKS is not set +# CONFIG_INSTALL_APPLET_SCRIPT_WRAPPERS is not set +# CONFIG_INSTALL_APPLET_DONT is not set +# CONFIG_INSTALL_SH_APPLET_SYMLINK is not set +# CONFIG_INSTALL_SH_APPLET_HARDLINK is not set +# CONFIG_INSTALL_SH_APPLET_SCRIPT_WRAPPER is not set +CONFIG_PREFIX="./_install" + +# +# Busybox Library Tuning +# +CONFIG_FEATURE_SYSTEMD=y +CONFIG_FEATURE_RTMINMAX=y +CONFIG_PASSWORD_MINLEN=6 +CONFIG_MD5_SMALL=1 +CONFIG_FEATURE_FAST_TOP=y +# CONFIG_FEATURE_ETC_NETWORKS is not set +CONFIG_FEATURE_USE_TERMIOS=y +CONFIG_FEATURE_EDITING=y +CONFIG_FEATURE_EDITING_MAX_LEN=1024 +# CONFIG_FEATURE_EDITING_VI is not set +CONFIG_FEATURE_EDITING_HISTORY=255 +CONFIG_FEATURE_EDITING_SAVEHISTORY=y +# CONFIG_FEATURE_EDITING_SAVE_ON_EXIT is not set +CONFIG_FEATURE_REVERSE_SEARCH=y +CONFIG_FEATURE_TAB_COMPLETION=y +# CONFIG_FEATURE_USERNAME_COMPLETION is not set +CONFIG_FEATURE_EDITING_FANCY_PROMPT=y +# CONFIG_FEATURE_EDITING_ASK_TERMINAL is not set +CONFIG_FEATURE_NON_POSIX_CP=y +# CONFIG_FEATURE_VERBOSE_CP_MESSAGE is not set +CONFIG_FEATURE_COPYBUF_KB=4 +CONFIG_FEATURE_SKIP_ROOTFS=y +# CONFIG_MONOTONIC_SYSCALL is not set +CONFIG_IOCTL_HEX2STR_ERROR=y +CONFIG_FEATURE_HWIB=y + +# +# Applets +# + +# +# Archival Utilities +# +CONFIG_FEATURE_SEAMLESS_XZ=y +CONFIG_FEATURE_SEAMLESS_LZMA=y +CONFIG_FEATURE_SEAMLESS_BZ2=y +CONFIG_FEATURE_SEAMLESS_GZ=y +# CONFIG_FEATURE_SEAMLESS_Z is not set +# CONFIG_AR is not set +# CONFIG_FEATURE_AR_LONG_FILENAMES is not set +# CONFIG_FEATURE_AR_CREATE is not set +CONFIG_BUNZIP2=y +CONFIG_BZIP2=y +CONFIG_CPIO=y +CONFIG_FEATURE_CPIO_O=y +CONFIG_FEATURE_CPIO_P=y +# CONFIG_DPKG is not set +# CONFIG_DPKG_DEB is not set +# CONFIG_FEATURE_DPKG_DEB_EXTRACT_ONLY is not set +CONFIG_GUNZIP=y +CONFIG_GZIP=y +CONFIG_FEATURE_GZIP_LONG_OPTIONS=y +CONFIG_GZIP_FAST=0 +CONFIG_LZOP=y +# CONFIG_LZOP_COMPR_HIGH is not set +CONFIG_RPM2CPIO=y +CONFIG_RPM=y +CONFIG_TAR=y +CONFIG_FEATURE_TAR_CREATE=y +CONFIG_FEATURE_TAR_AUTODETECT=y +CONFIG_FEATURE_TAR_FROM=y +CONFIG_FEATURE_TAR_OLDGNU_COMPATIBILITY=y +CONFIG_FEATURE_TAR_OLDSUN_COMPATIBILITY=y +CONFIG_FEATURE_TAR_GNU_EXTENSIONS=y +CONFIG_FEATURE_TAR_LONG_OPTIONS=y +CONFIG_FEATURE_TAR_TO_COMMAND=y +CONFIG_FEATURE_TAR_UNAME_GNAME=y +CONFIG_FEATURE_TAR_NOPRESERVE_TIME=y +# CONFIG_FEATURE_TAR_SELINUX is not set +# CONFIG_UNCOMPRESS is not set +CONFIG_UNLZMA=y +# CONFIG_FEATURE_LZMA_FAST is not set +CONFIG_LZMA=y +CONFIG_UNXZ=y +CONFIG_XZ=y +CONFIG_UNZIP=y + +# +# Coreutils +# +CONFIG_BASENAME=y +CONFIG_CAT=y +CONFIG_DATE=y +CONFIG_FEATURE_DATE_ISOFMT=y +# CONFIG_FEATURE_DATE_NANO is not set +CONFIG_FEATURE_DATE_COMPAT=y +CONFIG_HOSTID=y +CONFIG_ID=y +CONFIG_GROUPS=y +CONFIG_TEST=y +CONFIG_FEATURE_TEST_64=y +CONFIG_TOUCH=y +CONFIG_FEATURE_TOUCH_SUSV3=y +CONFIG_TR=y +CONFIG_FEATURE_TR_CLASSES=y +CONFIG_FEATURE_TR_EQUIV=y +CONFIG_BASE64=y +CONFIG_WHO=y +CONFIG_USERS=y +CONFIG_CAL=y +CONFIG_CATV=y +CONFIG_CHGRP=y +CONFIG_CHMOD=y +CONFIG_CHOWN=y +CONFIG_FEATURE_CHOWN_LONG_OPTIONS=y +CONFIG_CHROOT=y +CONFIG_CKSUM=y +CONFIG_COMM=y +CONFIG_CP=y +CONFIG_FEATURE_CP_LONG_OPTIONS=y +CONFIG_CUT=y +CONFIG_DD=y +CONFIG_FEATURE_DD_SIGNAL_HANDLING=y +CONFIG_FEATURE_DD_THIRD_STATUS_LINE=y +CONFIG_FEATURE_DD_IBS_OBS=y +CONFIG_DF=y +CONFIG_FEATURE_DF_FANCY=y +CONFIG_DIRNAME=y +CONFIG_DOS2UNIX=y +CONFIG_UNIX2DOS=y +CONFIG_DU=y +CONFIG_FEATURE_DU_DEFAULT_BLOCKSIZE_1K=y +CONFIG_ECHO=y +CONFIG_FEATURE_FANCY_ECHO=y +CONFIG_ENV=y +CONFIG_FEATURE_ENV_LONG_OPTIONS=y +CONFIG_EXPAND=y +CONFIG_FEATURE_EXPAND_LONG_OPTIONS=y +CONFIG_EXPR=y +CONFIG_EXPR_MATH_SUPPORT_64=y +CONFIG_FALSE=y +CONFIG_FOLD=y +CONFIG_FSYNC=y +CONFIG_HEAD=y +CONFIG_FEATURE_FANCY_HEAD=y +CONFIG_INSTALL=y +CONFIG_FEATURE_INSTALL_LONG_OPTIONS=y +CONFIG_LN=y +CONFIG_LOGNAME=y +CONFIG_LS=y +CONFIG_FEATURE_LS_FILETYPES=y +CONFIG_FEATURE_LS_FOLLOWLINKS=y +CONFIG_FEATURE_LS_RECURSIVE=y +CONFIG_FEATURE_LS_SORTFILES=y +CONFIG_FEATURE_LS_TIMESTAMPS=y +CONFIG_FEATURE_LS_USERNAME=y +CONFIG_FEATURE_LS_COLOR=y +CONFIG_FEATURE_LS_COLOR_IS_DEFAULT=y +CONFIG_MD5SUM=y +CONFIG_MKDIR=y +CONFIG_FEATURE_MKDIR_LONG_OPTIONS=y +CONFIG_MKFIFO=y +CONFIG_MKNOD=y +CONFIG_MV=y +CONFIG_FEATURE_MV_LONG_OPTIONS=y +CONFIG_NICE=y +CONFIG_NOHUP=y +CONFIG_OD=y +CONFIG_PRINTENV=y +CONFIG_PRINTF=y +CONFIG_PWD=y +CONFIG_READLINK=y +CONFIG_FEATURE_READLINK_FOLLOW=y +CONFIG_REALPATH=y +CONFIG_RM=y +CONFIG_RMDIR=y +CONFIG_FEATURE_RMDIR_LONG_OPTIONS=y +CONFIG_SEQ=y +CONFIG_SHA1SUM=y +CONFIG_SHA256SUM=y +CONFIG_SHA512SUM=y +CONFIG_SLEEP=y +CONFIG_FEATURE_FANCY_SLEEP=y +CONFIG_FEATURE_FLOAT_SLEEP=y +CONFIG_SORT=y +CONFIG_FEATURE_SORT_BIG=y +CONFIG_SPLIT=y +CONFIG_FEATURE_SPLIT_FANCY=y +CONFIG_STAT=y +CONFIG_FEATURE_STAT_FORMAT=y +CONFIG_STTY=y +CONFIG_SUM=y +CONFIG_SYNC=y +CONFIG_TAC=y +CONFIG_TAIL=y +CONFIG_FEATURE_FANCY_TAIL=y +CONFIG_TEE=y +CONFIG_FEATURE_TEE_USE_BLOCK_IO=y +CONFIG_TRUE=y +CONFIG_TTY=y +CONFIG_UNAME=y +CONFIG_UNEXPAND=y +CONFIG_FEATURE_UNEXPAND_LONG_OPTIONS=y +CONFIG_UNIQ=y +CONFIG_USLEEP=y +CONFIG_UUDECODE=y +CONFIG_UUENCODE=y +CONFIG_WC=y +CONFIG_FEATURE_WC_LARGE=y +CONFIG_WHOAMI=y +CONFIG_YES=y + +# +# Common options for cp and mv +# +CONFIG_FEATURE_PRESERVE_HARDLINKS=y + +# +# Common options for ls, more and telnet +# +CONFIG_FEATURE_AUTOWIDTH=y + +# +# Common options for df, du, ls +# +CONFIG_FEATURE_HUMAN_READABLE=y + +# +# Common options for md5sum, sha1sum, sha256sum, sha512sum +# +CONFIG_FEATURE_MD5_SHA1_SUM_CHECK=y + +# +# Console Utilities +# +CONFIG_CHVT=y +CONFIG_FGCONSOLE=y +CONFIG_CLEAR=y +CONFIG_DEALLOCVT=y +CONFIG_DUMPKMAP=y +CONFIG_KBD_MODE=y +CONFIG_LOADFONT=y +CONFIG_LOADKMAP=y +CONFIG_OPENVT=y +CONFIG_RESET=y +CONFIG_RESIZE=y +CONFIG_FEATURE_RESIZE_PRINT=y +CONFIG_SETCONSOLE=y +CONFIG_FEATURE_SETCONSOLE_LONG_OPTIONS=y +CONFIG_SETFONT=y +CONFIG_FEATURE_SETFONT_TEXTUAL_MAP=y +CONFIG_DEFAULT_SETFONT_DIR="" +CONFIG_SETKEYCODES=y +CONFIG_SETLOGCONS=y +CONFIG_SHOWKEY=y + +# +# Common options for loadfont and setfont +# +CONFIG_FEATURE_LOADFONT_PSF2=y +CONFIG_FEATURE_LOADFONT_RAW=y + +# +# Debian Utilities +# +CONFIG_MKTEMP=y +CONFIG_PIPE_PROGRESS=y +CONFIG_RUN_PARTS=y +CONFIG_FEATURE_RUN_PARTS_LONG_OPTIONS=y +CONFIG_FEATURE_RUN_PARTS_FANCY=y +CONFIG_START_STOP_DAEMON=y +CONFIG_FEATURE_START_STOP_DAEMON_FANCY=y +CONFIG_FEATURE_START_STOP_DAEMON_LONG_OPTIONS=y +CONFIG_WHICH=y + +# +# Editors +# +CONFIG_PATCH=y +CONFIG_VI=y +CONFIG_FEATURE_VI_MAX_LEN=4096 +# CONFIG_FEATURE_VI_8BIT is not set +CONFIG_FEATURE_VI_COLON=y +CONFIG_FEATURE_VI_YANKMARK=y +CONFIG_FEATURE_VI_SEARCH=y +# CONFIG_FEATURE_VI_REGEX_SEARCH is not set +CONFIG_FEATURE_VI_USE_SIGNALS=y +CONFIG_FEATURE_VI_DOT_CMD=y +CONFIG_FEATURE_VI_READONLY=y +CONFIG_FEATURE_VI_SETOPTS=y +CONFIG_FEATURE_VI_SET=y +CONFIG_FEATURE_VI_WIN_RESIZE=y +CONFIG_FEATURE_VI_ASK_TERMINAL=y +CONFIG_FEATURE_VI_OPTIMIZE_CURSOR=y +CONFIG_AWK=y +CONFIG_FEATURE_AWK_LIBM=y +CONFIG_CMP=y +CONFIG_DIFF=y +CONFIG_FEATURE_DIFF_LONG_OPTIONS=y +CONFIG_FEATURE_DIFF_DIR=y +CONFIG_ED=y +CONFIG_SED=y +CONFIG_FEATURE_ALLOW_EXEC=y + +# +# Finding Utilities +# +CONFIG_FIND=y +CONFIG_FEATURE_FIND_PRINT0=y +CONFIG_FEATURE_FIND_MTIME=y +CONFIG_FEATURE_FIND_MMIN=y +CONFIG_FEATURE_FIND_PERM=y +CONFIG_FEATURE_FIND_TYPE=y +CONFIG_FEATURE_FIND_XDEV=y +CONFIG_FEATURE_FIND_MAXDEPTH=y +CONFIG_FEATURE_FIND_NEWER=y +CONFIG_FEATURE_FIND_INUM=y +CONFIG_FEATURE_FIND_EXEC=y +CONFIG_FEATURE_FIND_USER=y +CONFIG_FEATURE_FIND_GROUP=y +CONFIG_FEATURE_FIND_NOT=y +CONFIG_FEATURE_FIND_DEPTH=y +CONFIG_FEATURE_FIND_PAREN=y +CONFIG_FEATURE_FIND_SIZE=y +CONFIG_FEATURE_FIND_PRUNE=y +CONFIG_FEATURE_FIND_DELETE=y +CONFIG_FEATURE_FIND_PATH=y +CONFIG_FEATURE_FIND_REGEX=y +# CONFIG_FEATURE_FIND_CONTEXT is not set +CONFIG_FEATURE_FIND_LINKS=y +CONFIG_GREP=y +CONFIG_FEATURE_GREP_EGREP_ALIAS=y +CONFIG_FEATURE_GREP_FGREP_ALIAS=y +CONFIG_FEATURE_GREP_CONTEXT=y +CONFIG_XARGS=y +CONFIG_FEATURE_XARGS_SUPPORT_CONFIRMATION=y +CONFIG_FEATURE_XARGS_SUPPORT_QUOTES=y +CONFIG_FEATURE_XARGS_SUPPORT_TERMOPT=y +CONFIG_FEATURE_XARGS_SUPPORT_ZERO_TERM=y + +# +# Init Utilities +# +CONFIG_BOOTCHARTD=y +CONFIG_FEATURE_BOOTCHARTD_BLOATED_HEADER=y +CONFIG_FEATURE_BOOTCHARTD_CONFIG_FILE=y +CONFIG_HALT=y +# CONFIG_FEATURE_CALL_TELINIT is not set +CONFIG_TELINIT_PATH="" +CONFIG_INIT=y +CONFIG_FEATURE_USE_INITTAB=y +# CONFIG_FEATURE_KILL_REMOVED is not set +CONFIG_FEATURE_KILL_DELAY=0 +CONFIG_FEATURE_INIT_SCTTY=y +# CONFIG_FEATURE_INIT_SYSLOG is not set +CONFIG_FEATURE_EXTRA_QUIET=y +CONFIG_FEATURE_INIT_COREDUMPS=y +CONFIG_FEATURE_INITRD=y +CONFIG_INIT_TERMINAL_TYPE="linux" +CONFIG_MESG=y +CONFIG_FEATURE_MESG_ENABLE_ONLY_GROUP=y + +# +# Login/Password Management Utilities +# +CONFIG_ADD_SHELL=y +CONFIG_REMOVE_SHELL=y +CONFIG_FEATURE_SHADOWPASSWDS=y +CONFIG_USE_BB_PWD_GRP=y +CONFIG_USE_BB_SHADOW=y +CONFIG_USE_BB_CRYPT=y +CONFIG_USE_BB_CRYPT_SHA=y +CONFIG_ADDUSER=y +CONFIG_FEATURE_ADDUSER_LONG_OPTIONS=y +# CONFIG_FEATURE_CHECK_NAMES is not set +CONFIG_FIRST_SYSTEM_ID=100 +CONFIG_LAST_SYSTEM_ID=999 +CONFIG_ADDGROUP=y +CONFIG_FEATURE_ADDGROUP_LONG_OPTIONS=y +CONFIG_FEATURE_ADDUSER_TO_GROUP=y +CONFIG_DELUSER=y +CONFIG_DELGROUP=y +CONFIG_FEATURE_DEL_USER_FROM_GROUP=y +CONFIG_GETTY=y +CONFIG_LOGIN=y +# CONFIG_LOGIN_SESSION_AS_CHILD is not set +# CONFIG_PAM is not set +CONFIG_LOGIN_SCRIPTS=y +CONFIG_FEATURE_NOLOGIN=y +CONFIG_FEATURE_SECURETTY=y +CONFIG_PASSWD=y +CONFIG_FEATURE_PASSWD_WEAK_CHECK=y +CONFIG_CRYPTPW=y +CONFIG_CHPASSWD=y +CONFIG_FEATURE_DEFAULT_PASSWD_ALGO="des" +CONFIG_SU=y +CONFIG_FEATURE_SU_SYSLOG=y +CONFIG_FEATURE_SU_CHECKS_SHELLS=y +CONFIG_SULOGIN=y +CONFIG_VLOCK=y + +# +# Linux Ext2 FS Progs +# +CONFIG_CHATTR=y +CONFIG_FSCK=y +CONFIG_LSATTR=y +# CONFIG_TUNE2FS is not set + +# +# Linux Module Utilities +# +CONFIG_MODINFO=y +CONFIG_MODPROBE_SMALL=y +CONFIG_FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE=y +CONFIG_FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED=y +# CONFIG_INSMOD is not set +# CONFIG_RMMOD is not set +# CONFIG_LSMOD is not set +# CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT is not set +# CONFIG_MODPROBE is not set +# CONFIG_FEATURE_MODPROBE_BLACKLIST is not set +# CONFIG_DEPMOD is not set + +# +# Options common to multiple modutils +# +# CONFIG_FEATURE_2_4_MODULES is not set +# CONFIG_FEATURE_INSMOD_TRY_MMAP is not set +# CONFIG_FEATURE_INSMOD_VERSION_CHECKING is not set +# CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS is not set +# CONFIG_FEATURE_INSMOD_LOADINKMEM is not set +# CONFIG_FEATURE_INSMOD_LOAD_MAP is not set +# CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL is not set +# CONFIG_FEATURE_CHECK_TAINTED_MODULE is not set +# CONFIG_FEATURE_MODUTILS_ALIAS is not set +# CONFIG_FEATURE_MODUTILS_SYMBOLS is not set +CONFIG_DEFAULT_MODULES_DIR="/lib/modules" +CONFIG_DEFAULT_DEPMOD_FILE="modules.dep" + +# +# Linux System Utilities +# +CONFIG_BLOCKDEV=y +CONFIG_MDEV=y +CONFIG_FEATURE_MDEV_CONF=y +CONFIG_FEATURE_MDEV_RENAME=y +CONFIG_FEATURE_MDEV_RENAME_REGEXP=y +CONFIG_FEATURE_MDEV_EXEC=y +CONFIG_FEATURE_MDEV_LOAD_FIRMWARE=y +CONFIG_REV=y +CONFIG_ACPID=y +CONFIG_FEATURE_ACPID_COMPAT=y +CONFIG_BLKID=y +# CONFIG_FEATURE_BLKID_TYPE is not set +CONFIG_DMESG=y +CONFIG_FEATURE_DMESG_PRETTY=y +CONFIG_FBSET=y +CONFIG_FEATURE_FBSET_FANCY=y +CONFIG_FEATURE_FBSET_READMODE=y +CONFIG_FDFLUSH=y +CONFIG_FDFORMAT=y +CONFIG_FDISK=y +# CONFIG_FDISK_SUPPORT_LARGE_DISKS is not set +CONFIG_FEATURE_FDISK_WRITABLE=y +# CONFIG_FEATURE_AIX_LABEL is not set +# CONFIG_FEATURE_SGI_LABEL is not set +# CONFIG_FEATURE_SUN_LABEL is not set +# CONFIG_FEATURE_OSF_LABEL is not set +# CONFIG_FEATURE_GPT_LABEL is not set +CONFIG_FEATURE_FDISK_ADVANCED=y +CONFIG_FINDFS=y +CONFIG_FLOCK=y +CONFIG_FREERAMDISK=y +CONFIG_FSCK_MINIX=y +CONFIG_MKFS_EXT2=y +CONFIG_MKFS_MINIX=y +CONFIG_FEATURE_MINIX2=y +# CONFIG_MKFS_REISER is not set +CONFIG_MKFS_VFAT=y +CONFIG_GETOPT=y +CONFIG_FEATURE_GETOPT_LONG=y +CONFIG_HEXDUMP=y +CONFIG_FEATURE_HEXDUMP_REVERSE=y +CONFIG_HD=y +CONFIG_HWCLOCK=y +CONFIG_FEATURE_HWCLOCK_LONG_OPTIONS=y +# CONFIG_FEATURE_HWCLOCK_ADJTIME_FHS is not set +CONFIG_IPCRM=y +CONFIG_IPCS=y +CONFIG_LOSETUP=y +CONFIG_LSPCI=y +CONFIG_LSUSB=y +CONFIG_MKSWAP=y +CONFIG_FEATURE_MKSWAP_UUID=y +CONFIG_MORE=y +CONFIG_MOUNT=y +CONFIG_FEATURE_MOUNT_FAKE=y +CONFIG_FEATURE_MOUNT_VERBOSE=y +# CONFIG_FEATURE_MOUNT_HELPERS is not set +CONFIG_FEATURE_MOUNT_LABEL=y +# CONFIG_FEATURE_MOUNT_NFS is not set +CONFIG_FEATURE_MOUNT_CIFS=y +CONFIG_FEATURE_MOUNT_FLAGS=y +CONFIG_FEATURE_MOUNT_FSTAB=y +CONFIG_PIVOT_ROOT=y +CONFIG_RDATE=y +CONFIG_RDEV=y +CONFIG_READPROFILE=y +CONFIG_RTCWAKE=y +CONFIG_SCRIPT=y +CONFIG_SCRIPTREPLAY=y +CONFIG_SETARCH=y +CONFIG_SWAPONOFF=y +CONFIG_FEATURE_SWAPON_PRI=y +CONFIG_SWITCH_ROOT=y +CONFIG_UMOUNT=y +CONFIG_FEATURE_UMOUNT_ALL=y + +# +# Common options for mount/umount +# +CONFIG_FEATURE_MOUNT_LOOP=y +CONFIG_FEATURE_MOUNT_LOOP_CREATE=y +# CONFIG_FEATURE_MTAB_SUPPORT is not set +CONFIG_VOLUMEID=y + +# +# Filesystem/Volume identification +# +CONFIG_FEATURE_VOLUMEID_EXT=y +CONFIG_FEATURE_VOLUMEID_BTRFS=y +CONFIG_FEATURE_VOLUMEID_REISERFS=y +CONFIG_FEATURE_VOLUMEID_FAT=y +CONFIG_FEATURE_VOLUMEID_HFS=y +CONFIG_FEATURE_VOLUMEID_JFS=y +CONFIG_FEATURE_VOLUMEID_XFS=y +CONFIG_FEATURE_VOLUMEID_NTFS=y +CONFIG_FEATURE_VOLUMEID_ISO9660=y +CONFIG_FEATURE_VOLUMEID_UDF=y +CONFIG_FEATURE_VOLUMEID_LUKS=y +CONFIG_FEATURE_VOLUMEID_LINUXSWAP=y +CONFIG_FEATURE_VOLUMEID_CRAMFS=y +CONFIG_FEATURE_VOLUMEID_ROMFS=y +CONFIG_FEATURE_VOLUMEID_SYSV=y +CONFIG_FEATURE_VOLUMEID_OCFS2=y +CONFIG_FEATURE_VOLUMEID_LINUXRAID=y + +# +# Miscellaneous Utilities +# +CONFIG_CONSPY=y +CONFIG_LESS=y +CONFIG_FEATURE_LESS_MAXLINES=9999999 +CONFIG_FEATURE_LESS_BRACKETS=y +CONFIG_FEATURE_LESS_FLAGS=y +CONFIG_FEATURE_LESS_MARKS=y +CONFIG_FEATURE_LESS_REGEXP=y +CONFIG_FEATURE_LESS_WINCH=y +CONFIG_FEATURE_LESS_ASK_TERMINAL=y +CONFIG_FEATURE_LESS_DASHCMD=y +CONFIG_FEATURE_LESS_LINENUMS=y +CONFIG_NANDWRITE=y +CONFIG_NANDDUMP=y +CONFIG_SETSERIAL=y +CONFIG_UBIATTACH=y +CONFIG_UBIDETACH=y +CONFIG_UBIMKVOL=y +CONFIG_UBIRMVOL=y +CONFIG_UBIRSVOL=y +CONFIG_UBIUPDATEVOL=y +CONFIG_ADJTIMEX=y +# CONFIG_BBCONFIG is not set +# CONFIG_FEATURE_COMPRESS_BBCONFIG is not set +CONFIG_BEEP=y +CONFIG_FEATURE_BEEP_FREQ=4000 +CONFIG_FEATURE_BEEP_LENGTH_MS=30 +CONFIG_CHAT=y +CONFIG_FEATURE_CHAT_NOFAIL=y +# CONFIG_FEATURE_CHAT_TTY_HIFI is not set +CONFIG_FEATURE_CHAT_IMPLICIT_CR=y +CONFIG_FEATURE_CHAT_SWALLOW_OPTS=y +CONFIG_FEATURE_CHAT_SEND_ESCAPES=y +CONFIG_FEATURE_CHAT_VAR_ABORT_LEN=y +CONFIG_FEATURE_CHAT_CLR_ABORT=y +CONFIG_CHRT=y +CONFIG_CROND=y +CONFIG_FEATURE_CROND_D=y +CONFIG_FEATURE_CROND_CALL_SENDMAIL=y +CONFIG_FEATURE_CROND_DIR="/var/spool/cron" +CONFIG_CRONTAB=y +CONFIG_DC=y +CONFIG_FEATURE_DC_LIBM=y +# CONFIG_DEVFSD is not set +# CONFIG_DEVFSD_MODLOAD is not set +# CONFIG_DEVFSD_FG_NP is not set +# CONFIG_DEVFSD_VERBOSE is not set +# CONFIG_FEATURE_DEVFS is not set +CONFIG_DEVMEM=y +CONFIG_EJECT=y +CONFIG_FEATURE_EJECT_SCSI=y +CONFIG_FBSPLASH=y +# CONFIG_FLASHCP is not set +# CONFIG_FLASH_LOCK is not set +# CONFIG_FLASH_UNLOCK is not set +CONFIG_FLASH_ERASEALL=y +CONFIG_IONICE=y +# CONFIG_INOTIFYD is not set +CONFIG_LAST=y +# CONFIG_FEATURE_LAST_SMALL is not set +CONFIG_FEATURE_LAST_FANCY=y +CONFIG_HDPARM=y +CONFIG_FEATURE_HDPARM_GET_IDENTITY=y +CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF=y +CONFIG_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF=y +CONFIG_FEATURE_HDPARM_HDIO_DRIVE_RESET=y +CONFIG_FEATURE_HDPARM_HDIO_TRISTATE_HWIF=y +CONFIG_FEATURE_HDPARM_HDIO_GETSET_DMA=y +CONFIG_MAKEDEVS=y +# CONFIG_FEATURE_MAKEDEVS_LEAF is not set +CONFIG_FEATURE_MAKEDEVS_TABLE=y +CONFIG_MAN=y +CONFIG_MICROCOM=y +CONFIG_MOUNTPOINT=y +CONFIG_MT=y +CONFIG_RAIDAUTORUN=y +CONFIG_READAHEAD=y +# CONFIG_RFKILL is not set +CONFIG_RUNLEVEL=y +CONFIG_RX=y +CONFIG_SETSID=y +CONFIG_STRINGS=y +# CONFIG_TASKSET is not set +# CONFIG_FEATURE_TASKSET_FANCY is not set +CONFIG_TIME=y +CONFIG_TIMEOUT=y +CONFIG_TTYSIZE=y +CONFIG_VOLNAME=y +CONFIG_WALL=y +CONFIG_WATCHDOG=y + +# +# Networking Utilities +# +CONFIG_NAMEIF=y +CONFIG_FEATURE_NAMEIF_EXTENDED=y +CONFIG_NBDCLIENT=y +CONFIG_NC=y +CONFIG_NC_SERVER=y +CONFIG_NC_EXTRA=y +# CONFIG_NC_110_COMPAT is not set +CONFIG_PING=y +CONFIG_PING6=y +CONFIG_FEATURE_FANCY_PING=y +CONFIG_WHOIS=y +CONFIG_FEATURE_IPV6=y +# CONFIG_FEATURE_UNIX_LOCAL is not set +CONFIG_FEATURE_PREFER_IPV4_ADDRESS=y +# CONFIG_VERBOSE_RESOLUTION_ERRORS is not set +CONFIG_ARP=y +CONFIG_ARPING=y +CONFIG_BRCTL=y +CONFIG_FEATURE_BRCTL_FANCY=y +CONFIG_FEATURE_BRCTL_SHOW=y +CONFIG_DNSD=y +CONFIG_ETHER_WAKE=y +CONFIG_FAKEIDENTD=y +CONFIG_FTPD=y +CONFIG_FEATURE_FTP_WRITE=y +CONFIG_FEATURE_FTPD_ACCEPT_BROKEN_LIST=y +CONFIG_FTPGET=y +CONFIG_FTPPUT=y +CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS=y +CONFIG_HOSTNAME=y +CONFIG_HTTPD=y +CONFIG_FEATURE_HTTPD_RANGES=y +CONFIG_FEATURE_HTTPD_USE_SENDFILE=y +CONFIG_FEATURE_HTTPD_SETUID=y +CONFIG_FEATURE_HTTPD_BASIC_AUTH=y +CONFIG_FEATURE_HTTPD_AUTH_MD5=y +CONFIG_FEATURE_HTTPD_CGI=y +CONFIG_FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR=y +CONFIG_FEATURE_HTTPD_SET_REMOTE_PORT_TO_ENV=y +CONFIG_FEATURE_HTTPD_ENCODE_URL_STR=y +CONFIG_FEATURE_HTTPD_ERROR_PAGES=y +CONFIG_FEATURE_HTTPD_PROXY=y +CONFIG_FEATURE_HTTPD_GZIP=y +CONFIG_IFCONFIG=y +CONFIG_FEATURE_IFCONFIG_STATUS=y +CONFIG_FEATURE_IFCONFIG_SLIP=y +CONFIG_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ=y +CONFIG_FEATURE_IFCONFIG_HW=y +CONFIG_FEATURE_IFCONFIG_BROADCAST_PLUS=y +CONFIG_IFENSLAVE=y +CONFIG_IFPLUGD=y +CONFIG_IFUPDOWN=y +CONFIG_IFUPDOWN_IFSTATE_PATH="/var/run/ifstate" +CONFIG_FEATURE_IFUPDOWN_IP=y +CONFIG_FEATURE_IFUPDOWN_IP_BUILTIN=y +# CONFIG_FEATURE_IFUPDOWN_IFCONFIG_BUILTIN is not set +CONFIG_FEATURE_IFUPDOWN_IPV4=y +CONFIG_FEATURE_IFUPDOWN_IPV6=y +CONFIG_FEATURE_IFUPDOWN_MAPPING=y +# CONFIG_FEATURE_IFUPDOWN_EXTERNAL_DHCP is not set +CONFIG_INETD=y +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_ECHO=y +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DISCARD=y +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_TIME=y +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DAYTIME=y +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_CHARGEN=y +CONFIG_FEATURE_INETD_RPC=y +CONFIG_IP=y +CONFIG_FEATURE_IP_ADDRESS=y +CONFIG_FEATURE_IP_LINK=y +CONFIG_FEATURE_IP_ROUTE=y +CONFIG_FEATURE_IP_TUNNEL=y +CONFIG_FEATURE_IP_RULE=y +CONFIG_FEATURE_IP_SHORT_FORMS=y +# CONFIG_FEATURE_IP_RARE_PROTOCOLS is not set +CONFIG_IPADDR=y +CONFIG_IPLINK=y +CONFIG_IPROUTE=y +CONFIG_IPTUNNEL=y +CONFIG_IPRULE=y +CONFIG_IPCALC=y +CONFIG_FEATURE_IPCALC_FANCY=y +CONFIG_FEATURE_IPCALC_LONG_OPTIONS=y +CONFIG_NETSTAT=y +CONFIG_FEATURE_NETSTAT_WIDE=y +CONFIG_FEATURE_NETSTAT_PRG=y +CONFIG_NSLOOKUP=y +CONFIG_NTPD=y +CONFIG_FEATURE_NTPD_SERVER=y +CONFIG_PSCAN=y +CONFIG_ROUTE=y +CONFIG_SLATTACH=y +CONFIG_TCPSVD=y +CONFIG_TELNET=y +CONFIG_FEATURE_TELNET_TTYPE=y +CONFIG_FEATURE_TELNET_AUTOLOGIN=y +CONFIG_TELNETD=y +CONFIG_FEATURE_TELNETD_STANDALONE=y +CONFIG_FEATURE_TELNETD_INETD_WAIT=y +CONFIG_TFTP=y +CONFIG_TFTPD=y + +# +# Common options for tftp/tftpd +# +CONFIG_FEATURE_TFTP_GET=y +CONFIG_FEATURE_TFTP_PUT=y +CONFIG_FEATURE_TFTP_BLOCKSIZE=y +CONFIG_FEATURE_TFTP_PROGRESS_BAR=y +# CONFIG_TFTP_DEBUG is not set +CONFIG_TRACEROUTE=y +CONFIG_TRACEROUTE6=y +CONFIG_FEATURE_TRACEROUTE_VERBOSE=y +# CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE is not set +# CONFIG_FEATURE_TRACEROUTE_USE_ICMP is not set +CONFIG_TUNCTL=y +CONFIG_FEATURE_TUNCTL_UG=y +# CONFIG_UDHCPC6 is not set +CONFIG_UDHCPD=y +CONFIG_DHCPRELAY=y +CONFIG_DUMPLEASES=y +CONFIG_FEATURE_UDHCPD_WRITE_LEASES_EARLY=y +# CONFIG_FEATURE_UDHCPD_BASE_IP_ON_MAC is not set +CONFIG_DHCPD_LEASES_FILE="/var/lib/misc/udhcpd.leases" +CONFIG_UDHCPC=y +CONFIG_FEATURE_UDHCPC_ARPING=y +# CONFIG_FEATURE_UDHCP_PORT is not set +CONFIG_UDHCP_DEBUG=9 +CONFIG_FEATURE_UDHCP_RFC3397=y +CONFIG_FEATURE_UDHCP_8021Q=y +CONFIG_UDHCPC_DEFAULT_SCRIPT="/usr/share/udhcpc/default.script" +CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=80 +CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS="-R -n" +CONFIG_UDPSVD=y +CONFIG_VCONFIG=y +CONFIG_WGET=y +CONFIG_FEATURE_WGET_STATUSBAR=y +CONFIG_FEATURE_WGET_AUTHENTICATION=y +CONFIG_FEATURE_WGET_LONG_OPTIONS=y +CONFIG_FEATURE_WGET_TIMEOUT=y +CONFIG_ZCIP=y + +# +# Print Utilities +# +CONFIG_LPD=y +CONFIG_LPR=y +CONFIG_LPQ=y + +# +# Mail Utilities +# +CONFIG_MAKEMIME=y +CONFIG_FEATURE_MIME_CHARSET="us-ascii" +CONFIG_POPMAILDIR=y +CONFIG_FEATURE_POPMAILDIR_DELIVERY=y +CONFIG_REFORMIME=y +CONFIG_FEATURE_REFORMIME_COMPAT=y +CONFIG_SENDMAIL=y + +# +# Process Utilities +# +CONFIG_IOSTAT=y +CONFIG_LSOF=y +CONFIG_MPSTAT=y +CONFIG_NMETER=y +CONFIG_PMAP=y +CONFIG_POWERTOP=y +CONFIG_PSTREE=y +CONFIG_PWDX=y +CONFIG_SMEMCAP=y +CONFIG_UPTIME=y +CONFIG_FEATURE_UPTIME_UTMP_SUPPORT=y +CONFIG_FREE=y +CONFIG_FUSER=y +CONFIG_KILL=y +CONFIG_KILLALL=y +CONFIG_KILLALL5=y +CONFIG_PGREP=y +CONFIG_PIDOF=y +CONFIG_FEATURE_PIDOF_SINGLE=y +CONFIG_FEATURE_PIDOF_OMIT=y +CONFIG_PKILL=y +CONFIG_PS=y +# CONFIG_FEATURE_PS_WIDE is not set +# CONFIG_FEATURE_PS_LONG is not set +CONFIG_FEATURE_PS_TIME=y +CONFIG_FEATURE_PS_ADDITIONAL_COLUMNS=y +# CONFIG_FEATURE_PS_UNUSUAL_SYSTEMS is not set +CONFIG_RENICE=y +CONFIG_BB_SYSCTL=y +CONFIG_TOP=y +CONFIG_FEATURE_TOP_CPU_USAGE_PERCENTAGE=y +CONFIG_FEATURE_TOP_CPU_GLOBAL_PERCENTS=y +CONFIG_FEATURE_TOP_SMP_CPU=y +CONFIG_FEATURE_TOP_DECIMALS=y +CONFIG_FEATURE_TOP_SMP_PROCESS=y +CONFIG_FEATURE_TOPMEM=y +CONFIG_FEATURE_SHOW_THREADS=y +CONFIG_WATCH=y + +# +# Runit Utilities +# +CONFIG_RUNSV=y +CONFIG_RUNSVDIR=y +# CONFIG_FEATURE_RUNSVDIR_LOG is not set +CONFIG_SV=y +CONFIG_SV_DEFAULT_SERVICE_DIR="/var/service" +CONFIG_SVLOGD=y +CONFIG_CHPST=y +CONFIG_SETUIDGID=y +CONFIG_ENVUIDGID=y +CONFIG_ENVDIR=y +CONFIG_SOFTLIMIT=y +# CONFIG_CHCON is not set +# CONFIG_FEATURE_CHCON_LONG_OPTIONS is not set +# CONFIG_GETENFORCE is not set +# CONFIG_GETSEBOOL is not set +# CONFIG_LOAD_POLICY is not set +# CONFIG_MATCHPATHCON is not set +# CONFIG_RESTORECON is not set +# CONFIG_RUNCON is not set +# CONFIG_FEATURE_RUNCON_LONG_OPTIONS is not set +# CONFIG_SELINUXENABLED is not set +# CONFIG_SETENFORCE is not set +# CONFIG_SETFILES is not set +# CONFIG_FEATURE_SETFILES_CHECK_OPTION is not set +# CONFIG_SETSEBOOL is not set +# CONFIG_SESTATUS is not set + +# +# Shells +# +CONFIG_ASH=y +CONFIG_ASH_BASH_COMPAT=y +# CONFIG_ASH_IDLE_TIMEOUT is not set +CONFIG_ASH_JOB_CONTROL=y +CONFIG_ASH_ALIAS=y +CONFIG_ASH_GETOPTS=y +CONFIG_ASH_BUILTIN_ECHO=y +CONFIG_ASH_BUILTIN_PRINTF=y +CONFIG_ASH_BUILTIN_TEST=y +CONFIG_ASH_CMDCMD=y +# CONFIG_ASH_MAIL is not set +CONFIG_ASH_OPTIMIZE_FOR_SIZE=y +CONFIG_ASH_RANDOM_SUPPORT=y +CONFIG_ASH_EXPAND_PRMT=y +CONFIG_CTTYHACK=y +CONFIG_HUSH=y +CONFIG_HUSH_BASH_COMPAT=y +CONFIG_HUSH_BRACE_EXPANSION=y +CONFIG_HUSH_HELP=y +CONFIG_HUSH_INTERACTIVE=y +CONFIG_HUSH_SAVEHISTORY=y +CONFIG_HUSH_JOB=y +CONFIG_HUSH_TICK=y +CONFIG_HUSH_IF=y +CONFIG_HUSH_LOOPS=y +CONFIG_HUSH_CASE=y +CONFIG_HUSH_FUNCTIONS=y +CONFIG_HUSH_LOCAL=y +CONFIG_HUSH_RANDOM_SUPPORT=y +CONFIG_HUSH_EXPORT_N=y +CONFIG_HUSH_MODE_X=y +# CONFIG_MSH is not set +CONFIG_FEATURE_SH_IS_ASH=y +# CONFIG_FEATURE_SH_IS_HUSH is not set +# CONFIG_FEATURE_SH_IS_NONE is not set +# CONFIG_FEATURE_BASH_IS_ASH is not set +# CONFIG_FEATURE_BASH_IS_HUSH is not set +CONFIG_FEATURE_BASH_IS_NONE=y +CONFIG_SH_MATH_SUPPORT=y +CONFIG_SH_MATH_SUPPORT_64=y +CONFIG_FEATURE_SH_EXTRA_QUIET=y +# CONFIG_FEATURE_SH_STANDALONE is not set +# CONFIG_FEATURE_SH_NOFORK is not set +CONFIG_FEATURE_SH_HISTFILESIZE=y + +# +# System Logging Utilities +# +CONFIG_SYSLOGD=y +CONFIG_FEATURE_ROTATE_LOGFILE=y +CONFIG_FEATURE_REMOTE_LOG=y +CONFIG_FEATURE_SYSLOGD_DUP=y +CONFIG_FEATURE_SYSLOGD_CFG=y +CONFIG_FEATURE_SYSLOGD_READ_BUFFER_SIZE=256 +CONFIG_FEATURE_IPC_SYSLOG=y +CONFIG_FEATURE_IPC_SYSLOG_BUFFER_SIZE=16 +CONFIG_LOGREAD=y +CONFIG_FEATURE_LOGREAD_REDUCED_LOCKING=y +CONFIG_KLOGD=y +CONFIG_FEATURE_KLOGD_KLOGCTL=y +CONFIG_LOGGER=y diff -Naur busybox-1.20.2/.config.old busybox-1.20.2_mod/.config.old --- busybox-1.20.2/.config.old 1970-01-01 08:00:00.000000000 +0800 +++ busybox-1.20.2_mod/.config.old 2024-04-11 16:45:39.064082623 +0800 @@ -0,0 +1,1024 @@ +# +# Automatically generated make config: don't edit +# Busybox version: 1.20.2 +# Thu Apr 11 16:45:39 2024 +# +CONFIG_HAVE_DOT_CONFIG=y + +# +# Busybox Settings +# + +# +# General Configuration +# +CONFIG_DESKTOP=y +# CONFIG_EXTRA_COMPAT is not set +CONFIG_INCLUDE_SUSv2=y +# CONFIG_USE_PORTABLE_CODE is not set +CONFIG_PLATFORM_LINUX=y +CONFIG_FEATURE_BUFFERS_USE_MALLOC=y +# CONFIG_FEATURE_BUFFERS_GO_ON_STACK is not set +# CONFIG_FEATURE_BUFFERS_GO_IN_BSS is not set +CONFIG_SHOW_USAGE=y +CONFIG_FEATURE_VERBOSE_USAGE=y +CONFIG_FEATURE_COMPRESS_USAGE=y +CONFIG_FEATURE_INSTALLER=y +# CONFIG_INSTALL_NO_USR is not set +# CONFIG_LOCALE_SUPPORT is not set +CONFIG_UNICODE_SUPPORT=y +# CONFIG_UNICODE_USING_LOCALE is not set +# CONFIG_FEATURE_CHECK_UNICODE_IN_ENV is not set +CONFIG_SUBST_WCHAR=63 +CONFIG_LAST_SUPPORTED_WCHAR=767 +# CONFIG_UNICODE_COMBINING_WCHARS is not set +# CONFIG_UNICODE_WIDE_WCHARS is not set +# CONFIG_UNICODE_BIDI_SUPPORT is not set +# CONFIG_UNICODE_NEUTRAL_TABLE is not set +# CONFIG_UNICODE_PRESERVE_BROKEN is not set +CONFIG_LONG_OPTS=y +CONFIG_FEATURE_DEVPTS=y +# CONFIG_FEATURE_CLEAN_UP is not set +CONFIG_FEATURE_UTMP=y +CONFIG_FEATURE_WTMP=y +CONFIG_FEATURE_PIDFILE=y +CONFIG_FEATURE_SUID=y +CONFIG_FEATURE_SUID_CONFIG=y +CONFIG_FEATURE_SUID_CONFIG_QUIET=y +# CONFIG_SELINUX is not set +# CONFIG_FEATURE_PREFER_APPLETS is not set +CONFIG_BUSYBOX_EXEC_PATH="/proc/self/exe" +CONFIG_FEATURE_SYSLOG=y +CONFIG_FEATURE_HAVE_RPC=y + +# +# Build Options +# +CONFIG_STATIC=y +# CONFIG_PIE is not set +# CONFIG_NOMMU is not set +# CONFIG_BUILD_LIBBUSYBOX is not set +# CONFIG_FEATURE_INDIVIDUAL is not set +# CONFIG_FEATURE_SHARED_BUSYBOX is not set +CONFIG_LFS=y +CONFIG_CROSS_COMPILER_PREFIX="aarch64-linux-gnu-" +CONFIG_SYSROOT="" +CONFIG_EXTRA_CFLAGS="" +CONFIG_EXTRA_LDFLAGS="" +CONFIG_EXTRA_LDLIBS="" + +# +# Debugging Options +# +# CONFIG_DEBUG is not set +# CONFIG_DEBUG_PESSIMIZE is not set +# CONFIG_WERROR is not set +CONFIG_NO_DEBUG_LIB=y +# CONFIG_DMALLOC is not set +# CONFIG_EFENCE is not set + +# +# Installation Options ("make install" behavior) +# +CONFIG_INSTALL_APPLET_SYMLINKS=y +# CONFIG_INSTALL_APPLET_HARDLINKS is not set +# CONFIG_INSTALL_APPLET_SCRIPT_WRAPPERS is not set +# CONFIG_INSTALL_APPLET_DONT is not set +# CONFIG_INSTALL_SH_APPLET_SYMLINK is not set +# CONFIG_INSTALL_SH_APPLET_HARDLINK is not set +# CONFIG_INSTALL_SH_APPLET_SCRIPT_WRAPPER is not set +CONFIG_PREFIX="./_install" + +# +# Busybox Library Tuning +# +CONFIG_FEATURE_SYSTEMD=y +CONFIG_FEATURE_RTMINMAX=y +CONFIG_PASSWORD_MINLEN=6 +CONFIG_MD5_SMALL=1 +CONFIG_FEATURE_FAST_TOP=y +# CONFIG_FEATURE_ETC_NETWORKS is not set +CONFIG_FEATURE_USE_TERMIOS=y +CONFIG_FEATURE_EDITING=y +CONFIG_FEATURE_EDITING_MAX_LEN=1024 +# CONFIG_FEATURE_EDITING_VI is not set +CONFIG_FEATURE_EDITING_HISTORY=255 +CONFIG_FEATURE_EDITING_SAVEHISTORY=y +# CONFIG_FEATURE_EDITING_SAVE_ON_EXIT is not set +CONFIG_FEATURE_REVERSE_SEARCH=y +CONFIG_FEATURE_TAB_COMPLETION=y +# CONFIG_FEATURE_USERNAME_COMPLETION is not set +CONFIG_FEATURE_EDITING_FANCY_PROMPT=y +# CONFIG_FEATURE_EDITING_ASK_TERMINAL is not set +CONFIG_FEATURE_NON_POSIX_CP=y +# CONFIG_FEATURE_VERBOSE_CP_MESSAGE is not set +CONFIG_FEATURE_COPYBUF_KB=4 +CONFIG_FEATURE_SKIP_ROOTFS=y +# CONFIG_MONOTONIC_SYSCALL is not set +CONFIG_IOCTL_HEX2STR_ERROR=y +CONFIG_FEATURE_HWIB=y + +# +# Applets +# + +# +# Archival Utilities +# +CONFIG_FEATURE_SEAMLESS_XZ=y +CONFIG_FEATURE_SEAMLESS_LZMA=y +CONFIG_FEATURE_SEAMLESS_BZ2=y +CONFIG_FEATURE_SEAMLESS_GZ=y +# CONFIG_FEATURE_SEAMLESS_Z is not set +# CONFIG_AR is not set +# CONFIG_FEATURE_AR_LONG_FILENAMES is not set +# CONFIG_FEATURE_AR_CREATE is not set +CONFIG_BUNZIP2=y +CONFIG_BZIP2=y +CONFIG_CPIO=y +CONFIG_FEATURE_CPIO_O=y +CONFIG_FEATURE_CPIO_P=y +# CONFIG_DPKG is not set +# CONFIG_DPKG_DEB is not set +# CONFIG_FEATURE_DPKG_DEB_EXTRACT_ONLY is not set +CONFIG_GUNZIP=y +CONFIG_GZIP=y +CONFIG_FEATURE_GZIP_LONG_OPTIONS=y +CONFIG_GZIP_FAST=0 +CONFIG_LZOP=y +# CONFIG_LZOP_COMPR_HIGH is not set +CONFIG_RPM2CPIO=y +CONFIG_RPM=y +CONFIG_TAR=y +CONFIG_FEATURE_TAR_CREATE=y +CONFIG_FEATURE_TAR_AUTODETECT=y +CONFIG_FEATURE_TAR_FROM=y +CONFIG_FEATURE_TAR_OLDGNU_COMPATIBILITY=y +CONFIG_FEATURE_TAR_OLDSUN_COMPATIBILITY=y +CONFIG_FEATURE_TAR_GNU_EXTENSIONS=y +CONFIG_FEATURE_TAR_LONG_OPTIONS=y +CONFIG_FEATURE_TAR_TO_COMMAND=y +CONFIG_FEATURE_TAR_UNAME_GNAME=y +CONFIG_FEATURE_TAR_NOPRESERVE_TIME=y +# CONFIG_FEATURE_TAR_SELINUX is not set +# CONFIG_UNCOMPRESS is not set +CONFIG_UNLZMA=y +# CONFIG_FEATURE_LZMA_FAST is not set +CONFIG_LZMA=y +CONFIG_UNXZ=y +CONFIG_XZ=y +CONFIG_UNZIP=y + +# +# Coreutils +# +CONFIG_BASENAME=y +CONFIG_CAT=y +CONFIG_DATE=y +CONFIG_FEATURE_DATE_ISOFMT=y +# CONFIG_FEATURE_DATE_NANO is not set +CONFIG_FEATURE_DATE_COMPAT=y +CONFIG_HOSTID=y +CONFIG_ID=y +CONFIG_GROUPS=y +CONFIG_TEST=y +CONFIG_FEATURE_TEST_64=y +CONFIG_TOUCH=y +CONFIG_FEATURE_TOUCH_SUSV3=y +CONFIG_TR=y +CONFIG_FEATURE_TR_CLASSES=y +CONFIG_FEATURE_TR_EQUIV=y +CONFIG_BASE64=y +CONFIG_WHO=y +CONFIG_USERS=y +CONFIG_CAL=y +CONFIG_CATV=y +CONFIG_CHGRP=y +CONFIG_CHMOD=y +CONFIG_CHOWN=y +CONFIG_FEATURE_CHOWN_LONG_OPTIONS=y +CONFIG_CHROOT=y +CONFIG_CKSUM=y +CONFIG_COMM=y +CONFIG_CP=y +CONFIG_FEATURE_CP_LONG_OPTIONS=y +CONFIG_CUT=y +CONFIG_DD=y +CONFIG_FEATURE_DD_SIGNAL_HANDLING=y +CONFIG_FEATURE_DD_THIRD_STATUS_LINE=y +CONFIG_FEATURE_DD_IBS_OBS=y +CONFIG_DF=y +CONFIG_FEATURE_DF_FANCY=y +CONFIG_DIRNAME=y +CONFIG_DOS2UNIX=y +CONFIG_UNIX2DOS=y +CONFIG_DU=y +CONFIG_FEATURE_DU_DEFAULT_BLOCKSIZE_1K=y +CONFIG_ECHO=y +CONFIG_FEATURE_FANCY_ECHO=y +CONFIG_ENV=y +CONFIG_FEATURE_ENV_LONG_OPTIONS=y +CONFIG_EXPAND=y +CONFIG_FEATURE_EXPAND_LONG_OPTIONS=y +CONFIG_EXPR=y +CONFIG_EXPR_MATH_SUPPORT_64=y +CONFIG_FALSE=y +CONFIG_FOLD=y +CONFIG_FSYNC=y +CONFIG_HEAD=y +CONFIG_FEATURE_FANCY_HEAD=y +CONFIG_INSTALL=y +CONFIG_FEATURE_INSTALL_LONG_OPTIONS=y +CONFIG_LN=y +CONFIG_LOGNAME=y +CONFIG_LS=y +CONFIG_FEATURE_LS_FILETYPES=y +CONFIG_FEATURE_LS_FOLLOWLINKS=y +CONFIG_FEATURE_LS_RECURSIVE=y +CONFIG_FEATURE_LS_SORTFILES=y +CONFIG_FEATURE_LS_TIMESTAMPS=y +CONFIG_FEATURE_LS_USERNAME=y +CONFIG_FEATURE_LS_COLOR=y +CONFIG_FEATURE_LS_COLOR_IS_DEFAULT=y +CONFIG_MD5SUM=y +CONFIG_MKDIR=y +CONFIG_FEATURE_MKDIR_LONG_OPTIONS=y +CONFIG_MKFIFO=y +CONFIG_MKNOD=y +CONFIG_MV=y +CONFIG_FEATURE_MV_LONG_OPTIONS=y +CONFIG_NICE=y +CONFIG_NOHUP=y +CONFIG_OD=y +CONFIG_PRINTENV=y +CONFIG_PRINTF=y +CONFIG_PWD=y +CONFIG_READLINK=y +CONFIG_FEATURE_READLINK_FOLLOW=y +CONFIG_REALPATH=y +CONFIG_RM=y +CONFIG_RMDIR=y +CONFIG_FEATURE_RMDIR_LONG_OPTIONS=y +CONFIG_SEQ=y +CONFIG_SHA1SUM=y +CONFIG_SHA256SUM=y +CONFIG_SHA512SUM=y +CONFIG_SLEEP=y +CONFIG_FEATURE_FANCY_SLEEP=y +CONFIG_FEATURE_FLOAT_SLEEP=y +CONFIG_SORT=y +CONFIG_FEATURE_SORT_BIG=y +CONFIG_SPLIT=y +CONFIG_FEATURE_SPLIT_FANCY=y +CONFIG_STAT=y +CONFIG_FEATURE_STAT_FORMAT=y +CONFIG_STTY=y +CONFIG_SUM=y +CONFIG_SYNC=y +CONFIG_TAC=y +CONFIG_TAIL=y +CONFIG_FEATURE_FANCY_TAIL=y +CONFIG_TEE=y +CONFIG_FEATURE_TEE_USE_BLOCK_IO=y +CONFIG_TRUE=y +CONFIG_TTY=y +CONFIG_UNAME=y +CONFIG_UNEXPAND=y +CONFIG_FEATURE_UNEXPAND_LONG_OPTIONS=y +CONFIG_UNIQ=y +CONFIG_USLEEP=y +CONFIG_UUDECODE=y +CONFIG_UUENCODE=y +CONFIG_WC=y +CONFIG_FEATURE_WC_LARGE=y +CONFIG_WHOAMI=y +CONFIG_YES=y + +# +# Common options for cp and mv +# +CONFIG_FEATURE_PRESERVE_HARDLINKS=y + +# +# Common options for ls, more and telnet +# +CONFIG_FEATURE_AUTOWIDTH=y + +# +# Common options for df, du, ls +# +CONFIG_FEATURE_HUMAN_READABLE=y + +# +# Common options for md5sum, sha1sum, sha256sum, sha512sum +# +CONFIG_FEATURE_MD5_SHA1_SUM_CHECK=y + +# +# Console Utilities +# +CONFIG_CHVT=y +CONFIG_FGCONSOLE=y +CONFIG_CLEAR=y +CONFIG_DEALLOCVT=y +CONFIG_DUMPKMAP=y +CONFIG_KBD_MODE=y +CONFIG_LOADFONT=y +CONFIG_LOADKMAP=y +CONFIG_OPENVT=y +CONFIG_RESET=y +CONFIG_RESIZE=y +CONFIG_FEATURE_RESIZE_PRINT=y +CONFIG_SETCONSOLE=y +CONFIG_FEATURE_SETCONSOLE_LONG_OPTIONS=y +CONFIG_SETFONT=y +CONFIG_FEATURE_SETFONT_TEXTUAL_MAP=y +CONFIG_DEFAULT_SETFONT_DIR="" +CONFIG_SETKEYCODES=y +CONFIG_SETLOGCONS=y +CONFIG_SHOWKEY=y + +# +# Common options for loadfont and setfont +# +CONFIG_FEATURE_LOADFONT_PSF2=y +CONFIG_FEATURE_LOADFONT_RAW=y + +# +# Debian Utilities +# +CONFIG_MKTEMP=y +CONFIG_PIPE_PROGRESS=y +CONFIG_RUN_PARTS=y +CONFIG_FEATURE_RUN_PARTS_LONG_OPTIONS=y +CONFIG_FEATURE_RUN_PARTS_FANCY=y +CONFIG_START_STOP_DAEMON=y +CONFIG_FEATURE_START_STOP_DAEMON_FANCY=y +CONFIG_FEATURE_START_STOP_DAEMON_LONG_OPTIONS=y +CONFIG_WHICH=y + +# +# Editors +# +CONFIG_PATCH=y +CONFIG_VI=y +CONFIG_FEATURE_VI_MAX_LEN=4096 +# CONFIG_FEATURE_VI_8BIT is not set +CONFIG_FEATURE_VI_COLON=y +CONFIG_FEATURE_VI_YANKMARK=y +CONFIG_FEATURE_VI_SEARCH=y +# CONFIG_FEATURE_VI_REGEX_SEARCH is not set +CONFIG_FEATURE_VI_USE_SIGNALS=y +CONFIG_FEATURE_VI_DOT_CMD=y +CONFIG_FEATURE_VI_READONLY=y +CONFIG_FEATURE_VI_SETOPTS=y +CONFIG_FEATURE_VI_SET=y +CONFIG_FEATURE_VI_WIN_RESIZE=y +CONFIG_FEATURE_VI_ASK_TERMINAL=y +CONFIG_FEATURE_VI_OPTIMIZE_CURSOR=y +CONFIG_AWK=y +CONFIG_FEATURE_AWK_LIBM=y +CONFIG_CMP=y +CONFIG_DIFF=y +CONFIG_FEATURE_DIFF_LONG_OPTIONS=y +CONFIG_FEATURE_DIFF_DIR=y +CONFIG_ED=y +CONFIG_SED=y +CONFIG_FEATURE_ALLOW_EXEC=y + +# +# Finding Utilities +# +CONFIG_FIND=y +CONFIG_FEATURE_FIND_PRINT0=y +CONFIG_FEATURE_FIND_MTIME=y +CONFIG_FEATURE_FIND_MMIN=y +CONFIG_FEATURE_FIND_PERM=y +CONFIG_FEATURE_FIND_TYPE=y +CONFIG_FEATURE_FIND_XDEV=y +CONFIG_FEATURE_FIND_MAXDEPTH=y +CONFIG_FEATURE_FIND_NEWER=y +CONFIG_FEATURE_FIND_INUM=y +CONFIG_FEATURE_FIND_EXEC=y +CONFIG_FEATURE_FIND_USER=y +CONFIG_FEATURE_FIND_GROUP=y +CONFIG_FEATURE_FIND_NOT=y +CONFIG_FEATURE_FIND_DEPTH=y +CONFIG_FEATURE_FIND_PAREN=y +CONFIG_FEATURE_FIND_SIZE=y +CONFIG_FEATURE_FIND_PRUNE=y +CONFIG_FEATURE_FIND_DELETE=y +CONFIG_FEATURE_FIND_PATH=y +CONFIG_FEATURE_FIND_REGEX=y +# CONFIG_FEATURE_FIND_CONTEXT is not set +CONFIG_FEATURE_FIND_LINKS=y +CONFIG_GREP=y +CONFIG_FEATURE_GREP_EGREP_ALIAS=y +CONFIG_FEATURE_GREP_FGREP_ALIAS=y +CONFIG_FEATURE_GREP_CONTEXT=y +CONFIG_XARGS=y +CONFIG_FEATURE_XARGS_SUPPORT_CONFIRMATION=y +CONFIG_FEATURE_XARGS_SUPPORT_QUOTES=y +CONFIG_FEATURE_XARGS_SUPPORT_TERMOPT=y +CONFIG_FEATURE_XARGS_SUPPORT_ZERO_TERM=y + +# +# Init Utilities +# +CONFIG_BOOTCHARTD=y +CONFIG_FEATURE_BOOTCHARTD_BLOATED_HEADER=y +CONFIG_FEATURE_BOOTCHARTD_CONFIG_FILE=y +CONFIG_HALT=y +# CONFIG_FEATURE_CALL_TELINIT is not set +CONFIG_TELINIT_PATH="" +CONFIG_INIT=y +CONFIG_FEATURE_USE_INITTAB=y +# CONFIG_FEATURE_KILL_REMOVED is not set +CONFIG_FEATURE_KILL_DELAY=0 +CONFIG_FEATURE_INIT_SCTTY=y +# CONFIG_FEATURE_INIT_SYSLOG is not set +CONFIG_FEATURE_EXTRA_QUIET=y +CONFIG_FEATURE_INIT_COREDUMPS=y +CONFIG_FEATURE_INITRD=y +CONFIG_INIT_TERMINAL_TYPE="linux" +CONFIG_MESG=y +CONFIG_FEATURE_MESG_ENABLE_ONLY_GROUP=y + +# +# Login/Password Management Utilities +# +CONFIG_ADD_SHELL=y +CONFIG_REMOVE_SHELL=y +CONFIG_FEATURE_SHADOWPASSWDS=y +CONFIG_USE_BB_PWD_GRP=y +CONFIG_USE_BB_SHADOW=y +CONFIG_USE_BB_CRYPT=y +CONFIG_USE_BB_CRYPT_SHA=y +CONFIG_ADDUSER=y +CONFIG_FEATURE_ADDUSER_LONG_OPTIONS=y +# CONFIG_FEATURE_CHECK_NAMES is not set +CONFIG_FIRST_SYSTEM_ID=100 +CONFIG_LAST_SYSTEM_ID=999 +CONFIG_ADDGROUP=y +CONFIG_FEATURE_ADDGROUP_LONG_OPTIONS=y +CONFIG_FEATURE_ADDUSER_TO_GROUP=y +CONFIG_DELUSER=y +CONFIG_DELGROUP=y +CONFIG_FEATURE_DEL_USER_FROM_GROUP=y +CONFIG_GETTY=y +CONFIG_LOGIN=y +# CONFIG_LOGIN_SESSION_AS_CHILD is not set +# CONFIG_PAM is not set +CONFIG_LOGIN_SCRIPTS=y +CONFIG_FEATURE_NOLOGIN=y +CONFIG_FEATURE_SECURETTY=y +CONFIG_PASSWD=y +CONFIG_FEATURE_PASSWD_WEAK_CHECK=y +CONFIG_CRYPTPW=y +CONFIG_CHPASSWD=y +CONFIG_FEATURE_DEFAULT_PASSWD_ALGO="des" +CONFIG_SU=y +CONFIG_FEATURE_SU_SYSLOG=y +CONFIG_FEATURE_SU_CHECKS_SHELLS=y +CONFIG_SULOGIN=y +CONFIG_VLOCK=y + +# +# Linux Ext2 FS Progs +# +CONFIG_CHATTR=y +CONFIG_FSCK=y +CONFIG_LSATTR=y +# CONFIG_TUNE2FS is not set + +# +# Linux Module Utilities +# +CONFIG_MODINFO=y +CONFIG_MODPROBE_SMALL=y +CONFIG_FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE=y +CONFIG_FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED=y +# CONFIG_INSMOD is not set +# CONFIG_RMMOD is not set +# CONFIG_LSMOD is not set +# CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT is not set +# CONFIG_MODPROBE is not set +# CONFIG_FEATURE_MODPROBE_BLACKLIST is not set +# CONFIG_DEPMOD is not set + +# +# Options common to multiple modutils +# +# CONFIG_FEATURE_2_4_MODULES is not set +# CONFIG_FEATURE_INSMOD_TRY_MMAP is not set +# CONFIG_FEATURE_INSMOD_VERSION_CHECKING is not set +# CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS is not set +# CONFIG_FEATURE_INSMOD_LOADINKMEM is not set +# CONFIG_FEATURE_INSMOD_LOAD_MAP is not set +# CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL is not set +# CONFIG_FEATURE_CHECK_TAINTED_MODULE is not set +# CONFIG_FEATURE_MODUTILS_ALIAS is not set +# CONFIG_FEATURE_MODUTILS_SYMBOLS is not set +CONFIG_DEFAULT_MODULES_DIR="/lib/modules" +CONFIG_DEFAULT_DEPMOD_FILE="modules.dep" + +# +# Linux System Utilities +# +CONFIG_BLOCKDEV=y +CONFIG_MDEV=y +CONFIG_FEATURE_MDEV_CONF=y +CONFIG_FEATURE_MDEV_RENAME=y +CONFIG_FEATURE_MDEV_RENAME_REGEXP=y +CONFIG_FEATURE_MDEV_EXEC=y +CONFIG_FEATURE_MDEV_LOAD_FIRMWARE=y +CONFIG_REV=y +CONFIG_ACPID=y +CONFIG_FEATURE_ACPID_COMPAT=y +CONFIG_BLKID=y +# CONFIG_FEATURE_BLKID_TYPE is not set +CONFIG_DMESG=y +CONFIG_FEATURE_DMESG_PRETTY=y +CONFIG_FBSET=y +CONFIG_FEATURE_FBSET_FANCY=y +CONFIG_FEATURE_FBSET_READMODE=y +CONFIG_FDFLUSH=y +CONFIG_FDFORMAT=y +CONFIG_FDISK=y +# CONFIG_FDISK_SUPPORT_LARGE_DISKS is not set +CONFIG_FEATURE_FDISK_WRITABLE=y +# CONFIG_FEATURE_AIX_LABEL is not set +# CONFIG_FEATURE_SGI_LABEL is not set +# CONFIG_FEATURE_SUN_LABEL is not set +# CONFIG_FEATURE_OSF_LABEL is not set +# CONFIG_FEATURE_GPT_LABEL is not set +CONFIG_FEATURE_FDISK_ADVANCED=y +CONFIG_FINDFS=y +CONFIG_FLOCK=y +CONFIG_FREERAMDISK=y +CONFIG_FSCK_MINIX=y +CONFIG_MKFS_EXT2=y +CONFIG_MKFS_MINIX=y +CONFIG_FEATURE_MINIX2=y +# CONFIG_MKFS_REISER is not set +CONFIG_MKFS_VFAT=y +CONFIG_GETOPT=y +CONFIG_FEATURE_GETOPT_LONG=y +CONFIG_HEXDUMP=y +CONFIG_FEATURE_HEXDUMP_REVERSE=y +CONFIG_HD=y +CONFIG_HWCLOCK=y +CONFIG_FEATURE_HWCLOCK_LONG_OPTIONS=y +# CONFIG_FEATURE_HWCLOCK_ADJTIME_FHS is not set +CONFIG_IPCRM=y +CONFIG_IPCS=y +CONFIG_LOSETUP=y +CONFIG_LSPCI=y +CONFIG_LSUSB=y +CONFIG_MKSWAP=y +CONFIG_FEATURE_MKSWAP_UUID=y +CONFIG_MORE=y +CONFIG_MOUNT=y +CONFIG_FEATURE_MOUNT_FAKE=y +CONFIG_FEATURE_MOUNT_VERBOSE=y +# CONFIG_FEATURE_MOUNT_HELPERS is not set +CONFIG_FEATURE_MOUNT_LABEL=y +# CONFIG_FEATURE_MOUNT_NFS is not set +CONFIG_FEATURE_MOUNT_CIFS=y +CONFIG_FEATURE_MOUNT_FLAGS=y +CONFIG_FEATURE_MOUNT_FSTAB=y +CONFIG_PIVOT_ROOT=y +CONFIG_RDATE=y +CONFIG_RDEV=y +CONFIG_READPROFILE=y +CONFIG_RTCWAKE=y +CONFIG_SCRIPT=y +CONFIG_SCRIPTREPLAY=y +CONFIG_SETARCH=y +CONFIG_SWAPONOFF=y +CONFIG_FEATURE_SWAPON_PRI=y +CONFIG_SWITCH_ROOT=y +CONFIG_UMOUNT=y +CONFIG_FEATURE_UMOUNT_ALL=y + +# +# Common options for mount/umount +# +CONFIG_FEATURE_MOUNT_LOOP=y +CONFIG_FEATURE_MOUNT_LOOP_CREATE=y +# CONFIG_FEATURE_MTAB_SUPPORT is not set +CONFIG_VOLUMEID=y + +# +# Filesystem/Volume identification +# +CONFIG_FEATURE_VOLUMEID_EXT=y +CONFIG_FEATURE_VOLUMEID_BTRFS=y +CONFIG_FEATURE_VOLUMEID_REISERFS=y +CONFIG_FEATURE_VOLUMEID_FAT=y +CONFIG_FEATURE_VOLUMEID_HFS=y +CONFIG_FEATURE_VOLUMEID_JFS=y +CONFIG_FEATURE_VOLUMEID_XFS=y +CONFIG_FEATURE_VOLUMEID_NTFS=y +CONFIG_FEATURE_VOLUMEID_ISO9660=y +CONFIG_FEATURE_VOLUMEID_UDF=y +CONFIG_FEATURE_VOLUMEID_LUKS=y +CONFIG_FEATURE_VOLUMEID_LINUXSWAP=y +CONFIG_FEATURE_VOLUMEID_CRAMFS=y +CONFIG_FEATURE_VOLUMEID_ROMFS=y +CONFIG_FEATURE_VOLUMEID_SYSV=y +CONFIG_FEATURE_VOLUMEID_OCFS2=y +CONFIG_FEATURE_VOLUMEID_LINUXRAID=y + +# +# Miscellaneous Utilities +# +CONFIG_CONSPY=y +CONFIG_LESS=y +CONFIG_FEATURE_LESS_MAXLINES=9999999 +CONFIG_FEATURE_LESS_BRACKETS=y +CONFIG_FEATURE_LESS_FLAGS=y +CONFIG_FEATURE_LESS_MARKS=y +CONFIG_FEATURE_LESS_REGEXP=y +CONFIG_FEATURE_LESS_WINCH=y +CONFIG_FEATURE_LESS_ASK_TERMINAL=y +CONFIG_FEATURE_LESS_DASHCMD=y +CONFIG_FEATURE_LESS_LINENUMS=y +CONFIG_NANDWRITE=y +CONFIG_NANDDUMP=y +CONFIG_SETSERIAL=y +CONFIG_UBIATTACH=y +CONFIG_UBIDETACH=y +CONFIG_UBIMKVOL=y +CONFIG_UBIRMVOL=y +CONFIG_UBIRSVOL=y +CONFIG_UBIUPDATEVOL=y +CONFIG_ADJTIMEX=y +# CONFIG_BBCONFIG is not set +# CONFIG_FEATURE_COMPRESS_BBCONFIG is not set +CONFIG_BEEP=y +CONFIG_FEATURE_BEEP_FREQ=4000 +CONFIG_FEATURE_BEEP_LENGTH_MS=30 +CONFIG_CHAT=y +CONFIG_FEATURE_CHAT_NOFAIL=y +# CONFIG_FEATURE_CHAT_TTY_HIFI is not set +CONFIG_FEATURE_CHAT_IMPLICIT_CR=y +CONFIG_FEATURE_CHAT_SWALLOW_OPTS=y +CONFIG_FEATURE_CHAT_SEND_ESCAPES=y +CONFIG_FEATURE_CHAT_VAR_ABORT_LEN=y +CONFIG_FEATURE_CHAT_CLR_ABORT=y +CONFIG_CHRT=y +CONFIG_CROND=y +CONFIG_FEATURE_CROND_D=y +CONFIG_FEATURE_CROND_CALL_SENDMAIL=y +CONFIG_FEATURE_CROND_DIR="/var/spool/cron" +CONFIG_CRONTAB=y +CONFIG_DC=y +CONFIG_FEATURE_DC_LIBM=y +# CONFIG_DEVFSD is not set +# CONFIG_DEVFSD_MODLOAD is not set +# CONFIG_DEVFSD_FG_NP is not set +# CONFIG_DEVFSD_VERBOSE is not set +# CONFIG_FEATURE_DEVFS is not set +CONFIG_DEVMEM=y +CONFIG_EJECT=y +CONFIG_FEATURE_EJECT_SCSI=y +CONFIG_FBSPLASH=y +# CONFIG_FLASHCP is not set +# CONFIG_FLASH_LOCK is not set +# CONFIG_FLASH_UNLOCK is not set +CONFIG_FLASH_ERASEALL=y +CONFIG_IONICE=y +# CONFIG_INOTIFYD is not set +CONFIG_LAST=y +# CONFIG_FEATURE_LAST_SMALL is not set +CONFIG_FEATURE_LAST_FANCY=y +CONFIG_HDPARM=y +CONFIG_FEATURE_HDPARM_GET_IDENTITY=y +CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF=y +CONFIG_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF=y +CONFIG_FEATURE_HDPARM_HDIO_DRIVE_RESET=y +CONFIG_FEATURE_HDPARM_HDIO_TRISTATE_HWIF=y +CONFIG_FEATURE_HDPARM_HDIO_GETSET_DMA=y +CONFIG_MAKEDEVS=y +# CONFIG_FEATURE_MAKEDEVS_LEAF is not set +CONFIG_FEATURE_MAKEDEVS_TABLE=y +CONFIG_MAN=y +CONFIG_MICROCOM=y +CONFIG_MOUNTPOINT=y +CONFIG_MT=y +CONFIG_RAIDAUTORUN=y +CONFIG_READAHEAD=y +# CONFIG_RFKILL is not set +CONFIG_RUNLEVEL=y +CONFIG_RX=y +CONFIG_SETSID=y +CONFIG_STRINGS=y +# CONFIG_TASKSET is not set +# CONFIG_FEATURE_TASKSET_FANCY is not set +CONFIG_TIME=y +CONFIG_TIMEOUT=y +CONFIG_TTYSIZE=y +CONFIG_VOLNAME=y +CONFIG_WALL=y +CONFIG_WATCHDOG=y + +# +# Networking Utilities +# +CONFIG_NAMEIF=y +CONFIG_FEATURE_NAMEIF_EXTENDED=y +CONFIG_NBDCLIENT=y +CONFIG_NC=y +CONFIG_NC_SERVER=y +CONFIG_NC_EXTRA=y +# CONFIG_NC_110_COMPAT is not set +CONFIG_PING=y +CONFIG_PING6=y +CONFIG_FEATURE_FANCY_PING=y +CONFIG_WHOIS=y +CONFIG_FEATURE_IPV6=y +# CONFIG_FEATURE_UNIX_LOCAL is not set +CONFIG_FEATURE_PREFER_IPV4_ADDRESS=y +# CONFIG_VERBOSE_RESOLUTION_ERRORS is not set +CONFIG_ARP=y +CONFIG_ARPING=y +CONFIG_BRCTL=y +CONFIG_FEATURE_BRCTL_FANCY=y +CONFIG_FEATURE_BRCTL_SHOW=y +CONFIG_DNSD=y +CONFIG_ETHER_WAKE=y +CONFIG_FAKEIDENTD=y +CONFIG_FTPD=y +CONFIG_FEATURE_FTP_WRITE=y +CONFIG_FEATURE_FTPD_ACCEPT_BROKEN_LIST=y +CONFIG_FTPGET=y +CONFIG_FTPPUT=y +CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS=y +CONFIG_HOSTNAME=y +CONFIG_HTTPD=y +CONFIG_FEATURE_HTTPD_RANGES=y +CONFIG_FEATURE_HTTPD_USE_SENDFILE=y +CONFIG_FEATURE_HTTPD_SETUID=y +CONFIG_FEATURE_HTTPD_BASIC_AUTH=y +CONFIG_FEATURE_HTTPD_AUTH_MD5=y +CONFIG_FEATURE_HTTPD_CGI=y +CONFIG_FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR=y +CONFIG_FEATURE_HTTPD_SET_REMOTE_PORT_TO_ENV=y +CONFIG_FEATURE_HTTPD_ENCODE_URL_STR=y +CONFIG_FEATURE_HTTPD_ERROR_PAGES=y +CONFIG_FEATURE_HTTPD_PROXY=y +CONFIG_FEATURE_HTTPD_GZIP=y +CONFIG_IFCONFIG=y +CONFIG_FEATURE_IFCONFIG_STATUS=y +CONFIG_FEATURE_IFCONFIG_SLIP=y +CONFIG_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ=y +CONFIG_FEATURE_IFCONFIG_HW=y +CONFIG_FEATURE_IFCONFIG_BROADCAST_PLUS=y +CONFIG_IFENSLAVE=y +CONFIG_IFPLUGD=y +CONFIG_IFUPDOWN=y +CONFIG_IFUPDOWN_IFSTATE_PATH="/var/run/ifstate" +CONFIG_FEATURE_IFUPDOWN_IP=y +CONFIG_FEATURE_IFUPDOWN_IP_BUILTIN=y +# CONFIG_FEATURE_IFUPDOWN_IFCONFIG_BUILTIN is not set +CONFIG_FEATURE_IFUPDOWN_IPV4=y +CONFIG_FEATURE_IFUPDOWN_IPV6=y +CONFIG_FEATURE_IFUPDOWN_MAPPING=y +# CONFIG_FEATURE_IFUPDOWN_EXTERNAL_DHCP is not set +CONFIG_INETD=y +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_ECHO=y +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DISCARD=y +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_TIME=y +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DAYTIME=y +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_CHARGEN=y +CONFIG_FEATURE_INETD_RPC=y +CONFIG_IP=y +CONFIG_FEATURE_IP_ADDRESS=y +CONFIG_FEATURE_IP_LINK=y +CONFIG_FEATURE_IP_ROUTE=y +CONFIG_FEATURE_IP_TUNNEL=y +CONFIG_FEATURE_IP_RULE=y +CONFIG_FEATURE_IP_SHORT_FORMS=y +# CONFIG_FEATURE_IP_RARE_PROTOCOLS is not set +CONFIG_IPADDR=y +CONFIG_IPLINK=y +CONFIG_IPROUTE=y +CONFIG_IPTUNNEL=y +CONFIG_IPRULE=y +CONFIG_IPCALC=y +CONFIG_FEATURE_IPCALC_FANCY=y +CONFIG_FEATURE_IPCALC_LONG_OPTIONS=y +CONFIG_NETSTAT=y +CONFIG_FEATURE_NETSTAT_WIDE=y +CONFIG_FEATURE_NETSTAT_PRG=y +CONFIG_NSLOOKUP=y +CONFIG_NTPD=y +CONFIG_FEATURE_NTPD_SERVER=y +CONFIG_PSCAN=y +CONFIG_ROUTE=y +CONFIG_SLATTACH=y +CONFIG_TCPSVD=y +CONFIG_TELNET=y +CONFIG_FEATURE_TELNET_TTYPE=y +CONFIG_FEATURE_TELNET_AUTOLOGIN=y +CONFIG_TELNETD=y +CONFIG_FEATURE_TELNETD_STANDALONE=y +CONFIG_FEATURE_TELNETD_INETD_WAIT=y +CONFIG_TFTP=y +CONFIG_TFTPD=y + +# +# Common options for tftp/tftpd +# +CONFIG_FEATURE_TFTP_GET=y +CONFIG_FEATURE_TFTP_PUT=y +CONFIG_FEATURE_TFTP_BLOCKSIZE=y +CONFIG_FEATURE_TFTP_PROGRESS_BAR=y +# CONFIG_TFTP_DEBUG is not set +CONFIG_TRACEROUTE=y +CONFIG_TRACEROUTE6=y +CONFIG_FEATURE_TRACEROUTE_VERBOSE=y +# CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE is not set +# CONFIG_FEATURE_TRACEROUTE_USE_ICMP is not set +CONFIG_TUNCTL=y +CONFIG_FEATURE_TUNCTL_UG=y +# CONFIG_UDHCPC6 is not set +CONFIG_UDHCPD=y +CONFIG_DHCPRELAY=y +CONFIG_DUMPLEASES=y +CONFIG_FEATURE_UDHCPD_WRITE_LEASES_EARLY=y +# CONFIG_FEATURE_UDHCPD_BASE_IP_ON_MAC is not set +CONFIG_DHCPD_LEASES_FILE="/var/lib/misc/udhcpd.leases" +CONFIG_UDHCPC=y +CONFIG_FEATURE_UDHCPC_ARPING=y +# CONFIG_FEATURE_UDHCP_PORT is not set +CONFIG_UDHCP_DEBUG=9 +CONFIG_FEATURE_UDHCP_RFC3397=y +CONFIG_FEATURE_UDHCP_8021Q=y +CONFIG_UDHCPC_DEFAULT_SCRIPT="/usr/share/udhcpc/default.script" +CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=80 +CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS="-R -n" +CONFIG_UDPSVD=y +CONFIG_VCONFIG=y +CONFIG_WGET=y +CONFIG_FEATURE_WGET_STATUSBAR=y +CONFIG_FEATURE_WGET_AUTHENTICATION=y +CONFIG_FEATURE_WGET_LONG_OPTIONS=y +CONFIG_FEATURE_WGET_TIMEOUT=y +CONFIG_ZCIP=y + +# +# Print Utilities +# +CONFIG_LPD=y +CONFIG_LPR=y +CONFIG_LPQ=y + +# +# Mail Utilities +# +CONFIG_MAKEMIME=y +CONFIG_FEATURE_MIME_CHARSET="us-ascii" +CONFIG_POPMAILDIR=y +CONFIG_FEATURE_POPMAILDIR_DELIVERY=y +CONFIG_REFORMIME=y +CONFIG_FEATURE_REFORMIME_COMPAT=y +CONFIG_SENDMAIL=y + +# +# Process Utilities +# +CONFIG_IOSTAT=y +CONFIG_LSOF=y +CONFIG_MPSTAT=y +CONFIG_NMETER=y +CONFIG_PMAP=y +CONFIG_POWERTOP=y +CONFIG_PSTREE=y +CONFIG_PWDX=y +CONFIG_SMEMCAP=y +CONFIG_UPTIME=y +CONFIG_FEATURE_UPTIME_UTMP_SUPPORT=y +CONFIG_FREE=y +CONFIG_FUSER=y +CONFIG_KILL=y +CONFIG_KILLALL=y +CONFIG_KILLALL5=y +CONFIG_PGREP=y +CONFIG_PIDOF=y +CONFIG_FEATURE_PIDOF_SINGLE=y +CONFIG_FEATURE_PIDOF_OMIT=y +CONFIG_PKILL=y +CONFIG_PS=y +# CONFIG_FEATURE_PS_WIDE is not set +# CONFIG_FEATURE_PS_LONG is not set +CONFIG_FEATURE_PS_TIME=y +CONFIG_FEATURE_PS_ADDITIONAL_COLUMNS=y +# CONFIG_FEATURE_PS_UNUSUAL_SYSTEMS is not set +CONFIG_RENICE=y +CONFIG_BB_SYSCTL=y +CONFIG_TOP=y +CONFIG_FEATURE_TOP_CPU_USAGE_PERCENTAGE=y +CONFIG_FEATURE_TOP_CPU_GLOBAL_PERCENTS=y +CONFIG_FEATURE_TOP_SMP_CPU=y +CONFIG_FEATURE_TOP_DECIMALS=y +CONFIG_FEATURE_TOP_SMP_PROCESS=y +CONFIG_FEATURE_TOPMEM=y +CONFIG_FEATURE_SHOW_THREADS=y +CONFIG_WATCH=y + +# +# Runit Utilities +# +CONFIG_RUNSV=y +CONFIG_RUNSVDIR=y +# CONFIG_FEATURE_RUNSVDIR_LOG is not set +CONFIG_SV=y +CONFIG_SV_DEFAULT_SERVICE_DIR="/var/service" +CONFIG_SVLOGD=y +CONFIG_CHPST=y +CONFIG_SETUIDGID=y +CONFIG_ENVUIDGID=y +CONFIG_ENVDIR=y +CONFIG_SOFTLIMIT=y +# CONFIG_CHCON is not set +# CONFIG_FEATURE_CHCON_LONG_OPTIONS is not set +# CONFIG_GETENFORCE is not set +# CONFIG_GETSEBOOL is not set +# CONFIG_LOAD_POLICY is not set +# CONFIG_MATCHPATHCON is not set +# CONFIG_RESTORECON is not set +# CONFIG_RUNCON is not set +# CONFIG_FEATURE_RUNCON_LONG_OPTIONS is not set +# CONFIG_SELINUXENABLED is not set +# CONFIG_SETENFORCE is not set +# CONFIG_SETFILES is not set +# CONFIG_FEATURE_SETFILES_CHECK_OPTION is not set +# CONFIG_SETSEBOOL is not set +# CONFIG_SESTATUS is not set + +# +# Shells +# +CONFIG_ASH=y +CONFIG_ASH_BASH_COMPAT=y +# CONFIG_ASH_IDLE_TIMEOUT is not set +CONFIG_ASH_JOB_CONTROL=y +CONFIG_ASH_ALIAS=y +CONFIG_ASH_GETOPTS=y +CONFIG_ASH_BUILTIN_ECHO=y +CONFIG_ASH_BUILTIN_PRINTF=y +CONFIG_ASH_BUILTIN_TEST=y +CONFIG_ASH_CMDCMD=y +# CONFIG_ASH_MAIL is not set +CONFIG_ASH_OPTIMIZE_FOR_SIZE=y +CONFIG_ASH_RANDOM_SUPPORT=y +CONFIG_ASH_EXPAND_PRMT=y +CONFIG_CTTYHACK=y +CONFIG_HUSH=y +CONFIG_HUSH_BASH_COMPAT=y +CONFIG_HUSH_BRACE_EXPANSION=y +CONFIG_HUSH_HELP=y +CONFIG_HUSH_INTERACTIVE=y +CONFIG_HUSH_SAVEHISTORY=y +CONFIG_HUSH_JOB=y +CONFIG_HUSH_TICK=y +CONFIG_HUSH_IF=y +CONFIG_HUSH_LOOPS=y +CONFIG_HUSH_CASE=y +CONFIG_HUSH_FUNCTIONS=y +CONFIG_HUSH_LOCAL=y +CONFIG_HUSH_RANDOM_SUPPORT=y +CONFIG_HUSH_EXPORT_N=y +CONFIG_HUSH_MODE_X=y +# CONFIG_MSH is not set +CONFIG_FEATURE_SH_IS_ASH=y +# CONFIG_FEATURE_SH_IS_HUSH is not set +# CONFIG_FEATURE_SH_IS_NONE is not set +# CONFIG_FEATURE_BASH_IS_ASH is not set +# CONFIG_FEATURE_BASH_IS_HUSH is not set +CONFIG_FEATURE_BASH_IS_NONE=y +CONFIG_SH_MATH_SUPPORT=y +CONFIG_SH_MATH_SUPPORT_64=y +CONFIG_FEATURE_SH_EXTRA_QUIET=y +# CONFIG_FEATURE_SH_STANDALONE is not set +# CONFIG_FEATURE_SH_NOFORK is not set +CONFIG_FEATURE_SH_HISTFILESIZE=y + +# +# System Logging Utilities +# +CONFIG_SYSLOGD=y +CONFIG_FEATURE_ROTATE_LOGFILE=y +CONFIG_FEATURE_REMOTE_LOG=y +CONFIG_FEATURE_SYSLOGD_DUP=y +CONFIG_FEATURE_SYSLOGD_CFG=y +CONFIG_FEATURE_SYSLOGD_READ_BUFFER_SIZE=256 +CONFIG_FEATURE_IPC_SYSLOG=y +CONFIG_FEATURE_IPC_SYSLOG_BUFFER_SIZE=16 +CONFIG_LOGREAD=y +CONFIG_FEATURE_LOGREAD_REDUCED_LOCKING=y +CONFIG_KLOGD=y +CONFIG_FEATURE_KLOGD_KLOGCTL=y +CONFIG_LOGGER=y diff -Naur busybox-1.20.2/configs/sstar_alkaid_arm-aarch64-linux-gnu-glibc_defconfig busybox-1.20.2_mod/configs/sstar_alkaid_arm-aarch64-linux-gnu-glibc_defconfig --- busybox-1.20.2/configs/sstar_alkaid_arm-aarch64-linux-gnu-glibc_defconfig 1970-01-01 08:00:00.000000000 +0800 +++ busybox-1.20.2_mod/configs/sstar_alkaid_arm-aarch64-linux-gnu-glibc_defconfig 2024-04-07 17:16:54.155801600 +0800 @@ -0,0 +1,1026 @@ +# +# Automatically generated make config: don't edit +# Busybox version: 1.20.2 +# Wed Dec 27 23:51:40 2017 +# +CONFIG_HAVE_DOT_CONFIG=y + +# +# Busybox Settings +# + +# +# General Configuration +# +CONFIG_DESKTOP=y +# CONFIG_EXTRA_COMPAT is not set +CONFIG_INCLUDE_SUSv2=y +# CONFIG_USE_PORTABLE_CODE is not set +CONFIG_PLATFORM_LINUX=y +CONFIG_FEATURE_BUFFERS_USE_MALLOC=y +# CONFIG_FEATURE_BUFFERS_GO_ON_STACK is not set +# CONFIG_FEATURE_BUFFERS_GO_IN_BSS is not set +CONFIG_SHOW_USAGE=y +CONFIG_FEATURE_VERBOSE_USAGE=y +CONFIG_FEATURE_COMPRESS_USAGE=y +CONFIG_FEATURE_INSTALLER=y +# CONFIG_INSTALL_NO_USR is not set +# CONFIG_LOCALE_SUPPORT is not set +CONFIG_UNICODE_SUPPORT=y +# CONFIG_UNICODE_USING_LOCALE is not set +# CONFIG_FEATURE_CHECK_UNICODE_IN_ENV is not set +CONFIG_SUBST_WCHAR=63 +CONFIG_LAST_SUPPORTED_WCHAR=767 +# CONFIG_UNICODE_COMBINING_WCHARS is not set +# CONFIG_UNICODE_WIDE_WCHARS is not set +# CONFIG_UNICODE_BIDI_SUPPORT is not set +# CONFIG_UNICODE_NEUTRAL_TABLE is not set +# CONFIG_UNICODE_PRESERVE_BROKEN is not set +CONFIG_LONG_OPTS=y +CONFIG_FEATURE_DEVPTS=y +# CONFIG_FEATURE_CLEAN_UP is not set +CONFIG_FEATURE_UTMP=y +CONFIG_FEATURE_WTMP=y +CONFIG_FEATURE_PIDFILE=y +CONFIG_FEATURE_SUID=y +CONFIG_FEATURE_SUID_CONFIG=y +CONFIG_FEATURE_SUID_CONFIG_QUIET=y +# CONFIG_SELINUX is not set +# CONFIG_FEATURE_PREFER_APPLETS is not set +CONFIG_BUSYBOX_EXEC_PATH="/proc/self/exe" +CONFIG_FEATURE_SYSLOG=y +CONFIG_FEATURE_HAVE_RPC=y + +# +# Build Options +# +# CONFIG_STATIC is not set +# CONFIG_PIE is not set +# CONFIG_NOMMU is not set +CONFIG_BUILD_LIBBUSYBOX=y +# CONFIG_FEATURE_INDIVIDUAL is not set +CONFIG_FEATURE_SHARED_BUSYBOX=y +CONFIG_LFS=y +CONFIG_CROSS_COMPILER_PREFIX="aarch64-linux-gnu-" +CONFIG_SYSROOT="" +CONFIG_EXTRA_CFLAGS="" +CONFIG_EXTRA_LDFLAGS="" +CONFIG_EXTRA_LDLIBS="" + +# +# Debugging Options +# +# CONFIG_DEBUG is not set +# CONFIG_DEBUG_PESSIMIZE is not set +# CONFIG_WERROR is not set +CONFIG_NO_DEBUG_LIB=y +# CONFIG_DMALLOC is not set +# CONFIG_EFENCE is not set + +# +# Installation Options ("make install" behavior) +# +CONFIG_INSTALL_APPLET_SYMLINKS=y +# CONFIG_INSTALL_APPLET_HARDLINKS is not set +# CONFIG_INSTALL_APPLET_SCRIPT_WRAPPERS is not set +# CONFIG_INSTALL_APPLET_DONT is not set +# CONFIG_INSTALL_SH_APPLET_SYMLINK is not set +# CONFIG_INSTALL_SH_APPLET_HARDLINK is not set +# CONFIG_INSTALL_SH_APPLET_SCRIPT_WRAPPER is not set +CONFIG_PREFIX="./_install" + +# +# Busybox Library Tuning +# +CONFIG_FEATURE_SYSTEMD=y +CONFIG_FEATURE_RTMINMAX=y +CONFIG_PASSWORD_MINLEN=6 +CONFIG_MD5_SMALL=1 +CONFIG_FEATURE_FAST_TOP=y +# CONFIG_FEATURE_ETC_NETWORKS is not set +CONFIG_FEATURE_USE_TERMIOS=y +CONFIG_FEATURE_EDITING=y +CONFIG_FEATURE_EDITING_MAX_LEN=1024 +# CONFIG_FEATURE_EDITING_VI is not set +CONFIG_FEATURE_EDITING_HISTORY=255 +CONFIG_FEATURE_EDITING_SAVEHISTORY=y +# CONFIG_FEATURE_EDITING_SAVE_ON_EXIT is not set +CONFIG_FEATURE_REVERSE_SEARCH=y +CONFIG_FEATURE_TAB_COMPLETION=y +# CONFIG_FEATURE_USERNAME_COMPLETION is not set +CONFIG_FEATURE_EDITING_FANCY_PROMPT=y +# CONFIG_FEATURE_EDITING_ASK_TERMINAL is not set +CONFIG_FEATURE_NON_POSIX_CP=y +# CONFIG_FEATURE_VERBOSE_CP_MESSAGE is not set +CONFIG_FEATURE_COPYBUF_KB=4 +CONFIG_FEATURE_SKIP_ROOTFS=y +# CONFIG_MONOTONIC_SYSCALL is not set +CONFIG_IOCTL_HEX2STR_ERROR=y +CONFIG_FEATURE_HWIB=y + +# +# Applets +# + +# +# Archival Utilities +# +CONFIG_FEATURE_SEAMLESS_XZ=y +CONFIG_FEATURE_SEAMLESS_LZMA=y +CONFIG_FEATURE_SEAMLESS_BZ2=y +CONFIG_FEATURE_SEAMLESS_GZ=y +# CONFIG_FEATURE_SEAMLESS_Z is not set +# CONFIG_AR is not set +# CONFIG_FEATURE_AR_LONG_FILENAMES is not set +# CONFIG_FEATURE_AR_CREATE is not set +CONFIG_BUNZIP2=y +CONFIG_BZIP2=y +CONFIG_CPIO=y +CONFIG_FEATURE_CPIO_O=y +CONFIG_FEATURE_CPIO_P=y +# CONFIG_DPKG is not set +# CONFIG_DPKG_DEB is not set +# CONFIG_FEATURE_DPKG_DEB_EXTRACT_ONLY is not set +CONFIG_GUNZIP=y +CONFIG_GZIP=y +CONFIG_FEATURE_GZIP_LONG_OPTIONS=y +CONFIG_GZIP_FAST=0 +CONFIG_LZOP=y +# CONFIG_LZOP_COMPR_HIGH is not set +CONFIG_RPM2CPIO=y +CONFIG_RPM=y +CONFIG_TAR=y +CONFIG_FEATURE_TAR_CREATE=y +CONFIG_FEATURE_TAR_AUTODETECT=y +CONFIG_FEATURE_TAR_FROM=y +CONFIG_FEATURE_TAR_OLDGNU_COMPATIBILITY=y +CONFIG_FEATURE_TAR_OLDSUN_COMPATIBILITY=y +CONFIG_FEATURE_TAR_GNU_EXTENSIONS=y +CONFIG_FEATURE_TAR_LONG_OPTIONS=y +CONFIG_FEATURE_TAR_TO_COMMAND=y +CONFIG_FEATURE_TAR_UNAME_GNAME=y +CONFIG_FEATURE_TAR_NOPRESERVE_TIME=y +# CONFIG_FEATURE_TAR_SELINUX is not set +# CONFIG_UNCOMPRESS is not set +CONFIG_UNLZMA=y +# CONFIG_FEATURE_LZMA_FAST is not set +CONFIG_LZMA=y +CONFIG_UNXZ=y +CONFIG_XZ=y +CONFIG_UNZIP=y + +# +# Coreutils +# +CONFIG_BASENAME=y +CONFIG_CAT=y +CONFIG_DATE=y +CONFIG_FEATURE_DATE_ISOFMT=y +# CONFIG_FEATURE_DATE_NANO is not set +CONFIG_FEATURE_DATE_COMPAT=y +CONFIG_HOSTID=y +CONFIG_ID=y +CONFIG_GROUPS=y +CONFIG_TEST=y +CONFIG_FEATURE_TEST_64=y +CONFIG_TOUCH=y +CONFIG_FEATURE_TOUCH_SUSV3=y +CONFIG_TR=y +CONFIG_FEATURE_TR_CLASSES=y +CONFIG_FEATURE_TR_EQUIV=y +CONFIG_BASE64=y +CONFIG_WHO=y +CONFIG_USERS=y +CONFIG_CAL=y +CONFIG_CATV=y +CONFIG_CHGRP=y +CONFIG_CHMOD=y +CONFIG_CHOWN=y +CONFIG_FEATURE_CHOWN_LONG_OPTIONS=y +CONFIG_CHROOT=y +CONFIG_CKSUM=y +CONFIG_COMM=y +CONFIG_CP=y +CONFIG_FEATURE_CP_LONG_OPTIONS=y +CONFIG_CUT=y +CONFIG_DD=y +CONFIG_FEATURE_DD_SIGNAL_HANDLING=y +CONFIG_FEATURE_DD_THIRD_STATUS_LINE=y +CONFIG_FEATURE_DD_IBS_OBS=y +CONFIG_DF=y +CONFIG_FEATURE_DF_FANCY=y +CONFIG_DIRNAME=y +CONFIG_DOS2UNIX=y +CONFIG_UNIX2DOS=y +CONFIG_DU=y +CONFIG_FEATURE_DU_DEFAULT_BLOCKSIZE_1K=y +CONFIG_ECHO=y +CONFIG_FEATURE_FANCY_ECHO=y +CONFIG_ENV=y +CONFIG_FEATURE_ENV_LONG_OPTIONS=y +CONFIG_EXPAND=y +CONFIG_FEATURE_EXPAND_LONG_OPTIONS=y +CONFIG_EXPR=y +CONFIG_EXPR_MATH_SUPPORT_64=y +CONFIG_FALSE=y +CONFIG_FOLD=y +CONFIG_FSYNC=y +CONFIG_HEAD=y +CONFIG_FEATURE_FANCY_HEAD=y +CONFIG_INSTALL=y +CONFIG_FEATURE_INSTALL_LONG_OPTIONS=y +CONFIG_LN=y +CONFIG_LOGNAME=y +CONFIG_LS=y +CONFIG_FEATURE_LS_FILETYPES=y +CONFIG_FEATURE_LS_FOLLOWLINKS=y +CONFIG_FEATURE_LS_RECURSIVE=y +CONFIG_FEATURE_LS_SORTFILES=y +CONFIG_FEATURE_LS_TIMESTAMPS=y +CONFIG_FEATURE_LS_USERNAME=y +CONFIG_FEATURE_LS_COLOR=y +CONFIG_FEATURE_LS_COLOR_IS_DEFAULT=y +CONFIG_MD5SUM=y +CONFIG_MKDIR=y +CONFIG_FEATURE_MKDIR_LONG_OPTIONS=y +CONFIG_MKFIFO=y +CONFIG_MKNOD=y +CONFIG_MV=y +CONFIG_FEATURE_MV_LONG_OPTIONS=y +CONFIG_NICE=y +CONFIG_NOHUP=y +CONFIG_OD=y +CONFIG_PRINTENV=y +CONFIG_PRINTF=y +CONFIG_PWD=y +CONFIG_READLINK=y +CONFIG_FEATURE_READLINK_FOLLOW=y +CONFIG_REALPATH=y +CONFIG_RM=y +CONFIG_RMDIR=y +CONFIG_FEATURE_RMDIR_LONG_OPTIONS=y +CONFIG_SEQ=y +CONFIG_SHA1SUM=y +CONFIG_SHA256SUM=y +CONFIG_SHA512SUM=y +CONFIG_SLEEP=y +CONFIG_FEATURE_FANCY_SLEEP=y +CONFIG_FEATURE_FLOAT_SLEEP=y +CONFIG_SORT=y +CONFIG_FEATURE_SORT_BIG=y +CONFIG_SPLIT=y +CONFIG_FEATURE_SPLIT_FANCY=y +CONFIG_STAT=y +CONFIG_FEATURE_STAT_FORMAT=y +CONFIG_STTY=y +CONFIG_SUM=y +CONFIG_SYNC=y +CONFIG_TAC=y +CONFIG_TAIL=y +CONFIG_FEATURE_FANCY_TAIL=y +CONFIG_TEE=y +CONFIG_FEATURE_TEE_USE_BLOCK_IO=y +CONFIG_TRUE=y +CONFIG_TTY=y +CONFIG_UNAME=y +CONFIG_UNEXPAND=y +CONFIG_FEATURE_UNEXPAND_LONG_OPTIONS=y +CONFIG_UNIQ=y +CONFIG_USLEEP=y +CONFIG_UUDECODE=y +CONFIG_UUENCODE=y +CONFIG_WC=y +CONFIG_FEATURE_WC_LARGE=y +CONFIG_WHOAMI=y +CONFIG_YES=y + +# +# Common options for cp and mv +# +CONFIG_FEATURE_PRESERVE_HARDLINKS=y + +# +# Common options for ls, more and telnet +# +CONFIG_FEATURE_AUTOWIDTH=y + +# +# Common options for df, du, ls +# +CONFIG_FEATURE_HUMAN_READABLE=y + +# +# Common options for md5sum, sha1sum, sha256sum, sha512sum +# +CONFIG_FEATURE_MD5_SHA1_SUM_CHECK=y + +# +# Console Utilities +# +CONFIG_CHVT=y +CONFIG_FGCONSOLE=y +CONFIG_CLEAR=y +CONFIG_DEALLOCVT=y +CONFIG_DUMPKMAP=y +CONFIG_KBD_MODE=y +CONFIG_LOADFONT=y +CONFIG_LOADKMAP=y +CONFIG_OPENVT=y +CONFIG_RESET=y +CONFIG_RESIZE=y +CONFIG_FEATURE_RESIZE_PRINT=y +CONFIG_SETCONSOLE=y +CONFIG_FEATURE_SETCONSOLE_LONG_OPTIONS=y +CONFIG_SETFONT=y +CONFIG_FEATURE_SETFONT_TEXTUAL_MAP=y +CONFIG_DEFAULT_SETFONT_DIR="" +CONFIG_SETKEYCODES=y +CONFIG_SETLOGCONS=y +CONFIG_SHOWKEY=y + +# +# Common options for loadfont and setfont +# +CONFIG_FEATURE_LOADFONT_PSF2=y +CONFIG_FEATURE_LOADFONT_RAW=y + +# +# Debian Utilities +# +CONFIG_MKTEMP=y +CONFIG_PIPE_PROGRESS=y +CONFIG_RUN_PARTS=y +CONFIG_FEATURE_RUN_PARTS_LONG_OPTIONS=y +CONFIG_FEATURE_RUN_PARTS_FANCY=y +CONFIG_START_STOP_DAEMON=y +CONFIG_FEATURE_START_STOP_DAEMON_FANCY=y +CONFIG_FEATURE_START_STOP_DAEMON_LONG_OPTIONS=y +CONFIG_WHICH=y + +# +# Editors +# +CONFIG_PATCH=y +CONFIG_VI=y +CONFIG_FEATURE_VI_MAX_LEN=4096 +# CONFIG_FEATURE_VI_8BIT is not set +CONFIG_FEATURE_VI_COLON=y +CONFIG_FEATURE_VI_YANKMARK=y +CONFIG_FEATURE_VI_SEARCH=y +# CONFIG_FEATURE_VI_REGEX_SEARCH is not set +CONFIG_FEATURE_VI_USE_SIGNALS=y +CONFIG_FEATURE_VI_DOT_CMD=y +CONFIG_FEATURE_VI_READONLY=y +CONFIG_FEATURE_VI_SETOPTS=y +CONFIG_FEATURE_VI_SET=y +CONFIG_FEATURE_VI_WIN_RESIZE=y +CONFIG_FEATURE_VI_ASK_TERMINAL=y +CONFIG_FEATURE_VI_OPTIMIZE_CURSOR=y +CONFIG_AWK=y +CONFIG_FEATURE_AWK_LIBM=y +CONFIG_CMP=y +CONFIG_DIFF=y +CONFIG_FEATURE_DIFF_LONG_OPTIONS=y +CONFIG_FEATURE_DIFF_DIR=y +CONFIG_ED=y +CONFIG_SED=y +CONFIG_FEATURE_ALLOW_EXEC=y + +# +# Finding Utilities +# +CONFIG_FIND=y +CONFIG_FEATURE_FIND_PRINT0=y +CONFIG_FEATURE_FIND_MTIME=y +CONFIG_FEATURE_FIND_MMIN=y +CONFIG_FEATURE_FIND_PERM=y +CONFIG_FEATURE_FIND_TYPE=y +CONFIG_FEATURE_FIND_XDEV=y +CONFIG_FEATURE_FIND_MAXDEPTH=y +CONFIG_FEATURE_FIND_NEWER=y +CONFIG_FEATURE_FIND_INUM=y +CONFIG_FEATURE_FIND_EXEC=y +CONFIG_FEATURE_FIND_USER=y +CONFIG_FEATURE_FIND_GROUP=y +CONFIG_FEATURE_FIND_NOT=y +CONFIG_FEATURE_FIND_DEPTH=y +CONFIG_FEATURE_FIND_PAREN=y +CONFIG_FEATURE_FIND_SIZE=y +CONFIG_FEATURE_FIND_PRUNE=y +CONFIG_FEATURE_FIND_DELETE=y +CONFIG_FEATURE_FIND_PATH=y +CONFIG_FEATURE_FIND_REGEX=y +# CONFIG_FEATURE_FIND_CONTEXT is not set +CONFIG_FEATURE_FIND_LINKS=y +CONFIG_GREP=y +CONFIG_FEATURE_GREP_EGREP_ALIAS=y +CONFIG_FEATURE_GREP_FGREP_ALIAS=y +CONFIG_FEATURE_GREP_CONTEXT=y +CONFIG_XARGS=y +CONFIG_FEATURE_XARGS_SUPPORT_CONFIRMATION=y +CONFIG_FEATURE_XARGS_SUPPORT_QUOTES=y +CONFIG_FEATURE_XARGS_SUPPORT_TERMOPT=y +CONFIG_FEATURE_XARGS_SUPPORT_ZERO_TERM=y + +# +# Init Utilities +# +CONFIG_BOOTCHARTD=y +CONFIG_FEATURE_BOOTCHARTD_BLOATED_HEADER=y +CONFIG_FEATURE_BOOTCHARTD_CONFIG_FILE=y +CONFIG_HALT=y +# CONFIG_FEATURE_CALL_TELINIT is not set +CONFIG_TELINIT_PATH="" +CONFIG_INIT=y +CONFIG_FEATURE_USE_INITTAB=y +# CONFIG_FEATURE_KILL_REMOVED is not set +CONFIG_FEATURE_KILL_DELAY=0 +CONFIG_FEATURE_INIT_SCTTY=y +# CONFIG_FEATURE_INIT_SYSLOG is not set +CONFIG_FEATURE_EXTRA_QUIET=y +CONFIG_FEATURE_INIT_COREDUMPS=y +CONFIG_FEATURE_INITRD=y +CONFIG_INIT_TERMINAL_TYPE="linux" +CONFIG_MESG=y +CONFIG_FEATURE_MESG_ENABLE_ONLY_GROUP=y + +# +# Login/Password Management Utilities +# +CONFIG_ADD_SHELL=y +CONFIG_REMOVE_SHELL=y +CONFIG_FEATURE_SHADOWPASSWDS=y +CONFIG_USE_BB_PWD_GRP=y +CONFIG_USE_BB_SHADOW=y +CONFIG_USE_BB_CRYPT=y +CONFIG_USE_BB_CRYPT_SHA=y +CONFIG_ADDUSER=y +CONFIG_FEATURE_ADDUSER_LONG_OPTIONS=y +# CONFIG_FEATURE_CHECK_NAMES is not set +CONFIG_FIRST_SYSTEM_ID=100 +CONFIG_LAST_SYSTEM_ID=999 +CONFIG_ADDGROUP=y +CONFIG_FEATURE_ADDGROUP_LONG_OPTIONS=y +CONFIG_FEATURE_ADDUSER_TO_GROUP=y +CONFIG_DELUSER=y +CONFIG_DELGROUP=y +CONFIG_FEATURE_DEL_USER_FROM_GROUP=y +CONFIG_GETTY=y +CONFIG_LOGIN=y +# CONFIG_LOGIN_SESSION_AS_CHILD is not set +# CONFIG_PAM is not set +CONFIG_LOGIN_SCRIPTS=y +CONFIG_FEATURE_NOLOGIN=y +CONFIG_FEATURE_SECURETTY=y +CONFIG_PASSWD=y +CONFIG_FEATURE_PASSWD_WEAK_CHECK=y +CONFIG_CRYPTPW=y +CONFIG_CHPASSWD=y +CONFIG_FEATURE_DEFAULT_PASSWD_ALGO="des" +CONFIG_SU=y +CONFIG_FEATURE_SU_SYSLOG=y +CONFIG_FEATURE_SU_CHECKS_SHELLS=y +CONFIG_SULOGIN=y +CONFIG_VLOCK=y + +# +# Linux Ext2 FS Progs +# +CONFIG_CHATTR=y +CONFIG_FSCK=y +CONFIG_LSATTR=y +# CONFIG_TUNE2FS is not set + +# +# Linux Module Utilities +# +CONFIG_MODINFO=y +CONFIG_MODPROBE_SMALL=y +CONFIG_FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE=y +CONFIG_FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED=y +# CONFIG_INSMOD is not set +# CONFIG_RMMOD is not set +# CONFIG_LSMOD is not set +# CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT is not set +# CONFIG_MODPROBE is not set +# CONFIG_FEATURE_MODPROBE_BLACKLIST is not set +# CONFIG_DEPMOD is not set + +# +# Options common to multiple modutils +# +# CONFIG_FEATURE_2_4_MODULES is not set +# CONFIG_FEATURE_INSMOD_TRY_MMAP is not set +# CONFIG_FEATURE_INSMOD_VERSION_CHECKING is not set +# CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS is not set +# CONFIG_FEATURE_INSMOD_LOADINKMEM is not set +# CONFIG_FEATURE_INSMOD_LOAD_MAP is not set +# CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL is not set +# CONFIG_FEATURE_CHECK_TAINTED_MODULE is not set +# CONFIG_FEATURE_MODUTILS_ALIAS is not set +# CONFIG_FEATURE_MODUTILS_SYMBOLS is not set +CONFIG_DEFAULT_MODULES_DIR="/lib/modules" +CONFIG_DEFAULT_DEPMOD_FILE="modules.dep" + +# +# Linux System Utilities +# +CONFIG_BLOCKDEV=y +CONFIG_MDEV=y +CONFIG_FEATURE_MDEV_CONF=y +CONFIG_FEATURE_MDEV_RENAME=y +CONFIG_FEATURE_MDEV_RENAME_REGEXP=y +CONFIG_FEATURE_MDEV_EXEC=y +CONFIG_FEATURE_MDEV_LOAD_FIRMWARE=y +CONFIG_REV=y +CONFIG_ACPID=y +CONFIG_FEATURE_ACPID_COMPAT=y +CONFIG_BLKID=y +# CONFIG_FEATURE_BLKID_TYPE is not set +CONFIG_DMESG=y +CONFIG_FEATURE_DMESG_PRETTY=y +CONFIG_FBSET=y +CONFIG_FEATURE_FBSET_FANCY=y +CONFIG_FEATURE_FBSET_READMODE=y +CONFIG_FDFLUSH=y +CONFIG_FDFORMAT=y +CONFIG_FDISK=y +# CONFIG_FDISK_SUPPORT_LARGE_DISKS is not set +CONFIG_FEATURE_FDISK_WRITABLE=y +# CONFIG_FEATURE_AIX_LABEL is not set +# CONFIG_FEATURE_SGI_LABEL is not set +# CONFIG_FEATURE_SUN_LABEL is not set +# CONFIG_FEATURE_OSF_LABEL is not set +# CONFIG_FEATURE_GPT_LABEL is not set +CONFIG_FEATURE_FDISK_ADVANCED=y +CONFIG_FINDFS=y +CONFIG_FLOCK=y +CONFIG_FREERAMDISK=y +CONFIG_FSCK_MINIX=y +CONFIG_MKFS_EXT2=y +CONFIG_MKFS_MINIX=y +CONFIG_FEATURE_MINIX2=y +# CONFIG_MKFS_REISER is not set +CONFIG_MKFS_VFAT=y +CONFIG_GETOPT=y +CONFIG_FEATURE_GETOPT_LONG=y +CONFIG_HEXDUMP=y +CONFIG_FEATURE_HEXDUMP_REVERSE=y +CONFIG_HD=y +CONFIG_HWCLOCK=y +CONFIG_FEATURE_HWCLOCK_LONG_OPTIONS=y +# CONFIG_FEATURE_HWCLOCK_ADJTIME_FHS is not set +CONFIG_IPCRM=y +CONFIG_IPCS=y +CONFIG_LOSETUP=y +CONFIG_LSPCI=y +CONFIG_LSUSB=y +CONFIG_MKSWAP=y +CONFIG_FEATURE_MKSWAP_UUID=y +CONFIG_MORE=y +CONFIG_MOUNT=y +CONFIG_FEATURE_MOUNT_FAKE=y +CONFIG_FEATURE_MOUNT_VERBOSE=y +# CONFIG_FEATURE_MOUNT_HELPERS is not set +CONFIG_FEATURE_MOUNT_LABEL=y +# CONFIG_FEATURE_MOUNT_NFS is not set +CONFIG_FEATURE_MOUNT_CIFS=y +CONFIG_FEATURE_MOUNT_FLAGS=y +CONFIG_FEATURE_MOUNT_FSTAB=y +CONFIG_PIVOT_ROOT=y +CONFIG_RDATE=y +CONFIG_RDEV=y +CONFIG_READPROFILE=y +CONFIG_RTCWAKE=y +CONFIG_SCRIPT=y +CONFIG_SCRIPTREPLAY=y +CONFIG_SETARCH=y +CONFIG_SWAPONOFF=y +CONFIG_FEATURE_SWAPON_PRI=y +CONFIG_SWITCH_ROOT=y +CONFIG_UMOUNT=y +CONFIG_FEATURE_UMOUNT_ALL=y + +# +# Common options for mount/umount +# +CONFIG_FEATURE_MOUNT_LOOP=y +CONFIG_FEATURE_MOUNT_LOOP_CREATE=y +# CONFIG_FEATURE_MTAB_SUPPORT is not set +CONFIG_VOLUMEID=y + +# +# Filesystem/Volume identification +# +CONFIG_FEATURE_VOLUMEID_EXT=y +CONFIG_FEATURE_VOLUMEID_BTRFS=y +CONFIG_FEATURE_VOLUMEID_REISERFS=y +CONFIG_FEATURE_VOLUMEID_FAT=y +CONFIG_FEATURE_VOLUMEID_HFS=y +CONFIG_FEATURE_VOLUMEID_JFS=y +CONFIG_FEATURE_VOLUMEID_XFS=y +CONFIG_FEATURE_VOLUMEID_NTFS=y +CONFIG_FEATURE_VOLUMEID_ISO9660=y +CONFIG_FEATURE_VOLUMEID_UDF=y +CONFIG_FEATURE_VOLUMEID_LUKS=y +CONFIG_FEATURE_VOLUMEID_LINUXSWAP=y +CONFIG_FEATURE_VOLUMEID_CRAMFS=y +CONFIG_FEATURE_VOLUMEID_ROMFS=y +CONFIG_FEATURE_VOLUMEID_SYSV=y +CONFIG_FEATURE_VOLUMEID_OCFS2=y +CONFIG_FEATURE_VOLUMEID_LINUXRAID=y + +# +# Miscellaneous Utilities +# +CONFIG_CONSPY=y +CONFIG_LESS=y +CONFIG_FEATURE_LESS_MAXLINES=9999999 +CONFIG_FEATURE_LESS_BRACKETS=y +CONFIG_FEATURE_LESS_FLAGS=y +CONFIG_FEATURE_LESS_MARKS=y +CONFIG_FEATURE_LESS_REGEXP=y +CONFIG_FEATURE_LESS_WINCH=y +CONFIG_FEATURE_LESS_ASK_TERMINAL=y +CONFIG_FEATURE_LESS_DASHCMD=y +CONFIG_FEATURE_LESS_LINENUMS=y +CONFIG_NANDWRITE=y +CONFIG_NANDDUMP=y +CONFIG_SETSERIAL=y +CONFIG_UBIATTACH=y +CONFIG_UBIDETACH=y +CONFIG_UBIMKVOL=y +CONFIG_UBIRMVOL=y +CONFIG_UBIRSVOL=y +CONFIG_UBIUPDATEVOL=y +CONFIG_ADJTIMEX=y +# CONFIG_BBCONFIG is not set +# CONFIG_FEATURE_COMPRESS_BBCONFIG is not set +CONFIG_BEEP=y +CONFIG_FEATURE_BEEP_FREQ=4000 +CONFIG_FEATURE_BEEP_LENGTH_MS=30 +CONFIG_CHAT=y +CONFIG_FEATURE_CHAT_NOFAIL=y +# CONFIG_FEATURE_CHAT_TTY_HIFI is not set +CONFIG_FEATURE_CHAT_IMPLICIT_CR=y +CONFIG_FEATURE_CHAT_SWALLOW_OPTS=y +CONFIG_FEATURE_CHAT_SEND_ESCAPES=y +CONFIG_FEATURE_CHAT_VAR_ABORT_LEN=y +CONFIG_FEATURE_CHAT_CLR_ABORT=y +CONFIG_CHRT=y +CONFIG_CROND=y +CONFIG_FEATURE_CROND_D=y +CONFIG_FEATURE_CROND_CALL_SENDMAIL=y +CONFIG_FEATURE_CROND_DIR="/var/spool/cron" +CONFIG_CRONTAB=y +CONFIG_DC=y +CONFIG_FEATURE_DC_LIBM=y +# CONFIG_DEVFSD is not set +# CONFIG_DEVFSD_MODLOAD is not set +# CONFIG_DEVFSD_FG_NP is not set +# CONFIG_DEVFSD_VERBOSE is not set +# CONFIG_FEATURE_DEVFS is not set +CONFIG_DEVMEM=y +CONFIG_EJECT=y +CONFIG_FEATURE_EJECT_SCSI=y +CONFIG_FBSPLASH=y +# CONFIG_FLASHCP is not set +# CONFIG_FLASH_LOCK is not set +# CONFIG_FLASH_UNLOCK is not set +CONFIG_FLASH_ERASEALL=y +CONFIG_IONICE=y +# CONFIG_INOTIFYD is not set +CONFIG_LAST=y +# CONFIG_FEATURE_LAST_SMALL is not set +CONFIG_FEATURE_LAST_FANCY=y +CONFIG_HDPARM=y +CONFIG_FEATURE_HDPARM_GET_IDENTITY=y +CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF=y +CONFIG_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF=y +CONFIG_FEATURE_HDPARM_HDIO_DRIVE_RESET=y +CONFIG_FEATURE_HDPARM_HDIO_TRISTATE_HWIF=y +CONFIG_FEATURE_HDPARM_HDIO_GETSET_DMA=y +CONFIG_MAKEDEVS=y +# CONFIG_FEATURE_MAKEDEVS_LEAF is not set +CONFIG_FEATURE_MAKEDEVS_TABLE=y +CONFIG_MAN=y +CONFIG_MICROCOM=y +CONFIG_MOUNTPOINT=y +CONFIG_MT=y +CONFIG_RAIDAUTORUN=y +CONFIG_READAHEAD=y +# CONFIG_RFKILL is not set +CONFIG_RUNLEVEL=y +CONFIG_RX=y +CONFIG_SETSID=y +CONFIG_STRINGS=y +# CONFIG_TASKSET is not set +# CONFIG_FEATURE_TASKSET_FANCY is not set +CONFIG_TIME=y +CONFIG_TIMEOUT=y +CONFIG_TTYSIZE=y +CONFIG_VOLNAME=y +CONFIG_WALL=y +CONFIG_WATCHDOG=y + +# +# Networking Utilities +# +CONFIG_NAMEIF=y +CONFIG_FEATURE_NAMEIF_EXTENDED=y +CONFIG_NBDCLIENT=y +CONFIG_NC=y +CONFIG_NC_SERVER=y +CONFIG_NC_EXTRA=y +# CONFIG_NC_110_COMPAT is not set +CONFIG_PING=y +CONFIG_PING6=y +CONFIG_FEATURE_FANCY_PING=y +CONFIG_WHOIS=y +CONFIG_FEATURE_IPV6=y +# CONFIG_FEATURE_UNIX_LOCAL is not set +CONFIG_FEATURE_PREFER_IPV4_ADDRESS=y +# CONFIG_VERBOSE_RESOLUTION_ERRORS is not set +CONFIG_ARP=y +CONFIG_ARPING=y +CONFIG_BRCTL=y +CONFIG_FEATURE_BRCTL_FANCY=y +CONFIG_FEATURE_BRCTL_SHOW=y +CONFIG_DNSD=y +CONFIG_ETHER_WAKE=y +CONFIG_FAKEIDENTD=y +CONFIG_FTPD=y +CONFIG_FEATURE_FTP_WRITE=y +CONFIG_FEATURE_FTPD_ACCEPT_BROKEN_LIST=y +CONFIG_FTPGET=y +CONFIG_FTPPUT=y +CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS=y +CONFIG_HOSTNAME=y +CONFIG_HTTPD=y +CONFIG_FEATURE_HTTPD_RANGES=y +CONFIG_FEATURE_HTTPD_USE_SENDFILE=y +CONFIG_FEATURE_HTTPD_SETUID=y +CONFIG_FEATURE_HTTPD_BASIC_AUTH=y +CONFIG_FEATURE_HTTPD_AUTH_MD5=y +CONFIG_FEATURE_HTTPD_CGI=y +CONFIG_FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR=y +CONFIG_FEATURE_HTTPD_SET_REMOTE_PORT_TO_ENV=y +CONFIG_FEATURE_HTTPD_ENCODE_URL_STR=y +CONFIG_FEATURE_HTTPD_ERROR_PAGES=y +CONFIG_FEATURE_HTTPD_PROXY=y +CONFIG_FEATURE_HTTPD_GZIP=y +CONFIG_IFCONFIG=y +CONFIG_FEATURE_IFCONFIG_STATUS=y +CONFIG_FEATURE_IFCONFIG_SLIP=y +CONFIG_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ=y +CONFIG_FEATURE_IFCONFIG_HW=y +CONFIG_FEATURE_IFCONFIG_BROADCAST_PLUS=y +CONFIG_IFENSLAVE=y +CONFIG_IFPLUGD=y +CONFIG_IFUPDOWN=y +CONFIG_IFUPDOWN_IFSTATE_PATH="/var/run/ifstate" +CONFIG_FEATURE_IFUPDOWN_IP=y +CONFIG_FEATURE_IFUPDOWN_IP_BUILTIN=y +# CONFIG_FEATURE_IFUPDOWN_IFCONFIG_BUILTIN is not set +CONFIG_FEATURE_IFUPDOWN_IPV4=y +CONFIG_FEATURE_IFUPDOWN_IPV6=y +CONFIG_FEATURE_IFUPDOWN_MAPPING=y +# CONFIG_FEATURE_IFUPDOWN_EXTERNAL_DHCP is not set +CONFIG_INETD=y +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_ECHO=y +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DISCARD=y +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_TIME=y +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DAYTIME=y +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_CHARGEN=y +CONFIG_FEATURE_INETD_RPC=y +CONFIG_FEATURE_TI_RPC=y +CONFIG_IP=y +CONFIG_FEATURE_IP_ADDRESS=y +CONFIG_FEATURE_IP_LINK=y +CONFIG_FEATURE_IP_ROUTE=y +CONFIG_FEATURE_IP_TUNNEL=y +CONFIG_FEATURE_IP_RULE=y +CONFIG_FEATURE_IP_SHORT_FORMS=y +# CONFIG_FEATURE_IP_RARE_PROTOCOLS is not set +CONFIG_IPADDR=y +CONFIG_IPLINK=y +CONFIG_IPROUTE=y +CONFIG_IPTUNNEL=y +CONFIG_IPRULE=y +CONFIG_IPCALC=y +CONFIG_FEATURE_IPCALC_FANCY=y +CONFIG_FEATURE_IPCALC_LONG_OPTIONS=y +CONFIG_NETSTAT=y +CONFIG_FEATURE_NETSTAT_WIDE=y +CONFIG_FEATURE_NETSTAT_PRG=y +CONFIG_NSLOOKUP=y +CONFIG_NTPD=y +CONFIG_FEATURE_NTPD_SERVER=y +CONFIG_PSCAN=y +CONFIG_ROUTE=y +CONFIG_SLATTACH=y +CONFIG_TCPSVD=y +CONFIG_TELNET=y +CONFIG_FEATURE_TELNET_TTYPE=y +CONFIG_FEATURE_TELNET_AUTOLOGIN=y +CONFIG_TELNETD=y +CONFIG_FEATURE_TELNETD_STANDALONE=y +CONFIG_FEATURE_TELNETD_INETD_WAIT=y +CONFIG_TFTP=y +CONFIG_TFTPD=y + +# +# Common options for tftp/tftpd +# +CONFIG_FEATURE_TFTP_GET=y +CONFIG_FEATURE_TFTP_PUT=y +CONFIG_FEATURE_TFTP_BLOCKSIZE=y +CONFIG_FEATURE_TFTP_PROGRESS_BAR=y +# CONFIG_TFTP_DEBUG is not set +CONFIG_TRACEROUTE=y +CONFIG_TRACEROUTE6=y +CONFIG_FEATURE_TRACEROUTE_VERBOSE=y +# CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE is not set +# CONFIG_FEATURE_TRACEROUTE_USE_ICMP is not set +CONFIG_TUNCTL=y +CONFIG_FEATURE_TUNCTL_UG=y +# CONFIG_UDHCPC6 is not set +CONFIG_UDHCPD=y +CONFIG_DHCPRELAY=y +CONFIG_DUMPLEASES=y +CONFIG_FEATURE_UDHCPD_WRITE_LEASES_EARLY=y +# CONFIG_FEATURE_UDHCPD_BASE_IP_ON_MAC is not set +CONFIG_DHCPD_LEASES_FILE="/var/lib/misc/udhcpd.leases" +CONFIG_UDHCPC=y +CONFIG_FEATURE_UDHCPC_ARPING=y +# CONFIG_FEATURE_UDHCP_PORT is not set +CONFIG_UDHCP_DEBUG=9 +CONFIG_FEATURE_UDHCP_RFC3397=y +CONFIG_FEATURE_UDHCP_8021Q=y +CONFIG_UDHCPC_DEFAULT_SCRIPT="/usr/share/udhcpc/default.script" +CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=80 +CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS="-R -n" +CONFIG_UDPSVD=y +CONFIG_VCONFIG=y +CONFIG_WGET=y +CONFIG_FEATURE_WGET_STATUSBAR=y +CONFIG_FEATURE_WGET_AUTHENTICATION=y +CONFIG_FEATURE_WGET_LONG_OPTIONS=y +CONFIG_FEATURE_WGET_TIMEOUT=y +CONFIG_ZCIP=y + +# +# Print Utilities +# +CONFIG_LPD=y +CONFIG_LPR=y +CONFIG_LPQ=y + +# +# Mail Utilities +# +CONFIG_MAKEMIME=y +CONFIG_FEATURE_MIME_CHARSET="us-ascii" +CONFIG_POPMAILDIR=y +CONFIG_FEATURE_POPMAILDIR_DELIVERY=y +CONFIG_REFORMIME=y +CONFIG_FEATURE_REFORMIME_COMPAT=y +CONFIG_SENDMAIL=y + +# +# Process Utilities +# +CONFIG_IOSTAT=y +CONFIG_LSOF=y +CONFIG_MPSTAT=y +CONFIG_NMETER=y +CONFIG_PMAP=y +CONFIG_POWERTOP=y +CONFIG_PSTREE=y +CONFIG_PWDX=y +CONFIG_SMEMCAP=y +CONFIG_UPTIME=y +CONFIG_FEATURE_UPTIME_UTMP_SUPPORT=y +CONFIG_FREE=y +CONFIG_FUSER=y +CONFIG_KILL=y +CONFIG_KILLALL=y +CONFIG_KILLALL5=y +CONFIG_PGREP=y +CONFIG_PIDOF=y +CONFIG_FEATURE_PIDOF_SINGLE=y +CONFIG_FEATURE_PIDOF_OMIT=y +CONFIG_PKILL=y +CONFIG_PS=y +# CONFIG_FEATURE_PS_WIDE is not set +# CONFIG_FEATURE_PS_LONG is not set +CONFIG_FEATURE_PS_TIME=y +CONFIG_FEATURE_PS_ADDITIONAL_COLUMNS=y +# CONFIG_FEATURE_PS_UNUSUAL_SYSTEMS is not set +CONFIG_RENICE=y +CONFIG_BB_SYSCTL=y +CONFIG_TOP=y +CONFIG_FEATURE_TOP_CPU_USAGE_PERCENTAGE=y +CONFIG_FEATURE_TOP_CPU_GLOBAL_PERCENTS=y +CONFIG_FEATURE_TOP_SMP_CPU=y +CONFIG_FEATURE_TOP_STEAL=y +CONFIG_FEATURE_TOP_DECIMALS=y +CONFIG_FEATURE_TOP_SMP_PROCESS=y +CONFIG_FEATURE_TOPMEM=y +CONFIG_FEATURE_SHOW_THREADS=y +CONFIG_WATCH=y + +# +# Runit Utilities +# +CONFIG_RUNSV=y +CONFIG_RUNSVDIR=y +# CONFIG_FEATURE_RUNSVDIR_LOG is not set +CONFIG_SV=y +CONFIG_SV_DEFAULT_SERVICE_DIR="/var/service" +CONFIG_SVLOGD=y +CONFIG_CHPST=y +CONFIG_SETUIDGID=y +CONFIG_ENVUIDGID=y +CONFIG_ENVDIR=y +CONFIG_SOFTLIMIT=y +# CONFIG_CHCON is not set +# CONFIG_FEATURE_CHCON_LONG_OPTIONS is not set +# CONFIG_GETENFORCE is not set +# CONFIG_GETSEBOOL is not set +# CONFIG_LOAD_POLICY is not set +# CONFIG_MATCHPATHCON is not set +# CONFIG_RESTORECON is not set +# CONFIG_RUNCON is not set +# CONFIG_FEATURE_RUNCON_LONG_OPTIONS is not set +# CONFIG_SELINUXENABLED is not set +# CONFIG_SETENFORCE is not set +# CONFIG_SETFILES is not set +# CONFIG_FEATURE_SETFILES_CHECK_OPTION is not set +# CONFIG_SETSEBOOL is not set +# CONFIG_SESTATUS is not set + +# +# Shells +# +CONFIG_ASH=y +CONFIG_ASH_BASH_COMPAT=y +# CONFIG_ASH_IDLE_TIMEOUT is not set +CONFIG_ASH_JOB_CONTROL=y +CONFIG_ASH_ALIAS=y +CONFIG_ASH_GETOPTS=y +CONFIG_ASH_BUILTIN_ECHO=y +CONFIG_ASH_BUILTIN_PRINTF=y +CONFIG_ASH_BUILTIN_TEST=y +CONFIG_ASH_CMDCMD=y +# CONFIG_ASH_MAIL is not set +CONFIG_ASH_OPTIMIZE_FOR_SIZE=y +CONFIG_ASH_RANDOM_SUPPORT=y +CONFIG_ASH_EXPAND_PRMT=y +CONFIG_CTTYHACK=y +CONFIG_HUSH=y +CONFIG_HUSH_BASH_COMPAT=y +CONFIG_HUSH_BRACE_EXPANSION=y +CONFIG_HUSH_HELP=y +CONFIG_HUSH_INTERACTIVE=y +CONFIG_HUSH_SAVEHISTORY=y +CONFIG_HUSH_JOB=y +CONFIG_HUSH_TICK=y +CONFIG_HUSH_IF=y +CONFIG_HUSH_LOOPS=y +CONFIG_HUSH_CASE=y +CONFIG_HUSH_FUNCTIONS=y +CONFIG_HUSH_LOCAL=y +CONFIG_HUSH_RANDOM_SUPPORT=y +CONFIG_HUSH_EXPORT_N=y +CONFIG_HUSH_MODE_X=y +# CONFIG_MSH is not set +CONFIG_FEATURE_SH_IS_ASH=y +# CONFIG_FEATURE_SH_IS_HUSH is not set +# CONFIG_FEATURE_SH_IS_NONE is not set +# CONFIG_FEATURE_BASH_IS_ASH is not set +# CONFIG_FEATURE_BASH_IS_HUSH is not set +CONFIG_FEATURE_BASH_IS_NONE=y +CONFIG_SH_MATH_SUPPORT=y +CONFIG_SH_MATH_SUPPORT_64=y +CONFIG_FEATURE_SH_EXTRA_QUIET=y +# CONFIG_FEATURE_SH_STANDALONE is not set +# CONFIG_FEATURE_SH_NOFORK is not set +CONFIG_FEATURE_SH_HISTFILESIZE=y + +# +# System Logging Utilities +# +CONFIG_SYSLOGD=y +CONFIG_FEATURE_ROTATE_LOGFILE=y +CONFIG_FEATURE_REMOTE_LOG=y +CONFIG_FEATURE_SYSLOGD_DUP=y +CONFIG_FEATURE_SYSLOGD_CFG=y +CONFIG_FEATURE_SYSLOGD_READ_BUFFER_SIZE=256 +CONFIG_FEATURE_IPC_SYSLOG=y +CONFIG_FEATURE_IPC_SYSLOG_BUFFER_SIZE=16 +CONFIG_LOGREAD=y +CONFIG_FEATURE_LOGREAD_REDUCED_LOCKING=y +CONFIG_KLOGD=y +CONFIG_FEATURE_KLOGD_KLOGCTL=y +CONFIG_LOGGER=y diff -Naur busybox-1.20.2/configs/sstar_alkaid_arm-aarch64-linux-gnu-glibc-static_defconfig busybox-1.20.2_mod/configs/sstar_alkaid_arm-aarch64-linux-gnu-glibc-static_defconfig --- busybox-1.20.2/configs/sstar_alkaid_arm-aarch64-linux-gnu-glibc-static_defconfig 1970-01-01 08:00:00.000000000 +0800 +++ busybox-1.20.2_mod/configs/sstar_alkaid_arm-aarch64-linux-gnu-glibc-static_defconfig 2024-04-07 17:16:54.155801600 +0800 @@ -0,0 +1,1026 @@ +# +# Automatically generated make config: don't edit +# Busybox version: 1.20.2 +# Wed Dec 27 23:51:40 2017 +# +CONFIG_HAVE_DOT_CONFIG=y + +# +# Busybox Settings +# + +# +# General Configuration +# +CONFIG_DESKTOP=y +# CONFIG_EXTRA_COMPAT is not set +CONFIG_INCLUDE_SUSv2=y +# CONFIG_USE_PORTABLE_CODE is not set +CONFIG_PLATFORM_LINUX=y +CONFIG_FEATURE_BUFFERS_USE_MALLOC=y +# CONFIG_FEATURE_BUFFERS_GO_ON_STACK is not set +# CONFIG_FEATURE_BUFFERS_GO_IN_BSS is not set +CONFIG_SHOW_USAGE=y +CONFIG_FEATURE_VERBOSE_USAGE=y +CONFIG_FEATURE_COMPRESS_USAGE=y +CONFIG_FEATURE_INSTALLER=y +# CONFIG_INSTALL_NO_USR is not set +# CONFIG_LOCALE_SUPPORT is not set +CONFIG_UNICODE_SUPPORT=y +# CONFIG_UNICODE_USING_LOCALE is not set +# CONFIG_FEATURE_CHECK_UNICODE_IN_ENV is not set +CONFIG_SUBST_WCHAR=63 +CONFIG_LAST_SUPPORTED_WCHAR=767 +# CONFIG_UNICODE_COMBINING_WCHARS is not set +# CONFIG_UNICODE_WIDE_WCHARS is not set +# CONFIG_UNICODE_BIDI_SUPPORT is not set +# CONFIG_UNICODE_NEUTRAL_TABLE is not set +# CONFIG_UNICODE_PRESERVE_BROKEN is not set +CONFIG_LONG_OPTS=y +CONFIG_FEATURE_DEVPTS=y +# CONFIG_FEATURE_CLEAN_UP is not set +CONFIG_FEATURE_UTMP=y +CONFIG_FEATURE_WTMP=y +CONFIG_FEATURE_PIDFILE=y +CONFIG_FEATURE_SUID=y +CONFIG_FEATURE_SUID_CONFIG=y +CONFIG_FEATURE_SUID_CONFIG_QUIET=y +# CONFIG_SELINUX is not set +# CONFIG_FEATURE_PREFER_APPLETS is not set +CONFIG_BUSYBOX_EXEC_PATH="/proc/self/exe" +CONFIG_FEATURE_SYSLOG=y +CONFIG_FEATURE_HAVE_RPC=y + +# +# Build Options +# +CONFIG_STATIC=y +# CONFIG_PIE is not set +# CONFIG_NOMMU is not set +# CONFIG_BUILD_LIBBUSYBOX is not set +# CONFIG_FEATURE_INDIVIDUAL is not set +# CONFIG_FEATURE_SHARED_BUSYBOX is not set +CONFIG_LFS=y +CONFIG_CROSS_COMPILER_PREFIX="aarch64-linux-gnu-" +CONFIG_SYSROOT="" +CONFIG_EXTRA_CFLAGS="" +CONFIG_EXTRA_LDFLAGS="" +CONFIG_EXTRA_LDLIBS="" + +# +# Debugging Options +# +# CONFIG_DEBUG is not set +# CONFIG_DEBUG_PESSIMIZE is not set +# CONFIG_WERROR is not set +CONFIG_NO_DEBUG_LIB=y +# CONFIG_DMALLOC is not set +# CONFIG_EFENCE is not set + +# +# Installation Options ("make install" behavior) +# +CONFIG_INSTALL_APPLET_SYMLINKS=y +# CONFIG_INSTALL_APPLET_HARDLINKS is not set +# CONFIG_INSTALL_APPLET_SCRIPT_WRAPPERS is not set +# CONFIG_INSTALL_APPLET_DONT is not set +# CONFIG_INSTALL_SH_APPLET_SYMLINK is not set +# CONFIG_INSTALL_SH_APPLET_HARDLINK is not set +# CONFIG_INSTALL_SH_APPLET_SCRIPT_WRAPPER is not set +CONFIG_PREFIX="./_install" + +# +# Busybox Library Tuning +# +CONFIG_FEATURE_SYSTEMD=y +CONFIG_FEATURE_RTMINMAX=y +CONFIG_PASSWORD_MINLEN=6 +CONFIG_MD5_SMALL=1 +CONFIG_FEATURE_FAST_TOP=y +# CONFIG_FEATURE_ETC_NETWORKS is not set +CONFIG_FEATURE_USE_TERMIOS=y +CONFIG_FEATURE_EDITING=y +CONFIG_FEATURE_EDITING_MAX_LEN=1024 +# CONFIG_FEATURE_EDITING_VI is not set +CONFIG_FEATURE_EDITING_HISTORY=255 +CONFIG_FEATURE_EDITING_SAVEHISTORY=y +# CONFIG_FEATURE_EDITING_SAVE_ON_EXIT is not set +CONFIG_FEATURE_REVERSE_SEARCH=y +CONFIG_FEATURE_TAB_COMPLETION=y +# CONFIG_FEATURE_USERNAME_COMPLETION is not set +CONFIG_FEATURE_EDITING_FANCY_PROMPT=y +# CONFIG_FEATURE_EDITING_ASK_TERMINAL is not set +CONFIG_FEATURE_NON_POSIX_CP=y +# CONFIG_FEATURE_VERBOSE_CP_MESSAGE is not set +CONFIG_FEATURE_COPYBUF_KB=4 +CONFIG_FEATURE_SKIP_ROOTFS=y +# CONFIG_MONOTONIC_SYSCALL is not set +CONFIG_IOCTL_HEX2STR_ERROR=y +CONFIG_FEATURE_HWIB=y + +# +# Applets +# + +# +# Archival Utilities +# +CONFIG_FEATURE_SEAMLESS_XZ=y +CONFIG_FEATURE_SEAMLESS_LZMA=y +CONFIG_FEATURE_SEAMLESS_BZ2=y +CONFIG_FEATURE_SEAMLESS_GZ=y +# CONFIG_FEATURE_SEAMLESS_Z is not set +# CONFIG_AR is not set +# CONFIG_FEATURE_AR_LONG_FILENAMES is not set +# CONFIG_FEATURE_AR_CREATE is not set +CONFIG_BUNZIP2=y +CONFIG_BZIP2=y +CONFIG_CPIO=y +CONFIG_FEATURE_CPIO_O=y +CONFIG_FEATURE_CPIO_P=y +# CONFIG_DPKG is not set +# CONFIG_DPKG_DEB is not set +# CONFIG_FEATURE_DPKG_DEB_EXTRACT_ONLY is not set +CONFIG_GUNZIP=y +CONFIG_GZIP=y +CONFIG_FEATURE_GZIP_LONG_OPTIONS=y +CONFIG_GZIP_FAST=0 +CONFIG_LZOP=y +# CONFIG_LZOP_COMPR_HIGH is not set +CONFIG_RPM2CPIO=y +CONFIG_RPM=y +CONFIG_TAR=y +CONFIG_FEATURE_TAR_CREATE=y +CONFIG_FEATURE_TAR_AUTODETECT=y +CONFIG_FEATURE_TAR_FROM=y +CONFIG_FEATURE_TAR_OLDGNU_COMPATIBILITY=y +CONFIG_FEATURE_TAR_OLDSUN_COMPATIBILITY=y +CONFIG_FEATURE_TAR_GNU_EXTENSIONS=y +CONFIG_FEATURE_TAR_LONG_OPTIONS=y +CONFIG_FEATURE_TAR_TO_COMMAND=y +CONFIG_FEATURE_TAR_UNAME_GNAME=y +CONFIG_FEATURE_TAR_NOPRESERVE_TIME=y +# CONFIG_FEATURE_TAR_SELINUX is not set +# CONFIG_UNCOMPRESS is not set +CONFIG_UNLZMA=y +# CONFIG_FEATURE_LZMA_FAST is not set +CONFIG_LZMA=y +CONFIG_UNXZ=y +CONFIG_XZ=y +CONFIG_UNZIP=y + +# +# Coreutils +# +CONFIG_BASENAME=y +CONFIG_CAT=y +CONFIG_DATE=y +CONFIG_FEATURE_DATE_ISOFMT=y +# CONFIG_FEATURE_DATE_NANO is not set +CONFIG_FEATURE_DATE_COMPAT=y +CONFIG_HOSTID=y +CONFIG_ID=y +CONFIG_GROUPS=y +CONFIG_TEST=y +CONFIG_FEATURE_TEST_64=y +CONFIG_TOUCH=y +CONFIG_FEATURE_TOUCH_SUSV3=y +CONFIG_TR=y +CONFIG_FEATURE_TR_CLASSES=y +CONFIG_FEATURE_TR_EQUIV=y +CONFIG_BASE64=y +CONFIG_WHO=y +CONFIG_USERS=y +CONFIG_CAL=y +CONFIG_CATV=y +CONFIG_CHGRP=y +CONFIG_CHMOD=y +CONFIG_CHOWN=y +CONFIG_FEATURE_CHOWN_LONG_OPTIONS=y +CONFIG_CHROOT=y +CONFIG_CKSUM=y +CONFIG_COMM=y +CONFIG_CP=y +CONFIG_FEATURE_CP_LONG_OPTIONS=y +CONFIG_CUT=y +CONFIG_DD=y +CONFIG_FEATURE_DD_SIGNAL_HANDLING=y +CONFIG_FEATURE_DD_THIRD_STATUS_LINE=y +CONFIG_FEATURE_DD_IBS_OBS=y +CONFIG_DF=y +CONFIG_FEATURE_DF_FANCY=y +CONFIG_DIRNAME=y +CONFIG_DOS2UNIX=y +CONFIG_UNIX2DOS=y +CONFIG_DU=y +CONFIG_FEATURE_DU_DEFAULT_BLOCKSIZE_1K=y +CONFIG_ECHO=y +CONFIG_FEATURE_FANCY_ECHO=y +CONFIG_ENV=y +CONFIG_FEATURE_ENV_LONG_OPTIONS=y +CONFIG_EXPAND=y +CONFIG_FEATURE_EXPAND_LONG_OPTIONS=y +CONFIG_EXPR=y +CONFIG_EXPR_MATH_SUPPORT_64=y +CONFIG_FALSE=y +CONFIG_FOLD=y +CONFIG_FSYNC=y +CONFIG_HEAD=y +CONFIG_FEATURE_FANCY_HEAD=y +CONFIG_INSTALL=y +CONFIG_FEATURE_INSTALL_LONG_OPTIONS=y +CONFIG_LN=y +CONFIG_LOGNAME=y +CONFIG_LS=y +CONFIG_FEATURE_LS_FILETYPES=y +CONFIG_FEATURE_LS_FOLLOWLINKS=y +CONFIG_FEATURE_LS_RECURSIVE=y +CONFIG_FEATURE_LS_SORTFILES=y +CONFIG_FEATURE_LS_TIMESTAMPS=y +CONFIG_FEATURE_LS_USERNAME=y +CONFIG_FEATURE_LS_COLOR=y +CONFIG_FEATURE_LS_COLOR_IS_DEFAULT=y +CONFIG_MD5SUM=y +CONFIG_MKDIR=y +CONFIG_FEATURE_MKDIR_LONG_OPTIONS=y +CONFIG_MKFIFO=y +CONFIG_MKNOD=y +CONFIG_MV=y +CONFIG_FEATURE_MV_LONG_OPTIONS=y +CONFIG_NICE=y +CONFIG_NOHUP=y +CONFIG_OD=y +CONFIG_PRINTENV=y +CONFIG_PRINTF=y +CONFIG_PWD=y +CONFIG_READLINK=y +CONFIG_FEATURE_READLINK_FOLLOW=y +CONFIG_REALPATH=y +CONFIG_RM=y +CONFIG_RMDIR=y +CONFIG_FEATURE_RMDIR_LONG_OPTIONS=y +CONFIG_SEQ=y +CONFIG_SHA1SUM=y +CONFIG_SHA256SUM=y +CONFIG_SHA512SUM=y +CONFIG_SLEEP=y +CONFIG_FEATURE_FANCY_SLEEP=y +CONFIG_FEATURE_FLOAT_SLEEP=y +CONFIG_SORT=y +CONFIG_FEATURE_SORT_BIG=y +CONFIG_SPLIT=y +CONFIG_FEATURE_SPLIT_FANCY=y +CONFIG_STAT=y +CONFIG_FEATURE_STAT_FORMAT=y +CONFIG_STTY=y +CONFIG_SUM=y +CONFIG_SYNC=y +CONFIG_TAC=y +CONFIG_TAIL=y +CONFIG_FEATURE_FANCY_TAIL=y +CONFIG_TEE=y +CONFIG_FEATURE_TEE_USE_BLOCK_IO=y +CONFIG_TRUE=y +CONFIG_TTY=y +CONFIG_UNAME=y +CONFIG_UNEXPAND=y +CONFIG_FEATURE_UNEXPAND_LONG_OPTIONS=y +CONFIG_UNIQ=y +CONFIG_USLEEP=y +CONFIG_UUDECODE=y +CONFIG_UUENCODE=y +CONFIG_WC=y +CONFIG_FEATURE_WC_LARGE=y +CONFIG_WHOAMI=y +CONFIG_YES=y + +# +# Common options for cp and mv +# +CONFIG_FEATURE_PRESERVE_HARDLINKS=y + +# +# Common options for ls, more and telnet +# +CONFIG_FEATURE_AUTOWIDTH=y + +# +# Common options for df, du, ls +# +CONFIG_FEATURE_HUMAN_READABLE=y + +# +# Common options for md5sum, sha1sum, sha256sum, sha512sum +# +CONFIG_FEATURE_MD5_SHA1_SUM_CHECK=y + +# +# Console Utilities +# +CONFIG_CHVT=y +CONFIG_FGCONSOLE=y +CONFIG_CLEAR=y +CONFIG_DEALLOCVT=y +CONFIG_DUMPKMAP=y +CONFIG_KBD_MODE=y +CONFIG_LOADFONT=y +CONFIG_LOADKMAP=y +CONFIG_OPENVT=y +CONFIG_RESET=y +CONFIG_RESIZE=y +CONFIG_FEATURE_RESIZE_PRINT=y +CONFIG_SETCONSOLE=y +CONFIG_FEATURE_SETCONSOLE_LONG_OPTIONS=y +CONFIG_SETFONT=y +CONFIG_FEATURE_SETFONT_TEXTUAL_MAP=y +CONFIG_DEFAULT_SETFONT_DIR="" +CONFIG_SETKEYCODES=y +CONFIG_SETLOGCONS=y +CONFIG_SHOWKEY=y + +# +# Common options for loadfont and setfont +# +CONFIG_FEATURE_LOADFONT_PSF2=y +CONFIG_FEATURE_LOADFONT_RAW=y + +# +# Debian Utilities +# +CONFIG_MKTEMP=y +CONFIG_PIPE_PROGRESS=y +CONFIG_RUN_PARTS=y +CONFIG_FEATURE_RUN_PARTS_LONG_OPTIONS=y +CONFIG_FEATURE_RUN_PARTS_FANCY=y +CONFIG_START_STOP_DAEMON=y +CONFIG_FEATURE_START_STOP_DAEMON_FANCY=y +CONFIG_FEATURE_START_STOP_DAEMON_LONG_OPTIONS=y +CONFIG_WHICH=y + +# +# Editors +# +CONFIG_PATCH=y +CONFIG_VI=y +CONFIG_FEATURE_VI_MAX_LEN=4096 +# CONFIG_FEATURE_VI_8BIT is not set +CONFIG_FEATURE_VI_COLON=y +CONFIG_FEATURE_VI_YANKMARK=y +CONFIG_FEATURE_VI_SEARCH=y +# CONFIG_FEATURE_VI_REGEX_SEARCH is not set +CONFIG_FEATURE_VI_USE_SIGNALS=y +CONFIG_FEATURE_VI_DOT_CMD=y +CONFIG_FEATURE_VI_READONLY=y +CONFIG_FEATURE_VI_SETOPTS=y +CONFIG_FEATURE_VI_SET=y +CONFIG_FEATURE_VI_WIN_RESIZE=y +CONFIG_FEATURE_VI_ASK_TERMINAL=y +CONFIG_FEATURE_VI_OPTIMIZE_CURSOR=y +CONFIG_AWK=y +CONFIG_FEATURE_AWK_LIBM=y +CONFIG_CMP=y +CONFIG_DIFF=y +CONFIG_FEATURE_DIFF_LONG_OPTIONS=y +CONFIG_FEATURE_DIFF_DIR=y +CONFIG_ED=y +CONFIG_SED=y +CONFIG_FEATURE_ALLOW_EXEC=y + +# +# Finding Utilities +# +CONFIG_FIND=y +CONFIG_FEATURE_FIND_PRINT0=y +CONFIG_FEATURE_FIND_MTIME=y +CONFIG_FEATURE_FIND_MMIN=y +CONFIG_FEATURE_FIND_PERM=y +CONFIG_FEATURE_FIND_TYPE=y +CONFIG_FEATURE_FIND_XDEV=y +CONFIG_FEATURE_FIND_MAXDEPTH=y +CONFIG_FEATURE_FIND_NEWER=y +CONFIG_FEATURE_FIND_INUM=y +CONFIG_FEATURE_FIND_EXEC=y +CONFIG_FEATURE_FIND_USER=y +CONFIG_FEATURE_FIND_GROUP=y +CONFIG_FEATURE_FIND_NOT=y +CONFIG_FEATURE_FIND_DEPTH=y +CONFIG_FEATURE_FIND_PAREN=y +CONFIG_FEATURE_FIND_SIZE=y +CONFIG_FEATURE_FIND_PRUNE=y +CONFIG_FEATURE_FIND_DELETE=y +CONFIG_FEATURE_FIND_PATH=y +CONFIG_FEATURE_FIND_REGEX=y +# CONFIG_FEATURE_FIND_CONTEXT is not set +CONFIG_FEATURE_FIND_LINKS=y +CONFIG_GREP=y +CONFIG_FEATURE_GREP_EGREP_ALIAS=y +CONFIG_FEATURE_GREP_FGREP_ALIAS=y +CONFIG_FEATURE_GREP_CONTEXT=y +CONFIG_XARGS=y +CONFIG_FEATURE_XARGS_SUPPORT_CONFIRMATION=y +CONFIG_FEATURE_XARGS_SUPPORT_QUOTES=y +CONFIG_FEATURE_XARGS_SUPPORT_TERMOPT=y +CONFIG_FEATURE_XARGS_SUPPORT_ZERO_TERM=y + +# +# Init Utilities +# +CONFIG_BOOTCHARTD=y +CONFIG_FEATURE_BOOTCHARTD_BLOATED_HEADER=y +CONFIG_FEATURE_BOOTCHARTD_CONFIG_FILE=y +CONFIG_HALT=y +# CONFIG_FEATURE_CALL_TELINIT is not set +CONFIG_TELINIT_PATH="" +CONFIG_INIT=y +CONFIG_FEATURE_USE_INITTAB=y +# CONFIG_FEATURE_KILL_REMOVED is not set +CONFIG_FEATURE_KILL_DELAY=0 +CONFIG_FEATURE_INIT_SCTTY=y +# CONFIG_FEATURE_INIT_SYSLOG is not set +CONFIG_FEATURE_EXTRA_QUIET=y +CONFIG_FEATURE_INIT_COREDUMPS=y +CONFIG_FEATURE_INITRD=y +CONFIG_INIT_TERMINAL_TYPE="linux" +CONFIG_MESG=y +CONFIG_FEATURE_MESG_ENABLE_ONLY_GROUP=y + +# +# Login/Password Management Utilities +# +CONFIG_ADD_SHELL=y +CONFIG_REMOVE_SHELL=y +CONFIG_FEATURE_SHADOWPASSWDS=y +CONFIG_USE_BB_PWD_GRP=y +CONFIG_USE_BB_SHADOW=y +CONFIG_USE_BB_CRYPT=y +CONFIG_USE_BB_CRYPT_SHA=y +CONFIG_ADDUSER=y +CONFIG_FEATURE_ADDUSER_LONG_OPTIONS=y +# CONFIG_FEATURE_CHECK_NAMES is not set +CONFIG_FIRST_SYSTEM_ID=100 +CONFIG_LAST_SYSTEM_ID=999 +CONFIG_ADDGROUP=y +CONFIG_FEATURE_ADDGROUP_LONG_OPTIONS=y +CONFIG_FEATURE_ADDUSER_TO_GROUP=y +CONFIG_DELUSER=y +CONFIG_DELGROUP=y +CONFIG_FEATURE_DEL_USER_FROM_GROUP=y +CONFIG_GETTY=y +CONFIG_LOGIN=y +# CONFIG_LOGIN_SESSION_AS_CHILD is not set +# CONFIG_PAM is not set +CONFIG_LOGIN_SCRIPTS=y +CONFIG_FEATURE_NOLOGIN=y +CONFIG_FEATURE_SECURETTY=y +CONFIG_PASSWD=y +CONFIG_FEATURE_PASSWD_WEAK_CHECK=y +CONFIG_CRYPTPW=y +CONFIG_CHPASSWD=y +CONFIG_FEATURE_DEFAULT_PASSWD_ALGO="des" +CONFIG_SU=y +CONFIG_FEATURE_SU_SYSLOG=y +CONFIG_FEATURE_SU_CHECKS_SHELLS=y +CONFIG_SULOGIN=y +CONFIG_VLOCK=y + +# +# Linux Ext2 FS Progs +# +CONFIG_CHATTR=y +CONFIG_FSCK=y +CONFIG_LSATTR=y +# CONFIG_TUNE2FS is not set + +# +# Linux Module Utilities +# +CONFIG_MODINFO=y +CONFIG_MODPROBE_SMALL=y +CONFIG_FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE=y +CONFIG_FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED=y +# CONFIG_INSMOD is not set +# CONFIG_RMMOD is not set +# CONFIG_LSMOD is not set +# CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT is not set +# CONFIG_MODPROBE is not set +# CONFIG_FEATURE_MODPROBE_BLACKLIST is not set +# CONFIG_DEPMOD is not set + +# +# Options common to multiple modutils +# +# CONFIG_FEATURE_2_4_MODULES is not set +# CONFIG_FEATURE_INSMOD_TRY_MMAP is not set +# CONFIG_FEATURE_INSMOD_VERSION_CHECKING is not set +# CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS is not set +# CONFIG_FEATURE_INSMOD_LOADINKMEM is not set +# CONFIG_FEATURE_INSMOD_LOAD_MAP is not set +# CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL is not set +# CONFIG_FEATURE_CHECK_TAINTED_MODULE is not set +# CONFIG_FEATURE_MODUTILS_ALIAS is not set +# CONFIG_FEATURE_MODUTILS_SYMBOLS is not set +CONFIG_DEFAULT_MODULES_DIR="/lib/modules" +CONFIG_DEFAULT_DEPMOD_FILE="modules.dep" + +# +# Linux System Utilities +# +CONFIG_BLOCKDEV=y +CONFIG_MDEV=y +CONFIG_FEATURE_MDEV_CONF=y +CONFIG_FEATURE_MDEV_RENAME=y +CONFIG_FEATURE_MDEV_RENAME_REGEXP=y +CONFIG_FEATURE_MDEV_EXEC=y +CONFIG_FEATURE_MDEV_LOAD_FIRMWARE=y +CONFIG_REV=y +CONFIG_ACPID=y +CONFIG_FEATURE_ACPID_COMPAT=y +CONFIG_BLKID=y +# CONFIG_FEATURE_BLKID_TYPE is not set +CONFIG_DMESG=y +CONFIG_FEATURE_DMESG_PRETTY=y +CONFIG_FBSET=y +CONFIG_FEATURE_FBSET_FANCY=y +CONFIG_FEATURE_FBSET_READMODE=y +CONFIG_FDFLUSH=y +CONFIG_FDFORMAT=y +CONFIG_FDISK=y +# CONFIG_FDISK_SUPPORT_LARGE_DISKS is not set +CONFIG_FEATURE_FDISK_WRITABLE=y +# CONFIG_FEATURE_AIX_LABEL is not set +# CONFIG_FEATURE_SGI_LABEL is not set +# CONFIG_FEATURE_SUN_LABEL is not set +# CONFIG_FEATURE_OSF_LABEL is not set +# CONFIG_FEATURE_GPT_LABEL is not set +CONFIG_FEATURE_FDISK_ADVANCED=y +CONFIG_FINDFS=y +CONFIG_FLOCK=y +CONFIG_FREERAMDISK=y +CONFIG_FSCK_MINIX=y +CONFIG_MKFS_EXT2=y +CONFIG_MKFS_MINIX=y +CONFIG_FEATURE_MINIX2=y +# CONFIG_MKFS_REISER is not set +CONFIG_MKFS_VFAT=y +CONFIG_GETOPT=y +CONFIG_FEATURE_GETOPT_LONG=y +CONFIG_HEXDUMP=y +CONFIG_FEATURE_HEXDUMP_REVERSE=y +CONFIG_HD=y +CONFIG_HWCLOCK=y +CONFIG_FEATURE_HWCLOCK_LONG_OPTIONS=y +# CONFIG_FEATURE_HWCLOCK_ADJTIME_FHS is not set +CONFIG_IPCRM=y +CONFIG_IPCS=y +CONFIG_LOSETUP=y +CONFIG_LSPCI=y +CONFIG_LSUSB=y +CONFIG_MKSWAP=y +CONFIG_FEATURE_MKSWAP_UUID=y +CONFIG_MORE=y +CONFIG_MOUNT=y +CONFIG_FEATURE_MOUNT_FAKE=y +CONFIG_FEATURE_MOUNT_VERBOSE=y +# CONFIG_FEATURE_MOUNT_HELPERS is not set +CONFIG_FEATURE_MOUNT_LABEL=y +# CONFIG_FEATURE_MOUNT_NFS is not set +CONFIG_FEATURE_MOUNT_CIFS=y +CONFIG_FEATURE_MOUNT_FLAGS=y +CONFIG_FEATURE_MOUNT_FSTAB=y +CONFIG_PIVOT_ROOT=y +CONFIG_RDATE=y +CONFIG_RDEV=y +CONFIG_READPROFILE=y +CONFIG_RTCWAKE=y +CONFIG_SCRIPT=y +CONFIG_SCRIPTREPLAY=y +CONFIG_SETARCH=y +CONFIG_SWAPONOFF=y +CONFIG_FEATURE_SWAPON_PRI=y +CONFIG_SWITCH_ROOT=y +CONFIG_UMOUNT=y +CONFIG_FEATURE_UMOUNT_ALL=y + +# +# Common options for mount/umount +# +CONFIG_FEATURE_MOUNT_LOOP=y +CONFIG_FEATURE_MOUNT_LOOP_CREATE=y +# CONFIG_FEATURE_MTAB_SUPPORT is not set +CONFIG_VOLUMEID=y + +# +# Filesystem/Volume identification +# +CONFIG_FEATURE_VOLUMEID_EXT=y +CONFIG_FEATURE_VOLUMEID_BTRFS=y +CONFIG_FEATURE_VOLUMEID_REISERFS=y +CONFIG_FEATURE_VOLUMEID_FAT=y +CONFIG_FEATURE_VOLUMEID_HFS=y +CONFIG_FEATURE_VOLUMEID_JFS=y +CONFIG_FEATURE_VOLUMEID_XFS=y +CONFIG_FEATURE_VOLUMEID_NTFS=y +CONFIG_FEATURE_VOLUMEID_ISO9660=y +CONFIG_FEATURE_VOLUMEID_UDF=y +CONFIG_FEATURE_VOLUMEID_LUKS=y +CONFIG_FEATURE_VOLUMEID_LINUXSWAP=y +CONFIG_FEATURE_VOLUMEID_CRAMFS=y +CONFIG_FEATURE_VOLUMEID_ROMFS=y +CONFIG_FEATURE_VOLUMEID_SYSV=y +CONFIG_FEATURE_VOLUMEID_OCFS2=y +CONFIG_FEATURE_VOLUMEID_LINUXRAID=y + +# +# Miscellaneous Utilities +# +CONFIG_CONSPY=y +CONFIG_LESS=y +CONFIG_FEATURE_LESS_MAXLINES=9999999 +CONFIG_FEATURE_LESS_BRACKETS=y +CONFIG_FEATURE_LESS_FLAGS=y +CONFIG_FEATURE_LESS_MARKS=y +CONFIG_FEATURE_LESS_REGEXP=y +CONFIG_FEATURE_LESS_WINCH=y +CONFIG_FEATURE_LESS_ASK_TERMINAL=y +CONFIG_FEATURE_LESS_DASHCMD=y +CONFIG_FEATURE_LESS_LINENUMS=y +CONFIG_NANDWRITE=y +CONFIG_NANDDUMP=y +CONFIG_SETSERIAL=y +CONFIG_UBIATTACH=y +CONFIG_UBIDETACH=y +CONFIG_UBIMKVOL=y +CONFIG_UBIRMVOL=y +CONFIG_UBIRSVOL=y +CONFIG_UBIUPDATEVOL=y +CONFIG_ADJTIMEX=y +# CONFIG_BBCONFIG is not set +# CONFIG_FEATURE_COMPRESS_BBCONFIG is not set +CONFIG_BEEP=y +CONFIG_FEATURE_BEEP_FREQ=4000 +CONFIG_FEATURE_BEEP_LENGTH_MS=30 +CONFIG_CHAT=y +CONFIG_FEATURE_CHAT_NOFAIL=y +# CONFIG_FEATURE_CHAT_TTY_HIFI is not set +CONFIG_FEATURE_CHAT_IMPLICIT_CR=y +CONFIG_FEATURE_CHAT_SWALLOW_OPTS=y +CONFIG_FEATURE_CHAT_SEND_ESCAPES=y +CONFIG_FEATURE_CHAT_VAR_ABORT_LEN=y +CONFIG_FEATURE_CHAT_CLR_ABORT=y +CONFIG_CHRT=y +CONFIG_CROND=y +CONFIG_FEATURE_CROND_D=y +CONFIG_FEATURE_CROND_CALL_SENDMAIL=y +CONFIG_FEATURE_CROND_DIR="/var/spool/cron" +CONFIG_CRONTAB=y +CONFIG_DC=y +CONFIG_FEATURE_DC_LIBM=y +# CONFIG_DEVFSD is not set +# CONFIG_DEVFSD_MODLOAD is not set +# CONFIG_DEVFSD_FG_NP is not set +# CONFIG_DEVFSD_VERBOSE is not set +# CONFIG_FEATURE_DEVFS is not set +CONFIG_DEVMEM=y +CONFIG_EJECT=y +CONFIG_FEATURE_EJECT_SCSI=y +CONFIG_FBSPLASH=y +# CONFIG_FLASHCP is not set +# CONFIG_FLASH_LOCK is not set +# CONFIG_FLASH_UNLOCK is not set +CONFIG_FLASH_ERASEALL=y +CONFIG_IONICE=y +# CONFIG_INOTIFYD is not set +CONFIG_LAST=y +# CONFIG_FEATURE_LAST_SMALL is not set +CONFIG_FEATURE_LAST_FANCY=y +CONFIG_HDPARM=y +CONFIG_FEATURE_HDPARM_GET_IDENTITY=y +CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF=y +CONFIG_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF=y +CONFIG_FEATURE_HDPARM_HDIO_DRIVE_RESET=y +CONFIG_FEATURE_HDPARM_HDIO_TRISTATE_HWIF=y +CONFIG_FEATURE_HDPARM_HDIO_GETSET_DMA=y +CONFIG_MAKEDEVS=y +# CONFIG_FEATURE_MAKEDEVS_LEAF is not set +CONFIG_FEATURE_MAKEDEVS_TABLE=y +CONFIG_MAN=y +CONFIG_MICROCOM=y +CONFIG_MOUNTPOINT=y +CONFIG_MT=y +CONFIG_RAIDAUTORUN=y +CONFIG_READAHEAD=y +# CONFIG_RFKILL is not set +CONFIG_RUNLEVEL=y +CONFIG_RX=y +CONFIG_SETSID=y +CONFIG_STRINGS=y +# CONFIG_TASKSET is not set +# CONFIG_FEATURE_TASKSET_FANCY is not set +CONFIG_TIME=y +CONFIG_TIMEOUT=y +CONFIG_TTYSIZE=y +CONFIG_VOLNAME=y +CONFIG_WALL=y +CONFIG_WATCHDOG=y + +# +# Networking Utilities +# +CONFIG_NAMEIF=y +CONFIG_FEATURE_NAMEIF_EXTENDED=y +CONFIG_NBDCLIENT=y +CONFIG_NC=y +CONFIG_NC_SERVER=y +CONFIG_NC_EXTRA=y +# CONFIG_NC_110_COMPAT is not set +CONFIG_PING=y +CONFIG_PING6=y +CONFIG_FEATURE_FANCY_PING=y +CONFIG_WHOIS=y +CONFIG_FEATURE_IPV6=y +# CONFIG_FEATURE_UNIX_LOCAL is not set +CONFIG_FEATURE_PREFER_IPV4_ADDRESS=y +# CONFIG_VERBOSE_RESOLUTION_ERRORS is not set +CONFIG_ARP=y +CONFIG_ARPING=y +CONFIG_BRCTL=y +CONFIG_FEATURE_BRCTL_FANCY=y +CONFIG_FEATURE_BRCTL_SHOW=y +CONFIG_DNSD=y +CONFIG_ETHER_WAKE=y +CONFIG_FAKEIDENTD=y +CONFIG_FTPD=y +CONFIG_FEATURE_FTP_WRITE=y +CONFIG_FEATURE_FTPD_ACCEPT_BROKEN_LIST=y +CONFIG_FTPGET=y +CONFIG_FTPPUT=y +CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS=y +CONFIG_HOSTNAME=y +CONFIG_HTTPD=y +CONFIG_FEATURE_HTTPD_RANGES=y +CONFIG_FEATURE_HTTPD_USE_SENDFILE=y +CONFIG_FEATURE_HTTPD_SETUID=y +CONFIG_FEATURE_HTTPD_BASIC_AUTH=y +CONFIG_FEATURE_HTTPD_AUTH_MD5=y +CONFIG_FEATURE_HTTPD_CGI=y +CONFIG_FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR=y +CONFIG_FEATURE_HTTPD_SET_REMOTE_PORT_TO_ENV=y +CONFIG_FEATURE_HTTPD_ENCODE_URL_STR=y +CONFIG_FEATURE_HTTPD_ERROR_PAGES=y +CONFIG_FEATURE_HTTPD_PROXY=y +CONFIG_FEATURE_HTTPD_GZIP=y +CONFIG_IFCONFIG=y +CONFIG_FEATURE_IFCONFIG_STATUS=y +CONFIG_FEATURE_IFCONFIG_SLIP=y +CONFIG_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ=y +CONFIG_FEATURE_IFCONFIG_HW=y +CONFIG_FEATURE_IFCONFIG_BROADCAST_PLUS=y +CONFIG_IFENSLAVE=y +CONFIG_IFPLUGD=y +CONFIG_IFUPDOWN=y +CONFIG_IFUPDOWN_IFSTATE_PATH="/var/run/ifstate" +CONFIG_FEATURE_IFUPDOWN_IP=y +CONFIG_FEATURE_IFUPDOWN_IP_BUILTIN=y +# CONFIG_FEATURE_IFUPDOWN_IFCONFIG_BUILTIN is not set +CONFIG_FEATURE_IFUPDOWN_IPV4=y +CONFIG_FEATURE_IFUPDOWN_IPV6=y +CONFIG_FEATURE_IFUPDOWN_MAPPING=y +# CONFIG_FEATURE_IFUPDOWN_EXTERNAL_DHCP is not set +CONFIG_INETD=y +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_ECHO=y +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DISCARD=y +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_TIME=y +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DAYTIME=y +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_CHARGEN=y +CONFIG_FEATURE_INETD_RPC=y +CONFIG_FEATURE_TI_RPC=y +CONFIG_IP=y +CONFIG_FEATURE_IP_ADDRESS=y +CONFIG_FEATURE_IP_LINK=y +CONFIG_FEATURE_IP_ROUTE=y +CONFIG_FEATURE_IP_TUNNEL=y +CONFIG_FEATURE_IP_RULE=y +CONFIG_FEATURE_IP_SHORT_FORMS=y +# CONFIG_FEATURE_IP_RARE_PROTOCOLS is not set +CONFIG_IPADDR=y +CONFIG_IPLINK=y +CONFIG_IPROUTE=y +CONFIG_IPTUNNEL=y +CONFIG_IPRULE=y +CONFIG_IPCALC=y +CONFIG_FEATURE_IPCALC_FANCY=y +CONFIG_FEATURE_IPCALC_LONG_OPTIONS=y +CONFIG_NETSTAT=y +CONFIG_FEATURE_NETSTAT_WIDE=y +CONFIG_FEATURE_NETSTAT_PRG=y +CONFIG_NSLOOKUP=y +CONFIG_NTPD=y +CONFIG_FEATURE_NTPD_SERVER=y +CONFIG_PSCAN=y +CONFIG_ROUTE=y +CONFIG_SLATTACH=y +CONFIG_TCPSVD=y +CONFIG_TELNET=y +CONFIG_FEATURE_TELNET_TTYPE=y +CONFIG_FEATURE_TELNET_AUTOLOGIN=y +CONFIG_TELNETD=y +CONFIG_FEATURE_TELNETD_STANDALONE=y +CONFIG_FEATURE_TELNETD_INETD_WAIT=y +CONFIG_TFTP=y +CONFIG_TFTPD=y + +# +# Common options for tftp/tftpd +# +CONFIG_FEATURE_TFTP_GET=y +CONFIG_FEATURE_TFTP_PUT=y +CONFIG_FEATURE_TFTP_BLOCKSIZE=y +CONFIG_FEATURE_TFTP_PROGRESS_BAR=y +# CONFIG_TFTP_DEBUG is not set +CONFIG_TRACEROUTE=y +CONFIG_TRACEROUTE6=y +CONFIG_FEATURE_TRACEROUTE_VERBOSE=y +# CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE is not set +# CONFIG_FEATURE_TRACEROUTE_USE_ICMP is not set +CONFIG_TUNCTL=y +CONFIG_FEATURE_TUNCTL_UG=y +# CONFIG_UDHCPC6 is not set +CONFIG_UDHCPD=y +CONFIG_DHCPRELAY=y +CONFIG_DUMPLEASES=y +CONFIG_FEATURE_UDHCPD_WRITE_LEASES_EARLY=y +# CONFIG_FEATURE_UDHCPD_BASE_IP_ON_MAC is not set +CONFIG_DHCPD_LEASES_FILE="/var/lib/misc/udhcpd.leases" +CONFIG_UDHCPC=y +CONFIG_FEATURE_UDHCPC_ARPING=y +# CONFIG_FEATURE_UDHCP_PORT is not set +CONFIG_UDHCP_DEBUG=9 +CONFIG_FEATURE_UDHCP_RFC3397=y +CONFIG_FEATURE_UDHCP_8021Q=y +CONFIG_UDHCPC_DEFAULT_SCRIPT="/usr/share/udhcpc/default.script" +CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=80 +CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS="-R -n" +CONFIG_UDPSVD=y +CONFIG_VCONFIG=y +CONFIG_WGET=y +CONFIG_FEATURE_WGET_STATUSBAR=y +CONFIG_FEATURE_WGET_AUTHENTICATION=y +CONFIG_FEATURE_WGET_LONG_OPTIONS=y +CONFIG_FEATURE_WGET_TIMEOUT=y +CONFIG_ZCIP=y + +# +# Print Utilities +# +CONFIG_LPD=y +CONFIG_LPR=y +CONFIG_LPQ=y + +# +# Mail Utilities +# +CONFIG_MAKEMIME=y +CONFIG_FEATURE_MIME_CHARSET="us-ascii" +CONFIG_POPMAILDIR=y +CONFIG_FEATURE_POPMAILDIR_DELIVERY=y +CONFIG_REFORMIME=y +CONFIG_FEATURE_REFORMIME_COMPAT=y +CONFIG_SENDMAIL=y + +# +# Process Utilities +# +CONFIG_IOSTAT=y +CONFIG_LSOF=y +CONFIG_MPSTAT=y +CONFIG_NMETER=y +CONFIG_PMAP=y +CONFIG_POWERTOP=y +CONFIG_PSTREE=y +CONFIG_PWDX=y +CONFIG_SMEMCAP=y +CONFIG_UPTIME=y +CONFIG_FEATURE_UPTIME_UTMP_SUPPORT=y +CONFIG_FREE=y +CONFIG_FUSER=y +CONFIG_KILL=y +CONFIG_KILLALL=y +CONFIG_KILLALL5=y +CONFIG_PGREP=y +CONFIG_PIDOF=y +CONFIG_FEATURE_PIDOF_SINGLE=y +CONFIG_FEATURE_PIDOF_OMIT=y +CONFIG_PKILL=y +CONFIG_PS=y +# CONFIG_FEATURE_PS_WIDE is not set +# CONFIG_FEATURE_PS_LONG is not set +CONFIG_FEATURE_PS_TIME=y +CONFIG_FEATURE_PS_ADDITIONAL_COLUMNS=y +# CONFIG_FEATURE_PS_UNUSUAL_SYSTEMS is not set +CONFIG_RENICE=y +CONFIG_BB_SYSCTL=y +CONFIG_TOP=y +CONFIG_FEATURE_TOP_CPU_USAGE_PERCENTAGE=y +CONFIG_FEATURE_TOP_CPU_GLOBAL_PERCENTS=y +CONFIG_FEATURE_TOP_SMP_CPU=y +CONFIG_FEATURE_TOP_STEAL=y +CONFIG_FEATURE_TOP_DECIMALS=y +CONFIG_FEATURE_TOP_SMP_PROCESS=y +CONFIG_FEATURE_TOPMEM=y +CONFIG_FEATURE_SHOW_THREADS=y +CONFIG_WATCH=y + +# +# Runit Utilities +# +CONFIG_RUNSV=y +CONFIG_RUNSVDIR=y +# CONFIG_FEATURE_RUNSVDIR_LOG is not set +CONFIG_SV=y +CONFIG_SV_DEFAULT_SERVICE_DIR="/var/service" +CONFIG_SVLOGD=y +CONFIG_CHPST=y +CONFIG_SETUIDGID=y +CONFIG_ENVUIDGID=y +CONFIG_ENVDIR=y +CONFIG_SOFTLIMIT=y +# CONFIG_CHCON is not set +# CONFIG_FEATURE_CHCON_LONG_OPTIONS is not set +# CONFIG_GETENFORCE is not set +# CONFIG_GETSEBOOL is not set +# CONFIG_LOAD_POLICY is not set +# CONFIG_MATCHPATHCON is not set +# CONFIG_RESTORECON is not set +# CONFIG_RUNCON is not set +# CONFIG_FEATURE_RUNCON_LONG_OPTIONS is not set +# CONFIG_SELINUXENABLED is not set +# CONFIG_SETENFORCE is not set +# CONFIG_SETFILES is not set +# CONFIG_FEATURE_SETFILES_CHECK_OPTION is not set +# CONFIG_SETSEBOOL is not set +# CONFIG_SESTATUS is not set + +# +# Shells +# +CONFIG_ASH=y +CONFIG_ASH_BASH_COMPAT=y +# CONFIG_ASH_IDLE_TIMEOUT is not set +CONFIG_ASH_JOB_CONTROL=y +CONFIG_ASH_ALIAS=y +CONFIG_ASH_GETOPTS=y +CONFIG_ASH_BUILTIN_ECHO=y +CONFIG_ASH_BUILTIN_PRINTF=y +CONFIG_ASH_BUILTIN_TEST=y +CONFIG_ASH_CMDCMD=y +# CONFIG_ASH_MAIL is not set +CONFIG_ASH_OPTIMIZE_FOR_SIZE=y +CONFIG_ASH_RANDOM_SUPPORT=y +CONFIG_ASH_EXPAND_PRMT=y +CONFIG_CTTYHACK=y +CONFIG_HUSH=y +CONFIG_HUSH_BASH_COMPAT=y +CONFIG_HUSH_BRACE_EXPANSION=y +CONFIG_HUSH_HELP=y +CONFIG_HUSH_INTERACTIVE=y +CONFIG_HUSH_SAVEHISTORY=y +CONFIG_HUSH_JOB=y +CONFIG_HUSH_TICK=y +CONFIG_HUSH_IF=y +CONFIG_HUSH_LOOPS=y +CONFIG_HUSH_CASE=y +CONFIG_HUSH_FUNCTIONS=y +CONFIG_HUSH_LOCAL=y +CONFIG_HUSH_RANDOM_SUPPORT=y +CONFIG_HUSH_EXPORT_N=y +CONFIG_HUSH_MODE_X=y +# CONFIG_MSH is not set +CONFIG_FEATURE_SH_IS_ASH=y +# CONFIG_FEATURE_SH_IS_HUSH is not set +# CONFIG_FEATURE_SH_IS_NONE is not set +# CONFIG_FEATURE_BASH_IS_ASH is not set +# CONFIG_FEATURE_BASH_IS_HUSH is not set +CONFIG_FEATURE_BASH_IS_NONE=y +CONFIG_SH_MATH_SUPPORT=y +CONFIG_SH_MATH_SUPPORT_64=y +CONFIG_FEATURE_SH_EXTRA_QUIET=y +# CONFIG_FEATURE_SH_STANDALONE is not set +# CONFIG_FEATURE_SH_NOFORK is not set +CONFIG_FEATURE_SH_HISTFILESIZE=y + +# +# System Logging Utilities +# +CONFIG_SYSLOGD=y +CONFIG_FEATURE_ROTATE_LOGFILE=y +CONFIG_FEATURE_REMOTE_LOG=y +CONFIG_FEATURE_SYSLOGD_DUP=y +CONFIG_FEATURE_SYSLOGD_CFG=y +CONFIG_FEATURE_SYSLOGD_READ_BUFFER_SIZE=256 +CONFIG_FEATURE_IPC_SYSLOG=y +CONFIG_FEATURE_IPC_SYSLOG_BUFFER_SIZE=16 +CONFIG_LOGREAD=y +CONFIG_FEATURE_LOGREAD_REDUCED_LOCKING=y +CONFIG_KLOGD=y +CONFIG_FEATURE_KLOGD_KLOGCTL=y +CONFIG_LOGGER=y diff -Naur busybox-1.20.2/console-tools/Config.in busybox-1.20.2_mod/console-tools/Config.in --- busybox-1.20.2/console-tools/Config.in 1970-01-01 08:00:00.000000000 +0800 +++ busybox-1.20.2_mod/console-tools/Config.in 2024-04-11 16:00:59.533113655 +0800 @@ -0,0 +1,176 @@ +# DO NOT EDIT. This file is generated from Config.src +# +# For a description of the syntax of this configuration file, +# see scripts/kbuild/config-language.txt. +# + +menu "Console Utilities" + + +config CHVT + bool "chvt" + default y + select PLATFORM_LINUX + help + This program is used to change to another terminal. + Example: chvt 4 (change to terminal /dev/tty4) + +config FGCONSOLE + bool "fgconsole" + default y + select PLATFORM_LINUX + help + This program prints active (foreground) console number. + +config CLEAR + bool "clear" + default y + help + This program clears the terminal screen. + +config DEALLOCVT + bool "deallocvt" + default y + select PLATFORM_LINUX + help + This program deallocates unused virtual consoles. + +config DUMPKMAP + bool "dumpkmap" + default y + select PLATFORM_LINUX + help + This program dumps the kernel's keyboard translation table to + stdout, in binary format. You can then use loadkmap to load it. + +config KBD_MODE + bool "kbd_mode" + default y + select PLATFORM_LINUX + help + This program reports and sets keyboard mode. + +config LOADFONT + bool "loadfont" + default y + select PLATFORM_LINUX + help + This program loads a console font from standard input. + +config LOADKMAP + bool "loadkmap" + default y + select PLATFORM_LINUX + help + This program loads a keyboard translation table from + standard input. + +config OPENVT + bool "openvt" + default y + select PLATFORM_LINUX + help + This program is used to start a command on an unused + virtual terminal. + +config RESET + bool "reset" + default y + help + This program is used to reset the terminal screen, if it + gets messed up. + +config RESIZE + bool "resize" + default y + help + This program is used to (re)set the width and height of your current + terminal. + +config FEATURE_RESIZE_PRINT + bool "Print environment variables" + default y + depends on RESIZE + help + Prints the newly set size (number of columns and rows) of + the terminal. + E.g.: + COLUMNS=80;LINES=44;export COLUMNS LINES; + +config SETCONSOLE + bool "setconsole" + default y + select PLATFORM_LINUX + help + This program redirects the system console to another device, + like the current tty while logged in via telnet. + +config FEATURE_SETCONSOLE_LONG_OPTIONS + bool "Enable long options" + default y + depends on SETCONSOLE && LONG_OPTS + help + Support long options for the setconsole applet. + +config SETFONT + bool "setfont" + default y + select PLATFORM_LINUX + help + Allows to load console screen map. Useful for i18n. + +config FEATURE_SETFONT_TEXTUAL_MAP + bool "Support reading textual screen maps" + default y + depends on SETFONT + help + Support reading textual screen maps. + +config DEFAULT_SETFONT_DIR + string "Default directory for console-tools files" + default "" + depends on SETFONT + help + Directory to use if setfont's params are simple filenames + (not /path/to/file or ./file). Default is "" (no default directory). + +config SETKEYCODES + bool "setkeycodes" + default y + select PLATFORM_LINUX + help + This program loads entries into the kernel's scancode-to-keycode + map, allowing unusual keyboards to generate usable keycodes. + +config SETLOGCONS + bool "setlogcons" + default y + select PLATFORM_LINUX + help + This program redirects the output console of kernel messages. + +config SHOWKEY + bool "showkey" + default y + select PLATFORM_LINUX + help + Shows keys pressed. + +comment "Common options for loadfont and setfont" + depends on LOADFONT || SETFONT + +config FEATURE_LOADFONT_PSF2 + bool "Support for PSF2 console fonts" + default y + depends on LOADFONT || SETFONT + help + Support PSF2 console fonts. + +config FEATURE_LOADFONT_RAW + bool "Support for old (raw) console fonts" + default y + depends on LOADFONT || SETFONT + help + Support old (raw) console fonts. + +endmenu diff -Naur busybox-1.20.2/console-tools/Kbuild busybox-1.20.2_mod/console-tools/Kbuild --- busybox-1.20.2/console-tools/Kbuild 1970-01-01 08:00:00.000000000 +0800 +++ busybox-1.20.2_mod/console-tools/Kbuild 2024-04-11 16:00:59.525113661 +0800 @@ -0,0 +1,25 @@ +# DO NOT EDIT. This file is generated from Kbuild.src +# Makefile for busybox +# +# Copyright (C) 1999-2005 by Erik Andersen +# +# Licensed under GPLv2, see file LICENSE in this source tree. + +lib-y:= + +lib-$(CONFIG_CHVT) += chvt.o +lib-$(CONFIG_FGCONSOLE) += fgconsole.o +lib-$(CONFIG_CLEAR) += clear.o +lib-$(CONFIG_DEALLOCVT) += deallocvt.o +lib-$(CONFIG_DUMPKMAP) += dumpkmap.o +lib-$(CONFIG_SETCONSOLE) += setconsole.o +lib-$(CONFIG_KBD_MODE) += kbd_mode.o +lib-$(CONFIG_LOADFONT) += loadfont.o +lib-$(CONFIG_LOADKMAP) += loadkmap.o +lib-$(CONFIG_OPENVT) += openvt.o +lib-$(CONFIG_RESET) += reset.o +lib-$(CONFIG_RESIZE) += resize.o +lib-$(CONFIG_SETFONT) += loadfont.o +lib-$(CONFIG_SETKEYCODES) += setkeycodes.o +lib-$(CONFIG_SETLOGCONS) += setlogcons.o +lib-$(CONFIG_SHOWKEY) += showkey.o diff -Naur busybox-1.20.2/coreutils/Config.in busybox-1.20.2_mod/coreutils/Config.in --- busybox-1.20.2/coreutils/Config.in 1970-01-01 08:00:00.000000000 +0800 +++ busybox-1.20.2_mod/coreutils/Config.in 2024-04-11 16:00:59.809113487 +0800 @@ -0,0 +1,919 @@ +# DO NOT EDIT. This file is generated from Config.src +# +# For a description of the syntax of this configuration file, +# see scripts/kbuild/config-language.txt. +# + +menu "Coreutils" + +config BASENAME + bool "basename" + default y + help + basename is used to strip the directory and suffix from filenames, + leaving just the filename itself. Enable this option if you wish + to enable the 'basename' utility. +config CAT + bool "cat" + default y + help + cat is used to concatenate files and print them to the standard + output. Enable this option if you wish to enable the 'cat' utility. +config DATE + bool "date" + default y + help + date is used to set the system date or display the + current time in the given format. + +config FEATURE_DATE_ISOFMT + bool "Enable ISO date format output (-I)" + default y + depends on DATE + help + Enable option (-I) to output an ISO-8601 compliant + date/time string. + +# defaults to "no": stat's nanosecond field is a bit non-portable +config FEATURE_DATE_NANO + bool "Support %[num]N nanosecond format specifier" + default n + depends on DATE # syscall(__NR_clock_gettime) + select PLATFORM_LINUX + help + Support %[num]N format specifier. Adds ~250 bytes of code. + +config FEATURE_DATE_COMPAT + bool "Support weird 'date MMDDhhmm[[YY]YY][.ss]' format" + default y + depends on DATE + help + System time can be set by 'date -s DATE' and simply 'date DATE', + but formats of DATE string are different. 'date DATE' accepts + a rather weird MMDDhhmm[[YY]YY][.ss] format with completely + unnatural placement of year between minutes and seconds. + date -s (and other commands like touch -d) use more sensible + formats (for one, ISO format YYYY-MM-DD hh:mm:ss.ssssss). + + With this option off, 'date DATE' is 'date -s DATE' support + the same format. With it on, 'date DATE' additionally supports + MMDDhhmm[[YY]YY][.ss] format. +config HOSTID + bool "hostid" + default y + help + hostid prints the numeric identifier (in hexadecimal) for + the current host. +config ID + bool "id" + default y + help + id displays the current user and group ID names. +config GROUPS + bool "groups" + default y + help + Print the group names associated with current user id. +config TEST + bool "test" + default y + help + test is used to check file types and compare values, + returning an appropriate exit code. The bash shell + has test built in, ash can build it in optionally. + +config FEATURE_TEST_64 + bool "Extend test to 64 bit" + default y + depends on TEST || ASH_BUILTIN_TEST || HUSH + help + Enable 64-bit support in test. +config TOUCH + bool "touch" + default y + help + touch is used to create or change the access and/or + modification timestamp of specified files. + +config FEATURE_TOUCH_SUSV3 + bool "Add support for SUSV3 features (-d -t -r)" + default y + depends on TOUCH + help + Enable touch to use a reference file or a given date/time argument. +config TR + bool "tr" + default y + help + tr is used to squeeze, and/or delete characters from standard + input, writing to standard output. + +config FEATURE_TR_CLASSES + bool "Enable character classes (such as [:upper:])" + default y + depends on TR + help + Enable character classes, enabling commands such as: + tr [:upper:] [:lower:] to convert input into lowercase. + +config FEATURE_TR_EQUIV + bool "Enable equivalence classes" + default y + depends on TR + help + Enable equivalence classes, which essentially add the enclosed + character to the current set. For instance, tr [=a=] xyz would + replace all instances of 'a' with 'xyz'. This option is mainly + useful for cases when no other way of expressing a character + is possible. +config BASE64 + bool "base64" + default y + help + Base64 encode and decode +config WHO + bool "who" + default y + depends on FEATURE_UTMP + help + who is used to show who is logged on. +config USERS + bool "users" + default y + depends on FEATURE_UTMP + help + Print users currently logged on. + +config CAL + bool "cal" + default y + help + cal is used to display a monthly calender. + +config CATV + bool "catv" + default y + help + Display nonprinting characters as escape sequences (like some + implementations' cat -v option). + +config CHGRP + bool "chgrp" + default y + help + chgrp is used to change the group ownership of files. + +config CHMOD + bool "chmod" + default y + help + chmod is used to change the access permission of files. + +config CHOWN + bool "chown" + default y + help + chown is used to change the user and/or group ownership + of files. + +config FEATURE_CHOWN_LONG_OPTIONS + bool "Enable long options" + default y + depends on CHOWN && LONG_OPTS + help + Enable use of long options + +config CHROOT + bool "chroot" + default y + help + chroot is used to change the root directory and run a command. + The default command is `/bin/sh'. + +config CKSUM + bool "cksum" + default y + help + cksum is used to calculate the CRC32 checksum of a file. + +config COMM + bool "comm" + default y + help + comm is used to compare two files line by line and return + a three-column output. + +config CP + bool "cp" + default y + help + cp is used to copy files and directories. + +config FEATURE_CP_LONG_OPTIONS + bool "Enable long options for cp" + default y + depends on CP && LONG_OPTS + help + Enable long options for cp. + Also add support for --parents option. + +config CUT + bool "cut" + default y + help + cut is used to print selected parts of lines from + each file to stdout. + +config DD + bool "dd" + default y + help + dd copies a file (from standard input to standard output, + by default) using specific input and output blocksizes, + while optionally performing conversions on it. + +config FEATURE_DD_SIGNAL_HANDLING + bool "Enable DD signal handling for status reporting" + default y + depends on DD + help + Sending a SIGUSR1 signal to a running `dd' process makes it + print to standard error the number of records read and written + so far, then to resume copying. + + $ dd if=/dev/zero of=/dev/null& + $ pid=$! kill -USR1 $pid; sleep 1; kill $pid + 10899206+0 records in + 10899206+0 records out + +config FEATURE_DD_THIRD_STATUS_LINE + bool "Enable the third status line upon signal" + default y + depends on DD && FEATURE_DD_SIGNAL_HANDLING + help + Displays a coreutils-like third status line with transferred bytes, + elapsed time and speed. + +config FEATURE_DD_IBS_OBS + bool "Enable ibs, obs and conv options" + default y + depends on DD + help + Enables support for writing a certain number of bytes in and out, + at a time, and performing conversions on the data stream. + +config DF + bool "df" + default y + help + df reports the amount of disk space used and available + on filesystems. + +config FEATURE_DF_FANCY + bool "Enable -a, -i, -B" + default y + depends on DF + help + This option enables -a, -i and -B. + + -a Show all filesystems + -i Inodes + -B Blocksize + +config DIRNAME + bool "dirname" + default y + help + dirname is used to strip a non-directory suffix from + a file name. + +config DOS2UNIX + bool "dos2unix/unix2dos" + default y + help + dos2unix is used to convert a text file from DOS format to + UNIX format, and vice versa. + +config UNIX2DOS + bool + default y + depends on DOS2UNIX + help + unix2dos is used to convert a text file from UNIX format to + DOS format, and vice versa. + +config DU + bool "du (default blocksize of 512 bytes)" + default y + help + du is used to report the amount of disk space used + for specified files. + +config FEATURE_DU_DEFAULT_BLOCKSIZE_1K + bool "Use a default blocksize of 1024 bytes (1K)" + default y + depends on DU + help + Use a blocksize of (1K) instead of the default 512b. + +config ECHO + bool "echo (basic SuSv3 version taking no options)" + default y + help + echo is used to print a specified string to stdout. + +# this entry also appears in shell/Config.in, next to the echo builtin +config FEATURE_FANCY_ECHO + bool "Enable echo options (-n and -e)" + default y + depends on ECHO || ASH_BUILTIN_ECHO || HUSH + help + This adds options (-n and -e) to echo. + +config ENV + bool "env" + default y + help + env is used to set an environment variable and run + a command; without options it displays the current + environment. + +config FEATURE_ENV_LONG_OPTIONS + bool "Enable long options" + default y + depends on ENV && LONG_OPTS + help + Support long options for the env applet. + +config EXPAND + bool "expand" + default y + help + By default, convert all tabs to spaces. + +config FEATURE_EXPAND_LONG_OPTIONS + bool "Enable long options" + default y + depends on EXPAND && LONG_OPTS + help + Support long options for the expand applet. + +config EXPR + bool "expr" + default y + help + expr is used to calculate numbers and print the result + to standard output. + +config EXPR_MATH_SUPPORT_64 + bool "Extend Posix numbers support to 64 bit" + default y + depends on EXPR + help + Enable 64-bit math support in the expr applet. This will make + the applet slightly larger, but will allow computation with very + large numbers. + +config FALSE + bool "false" + default y + help + false returns an exit code of FALSE (1). + +config FOLD + bool "fold" + default y + help + Wrap text to fit a specific width. + +config FSYNC + bool "fsync" + default y + help + fsync is used to flush file-related cached blocks to disk. + +config HEAD + bool "head" + default y + help + head is used to print the first specified number of lines + from files. + +config FEATURE_FANCY_HEAD + bool "Enable head options (-c, -q, and -v)" + default y + depends on HEAD + help + This enables the head options (-c, -q, and -v). + +config INSTALL + bool "install" + default y + help + Copy files and set attributes. + +config FEATURE_INSTALL_LONG_OPTIONS + bool "Enable long options" + default y + depends on INSTALL && LONG_OPTS + help + Support long options for the install applet. + +####config LENGTH +#### bool "length" +#### default y +#### help +#### length is used to print out the length of a specified string. + +config LN + bool "ln" + default y + help + ln is used to create hard or soft links between files. + +config LOGNAME + bool "logname" + default y + help + logname is used to print the current user's login name. + +config LS + bool "ls" + default y + help + ls is used to list the contents of directories. + +config FEATURE_LS_FILETYPES + bool "Enable filetyping options (-p and -F)" + default y + depends on LS + help + Enable the ls options (-p and -F). + +config FEATURE_LS_FOLLOWLINKS + bool "Enable symlinks dereferencing (-L)" + default y + depends on LS + help + Enable the ls option (-L). + +config FEATURE_LS_RECURSIVE + bool "Enable recursion (-R)" + default y + depends on LS + help + Enable the ls option (-R). + +config FEATURE_LS_SORTFILES + bool "Sort the file names" + default y + depends on LS + help + Allow ls to sort file names alphabetically. + +config FEATURE_LS_TIMESTAMPS + bool "Show file timestamps" + default y + depends on LS + help + Allow ls to display timestamps for files. + +config FEATURE_LS_USERNAME + bool "Show username/groupnames" + default y + depends on LS + help + Allow ls to display username/groupname for files. + +config FEATURE_LS_COLOR + bool "Allow use of color to identify file types" + default y + depends on LS && LONG_OPTS + help + This enables the --color option to ls. + +config FEATURE_LS_COLOR_IS_DEFAULT + bool "Produce colored ls output by default" + default y + depends on FEATURE_LS_COLOR + help + Saying yes here will turn coloring on by default, + even if no "--color" option is given to the ls command. + This is not recommended, since the colors are not + configurable, and the output may not be legible on + many output screens. + +config MD5SUM + bool "md5sum" + default y + help + md5sum is used to print or check MD5 checksums. + +config MKDIR + bool "mkdir" + default y + help + mkdir is used to create directories with the specified names. + +config FEATURE_MKDIR_LONG_OPTIONS + bool "Enable long options" + default y + depends on MKDIR && LONG_OPTS + help + Support long options for the mkdir applet. + +config MKFIFO + bool "mkfifo" + default y + help + mkfifo is used to create FIFOs (named pipes). + The `mknod' program can also create FIFOs. + +config MKNOD + bool "mknod" + default y + help + mknod is used to create FIFOs or block/character special + files with the specified names. + +config MV + bool "mv" + default y + help + mv is used to move or rename files or directories. + +config FEATURE_MV_LONG_OPTIONS + bool "Enable long options" + default y + depends on MV && LONG_OPTS + help + Support long options for the mv applet. + +config NICE + bool "nice" + default y + help + nice runs a program with modified scheduling priority. + +config NOHUP + bool "nohup" + default y + help + run a command immune to hangups, with output to a non-tty. + +config OD + bool "od" + default y + help + od is used to dump binary files in octal and other formats. + +config PRINTENV + bool "printenv" + default y + help + printenv is used to print all or part of environment. + +config PRINTF + bool "printf" + default y + help + printf is used to format and print specified strings. + It's similar to `echo' except it has more options. + +config PWD + bool "pwd" + default y + help + pwd is used to print the current directory. + +config READLINK + bool "readlink" + default y + help + This program reads a symbolic link and returns the name + of the file it points to + +config FEATURE_READLINK_FOLLOW + bool "Enable canonicalization by following all symlinks (-f)" + default y + depends on READLINK + help + Enable the readlink option (-f). + +config REALPATH + bool "realpath" + default y + help + Return the canonicalized absolute pathname. + This isn't provided by GNU shellutils, but where else does it belong. + +config RM + bool "rm" + default y + help + rm is used to remove files or directories. + +config RMDIR + bool "rmdir" + default y + help + rmdir is used to remove empty directories. + +config FEATURE_RMDIR_LONG_OPTIONS + bool "Enable long options" + default y + depends on RMDIR && LONG_OPTS + help + Support long options for the rmdir applet, including + --ignore-fail-on-non-empty for compatibility with GNU rmdir. + +config SEQ + bool "seq" + default y + help + print a sequence of numbers + +config SHA1SUM + bool "sha1sum" + default y + help + Compute and check SHA1 message digest + +config SHA256SUM + bool "sha256sum" + default y + help + Compute and check SHA256 message digest + +config SHA512SUM + bool "sha512sum" + default y + help + Compute and check SHA512 message digest + +config SLEEP + bool "sleep" + default y + help + sleep is used to pause for a specified number of seconds. + It comes in 3 versions: + - small: takes one integer parameter + - fancy: takes multiple integer arguments with suffixes: + sleep 1d 2h 3m 15s + - fancy with fractional numbers: + sleep 2.3s 4.5h sleeps for 16202.3 seconds + Last one is "the most compatible" with coreutils sleep, + but it adds around 1k of code. + +config FEATURE_FANCY_SLEEP + bool "Enable multiple arguments and s/m/h/d suffixes" + default y + depends on SLEEP + help + Allow sleep to pause for specified minutes, hours, and days. + +config FEATURE_FLOAT_SLEEP + bool "Enable fractional arguments" + default y + depends on FEATURE_FANCY_SLEEP + help + Allow for fractional numeric parameters. + +config SORT + bool "sort" + default y + help + sort is used to sort lines of text in specified files. + +config FEATURE_SORT_BIG + bool "Full SuSv3 compliant sort (support -ktcsbdfiozgM)" + default y + depends on SORT + help + Without this, sort only supports -r, -u, and an integer version + of -n. Selecting this adds sort keys, floating point support, and + more. This adds a little over 3k to a nonstatic build on x86. + + The SuSv3 sort standard is available at: + http://www.opengroup.org/onlinepubs/007904975/utilities/sort.html + +config SPLIT + bool "split" + default y + help + split a file into pieces. + +config FEATURE_SPLIT_FANCY + bool "Fancy extensions" + default y + depends on SPLIT + help + Add support for features not required by SUSv3. + Supports additional suffixes 'b' for 512 bytes, + 'g' for 1GiB for the -b option. + +config STAT + bool "stat" + default y + select PLATFORM_LINUX # statfs() + help + display file or filesystem status. + +config FEATURE_STAT_FORMAT + bool "Enable custom formats (-c)" + default y + depends on STAT + help + Without this, stat will not support the '-c format' option where + users can pass a custom format string for output. This adds about + 7k to a nonstatic build on amd64. + +config STTY + bool "stty" + default y + help + stty is used to change and print terminal line settings. + +config SUM + bool "sum" + default y + help + checksum and count the blocks in a file + +config SYNC + bool "sync" + default y + help + sync is used to flush filesystem buffers. + +config TAC + bool "tac" + default y + help + tac is used to concatenate and print files in reverse. + +config TAIL + bool "tail" + default y + help + tail is used to print the last specified number of lines + from files. + +config FEATURE_FANCY_TAIL + bool "Enable extra tail options (-q, -s, -v, and -F)" + default y + depends on TAIL + help + The options (-q, -s, and -v) are provided by GNU tail, but + are not specific in the SUSv3 standard. + + -q Never output headers giving file names + -s SEC Wait SEC seconds between reads with -f + -v Always output headers giving file names + +config TEE + bool "tee" + default y + help + tee is used to read from standard input and write + to standard output and files. + +config FEATURE_TEE_USE_BLOCK_IO + bool "Enable block I/O (larger/faster) instead of byte I/O" + default y + depends on TEE + help + Enable this option for a faster tee, at expense of size. + +config TRUE + bool "true" + default y + help + true returns an exit code of TRUE (0). + +config TTY + bool "tty" + default y + help + tty is used to print the name of the current terminal to + standard output. + +config UNAME + bool "uname" + default y + help + uname is used to print system information. + +config UNEXPAND + bool "unexpand" + default y + help + By default, convert only leading sequences of blanks to tabs. + +config FEATURE_UNEXPAND_LONG_OPTIONS + bool "Enable long options" + default y + depends on UNEXPAND && LONG_OPTS + help + Support long options for the unexpand applet. + +config UNIQ + bool "uniq" + default y + help + uniq is used to remove duplicate lines from a sorted file. + +config USLEEP + bool "usleep" + default y + help + usleep is used to pause for a specified number of microseconds. + +config UUDECODE + bool "uudecode" + default y + help + uudecode is used to decode a uuencoded file. + +config UUENCODE + bool "uuencode" + default y + help + uuencode is used to uuencode a file. + +config WC + bool "wc" + default y + help + wc is used to print the number of bytes, words, and lines, + in specified files. + +config FEATURE_WC_LARGE + bool "Support very large files in wc" + default y + depends on WC + help + Use "unsigned long long" in wc for counter variables. + +config WHOAMI + bool "whoami" + default y + help + whoami is used to print the username of the current + user id (same as id -un). + +config YES + bool "yes" + default y + help + yes is used to repeatedly output a specific string, or + the default string `y'. + +comment "Common options for cp and mv" + depends on CP || MV + +config FEATURE_PRESERVE_HARDLINKS + bool "Preserve hard links" + default y + depends on CP || MV + help + Allow cp and mv to preserve hard links. + +comment "Common options for ls, more and telnet" + depends on LS || MORE || TELNET + +config FEATURE_AUTOWIDTH + bool "Calculate terminal & column widths" + default y + depends on LS || MORE || TELNET + help + This option allows utilities such as 'ls', 'more' and 'telnet' + to determine the width of the screen, which can allow them to + display additional text or avoid wrapping text onto the next line. + If you leave this disabled, your utilities will be especially + primitive and will be unable to determine the current screen width. + +comment "Common options for df, du, ls" + depends on DF || DU || LS + +config FEATURE_HUMAN_READABLE + bool "Support for human readable output (example 13k, 23M, 235G)" + default y + depends on DF || DU || LS + help + Allow df, du, and ls to have human readable output. + +comment "Common options for md5sum, sha1sum, sha256sum, sha512sum" + depends on MD5SUM || SHA1SUM || SHA256SUM || SHA512SUM + +config FEATURE_MD5_SHA1_SUM_CHECK + bool "Enable -c, -s and -w options" + default y + depends on MD5SUM || SHA1SUM || SHA256SUM || SHA512SUM + help + Enabling the -c options allows files to be checked + against pre-calculated hash values. + + -s and -w are useful options when verifying checksums. + +endmenu diff -Naur busybox-1.20.2/coreutils/date.c busybox-1.20.2_mod/coreutils/date.c --- busybox-1.20.2/coreutils/date.c 2012-06-26 21:35:45.000000000 +0800 +++ busybox-1.20.2_mod/coreutils/date.c 2024-04-16 14:05:01.738224106 +0800 @@ -293,7 +293,11 @@ maybe_set_utc(opt); /* if setting time, set it */ + #if __GLIBC_MINOR__ < 33 if ((opt & OPT_SET) && stime(&ts.tv_sec) < 0) { + #else + if ((opt & OPT_SET) && clock_settime(CLOCK_REALTIME,&ts) < 0) { + #endif bb_perror_msg("can't set date"); } } diff -Naur busybox-1.20.2/coreutils/Kbuild busybox-1.20.2_mod/coreutils/Kbuild --- busybox-1.20.2/coreutils/Kbuild 1970-01-01 08:00:00.000000000 +0800 +++ busybox-1.20.2_mod/coreutils/Kbuild 2024-04-11 16:00:59.797113495 +0800 @@ -0,0 +1,102 @@ +# DO NOT EDIT. This file is generated from Kbuild.src +# Makefile for busybox +# +# Copyright (C) 1999-2005 by Erik Andersen +# +# Licensed under GPLv2, see file LICENSE in this source tree. + +libs-y += libcoreutils/ + +lib-y:= + +lib-$(CONFIG_BASENAME) += basename.o +lib-$(CONFIG_CAT) += cat.o +lib-$(CONFIG_MORE) += cat.o # more uses it if stdout isn't a tty +lib-$(CONFIG_LESS) += cat.o # less too +lib-$(CONFIG_CRONTAB) += cat.o # crontab -l +lib-$(CONFIG_DATE) += date.o +lib-$(CONFIG_HOSTID) += hostid.o +lib-$(CONFIG_GROUPS) += id.o +lib-$(CONFIG_ID) += id.o +lib-$(CONFIG_TEST) += test.o test_ptr_hack.o +lib-$(CONFIG_ASH) += test.o test_ptr_hack.o +lib-$(CONFIG_HUSH) += test.o test_ptr_hack.o +lib-$(CONFIG_TOUCH) += touch.o +lib-$(CONFIG_TR) += tr.o +lib-$(CONFIG_BASE64) += uudecode.o +lib-$(CONFIG_USERS) += who.o +lib-$(CONFIG_WHO) += who.o +lib-$(CONFIG_CAL) += cal.o +lib-$(CONFIG_CATV) += catv.o +lib-$(CONFIG_CHGRP) += chgrp.o chown.o +lib-$(CONFIG_CHMOD) += chmod.o +lib-$(CONFIG_CHOWN) += chown.o +lib-$(CONFIG_ADDUSER) += chown.o # used by adduser +lib-$(CONFIG_ADDGROUP) += chown.o # used by adduser +lib-$(CONFIG_CHROOT) += chroot.o +lib-$(CONFIG_CKSUM) += cksum.o +lib-$(CONFIG_COMM) += comm.o +lib-$(CONFIG_CP) += cp.o +lib-$(CONFIG_CUT) += cut.o +lib-$(CONFIG_DD) += dd.o +lib-$(CONFIG_DF) += df.o +lib-$(CONFIG_DIRNAME) += dirname.o +lib-$(CONFIG_DOS2UNIX) += dos2unix.o +lib-$(CONFIG_DU) += du.o +lib-$(CONFIG_ECHO) += echo.o +lib-$(CONFIG_ASH) += echo.o # used by ash +lib-$(CONFIG_HUSH) += echo.o # used by hush +lib-$(CONFIG_ENV) += env.o +lib-$(CONFIG_EXPR) += expr.o +lib-$(CONFIG_EXPAND) += expand.o +lib-$(CONFIG_FALSE) += false.o +lib-$(CONFIG_FOLD) += fold.o +lib-$(CONFIG_FSYNC) += fsync.o +lib-$(CONFIG_HEAD) += head.o +lib-$(CONFIG_INSTALL) += install.o +#lib-$(CONFIG_LENGTH) += length.o +lib-$(CONFIG_LN) += ln.o +lib-$(CONFIG_LOGNAME) += logname.o +lib-$(CONFIG_LS) += ls.o +lib-$(CONFIG_FTPD) += ls.o +lib-$(CONFIG_MD5SUM) += md5_sha1_sum.o +lib-$(CONFIG_MKDIR) += mkdir.o +lib-$(CONFIG_MKFIFO) += mkfifo.o +lib-$(CONFIG_MKNOD) += mknod.o +lib-$(CONFIG_MV) += mv.o +lib-$(CONFIG_NICE) += nice.o +lib-$(CONFIG_NOHUP) += nohup.o +lib-$(CONFIG_OD) += od.o +lib-$(CONFIG_PRINTENV) += printenv.o +lib-$(CONFIG_PRINTF) += printf.o +lib-$(CONFIG_ASH_BUILTIN_PRINTF) += printf.o +lib-$(CONFIG_PWD) += pwd.o +lib-$(CONFIG_READLINK) += readlink.o +lib-$(CONFIG_REALPATH) += realpath.o +lib-$(CONFIG_RM) += rm.o +lib-$(CONFIG_RMDIR) += rmdir.o +lib-$(CONFIG_SEQ) += seq.o +lib-$(CONFIG_SHA1SUM) += md5_sha1_sum.o +lib-$(CONFIG_SHA256SUM) += md5_sha1_sum.o +lib-$(CONFIG_SHA512SUM) += md5_sha1_sum.o +lib-$(CONFIG_SLEEP) += sleep.o +lib-$(CONFIG_SPLIT) += split.o +lib-$(CONFIG_SORT) += sort.o +lib-$(CONFIG_STAT) += stat.o +lib-$(CONFIG_STTY) += stty.o +lib-$(CONFIG_SUM) += sum.o +lib-$(CONFIG_SYNC) += sync.o +lib-$(CONFIG_TAC) += tac.o +lib-$(CONFIG_TAIL) += tail.o +lib-$(CONFIG_TEE) += tee.o +lib-$(CONFIG_TRUE) += true.o +lib-$(CONFIG_TTY) += tty.o +lib-$(CONFIG_UNAME) += uname.o +lib-$(CONFIG_UNEXPAND) += expand.o +lib-$(CONFIG_UNIQ) += uniq.o +lib-$(CONFIG_USLEEP) += usleep.o +lib-$(CONFIG_UUDECODE) += uudecode.o +lib-$(CONFIG_UUENCODE) += uuencode.o +lib-$(CONFIG_WC) += wc.o +lib-$(CONFIG_WHOAMI) += whoami.o +lib-$(CONFIG_YES) += yes.o diff -Naur busybox-1.20.2/coreutils/libcoreutils/Kbuild busybox-1.20.2_mod/coreutils/libcoreutils/Kbuild --- busybox-1.20.2/coreutils/libcoreutils/Kbuild 1970-01-01 08:00:00.000000000 +0800 +++ busybox-1.20.2_mod/coreutils/libcoreutils/Kbuild 2024-04-11 16:00:59.817113482 +0800 @@ -0,0 +1,14 @@ +# DO NOT EDIT. This file is generated from Kbuild.src +# Makefile for busybox +# +# Copyright (C) 1999-2004 by Erik Andersen +# +# Licensed under GPLv2 or later, see file LICENSE in this source tree. + +lib-y:= + +lib-$(CONFIG_MKFIFO) += getopt_mk_fifo_nod.o +lib-$(CONFIG_MKNOD) += getopt_mk_fifo_nod.o +lib-$(CONFIG_INSTALL) += cp_mv_stat.o +lib-$(CONFIG_CP) += cp_mv_stat.o +lib-$(CONFIG_MV) += cp_mv_stat.o diff -Naur busybox-1.20.2/debianutils/Config.in busybox-1.20.2_mod/debianutils/Config.in --- busybox-1.20.2/debianutils/Config.in 1970-01-01 08:00:00.000000000 +0800 +++ busybox-1.20.2_mod/debianutils/Config.in 2024-04-11 16:00:59.437113714 +0800 @@ -0,0 +1,85 @@ +# DO NOT EDIT. This file is generated from Config.src +# +# For a description of the syntax of this configuration file, +# see scripts/kbuild/config-language.txt. +# + +menu "Debian Utilities" + + +config MKTEMP + bool "mktemp" + default y + help + mktemp is used to create unique temporary files + +config PIPE_PROGRESS + bool "pipe_progress" + default y + help + Display a dot to indicate pipe activity. + +config RUN_PARTS + bool "run-parts" + default y + help + run-parts is a utility designed to run all the scripts in a directory. + + It is useful to set up a directory like cron.daily, where you need to + execute all the scripts in that directory. + + In this implementation of run-parts some features (such as report + mode) are not implemented. + + Unless you know that run-parts is used in some of your scripts + you can safely say N here. + +config FEATURE_RUN_PARTS_LONG_OPTIONS + bool "Enable long options" + default y + depends on RUN_PARTS && LONG_OPTS + help + Support long options for the run-parts applet. + +config FEATURE_RUN_PARTS_FANCY + bool "Support additional arguments" + default y + depends on RUN_PARTS + help + Support additional options: + -l --list print the names of the all matching files (not + limited to executables), but don't actually run them. + +config START_STOP_DAEMON + bool "start-stop-daemon" + default y + help + start-stop-daemon is used to control the creation and + termination of system-level processes, usually the ones + started during the startup of the system. + +config FEATURE_START_STOP_DAEMON_FANCY + bool "Support additional arguments" + default y + depends on START_STOP_DAEMON + help + Support additional arguments. + -o|--oknodo ignored since we exit with 0 anyway + -v|--verbose + -N|--nicelevel N + +config FEATURE_START_STOP_DAEMON_LONG_OPTIONS + bool "Enable long options" + default y + depends on START_STOP_DAEMON && LONG_OPTS + help + Support long options for the start-stop-daemon applet. + +config WHICH + bool "which" + default y + help + which is used to find programs in your PATH and + print out their pathnames. + +endmenu diff -Naur busybox-1.20.2/debianutils/Kbuild busybox-1.20.2_mod/debianutils/Kbuild --- busybox-1.20.2/debianutils/Kbuild 1970-01-01 08:00:00.000000000 +0800 +++ busybox-1.20.2_mod/debianutils/Kbuild 2024-04-11 16:00:59.433113716 +0800 @@ -0,0 +1,14 @@ +# DO NOT EDIT. This file is generated from Kbuild.src +# Makefile for busybox +# +# Copyright (C) 1999-2005 by Erik Andersen +# +# Licensed under GPLv2, see file LICENSE in this source tree. + +lib-y:= + +lib-$(CONFIG_MKTEMP) += mktemp.o +lib-$(CONFIG_PIPE_PROGRESS) += pipe_progress.o +lib-$(CONFIG_RUN_PARTS) += run_parts.o +lib-$(CONFIG_START_STOP_DAEMON) += start_stop_daemon.o +lib-$(CONFIG_WHICH) += which.o diff -Naur busybox-1.20.2/docs/busybox.1 busybox-1.20.2_mod/docs/busybox.1 --- busybox-1.20.2/docs/busybox.1 1970-01-01 08:00:00.000000000 +0800 +++ busybox-1.20.2_mod/docs/busybox.1 2024-04-16 14:07:15.814733576 +0800 @@ -0,0 +1,4725 @@ +.\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.if !\nF .nr F 0 +.if \nF>0 \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +.\} +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "BUSYBOX 1" +.TH BUSYBOX 1 "2024-04-16" "version 1.20.2" "busybox" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +BusyBox \- The Swiss Army Knife of Embedded Linux +.SH "SYNTAX" +.IX Header "SYNTAX" +.Vb 1 +\& busybox [arguments...] # or +\& +\& [arguments...] # if symlinked +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +BusyBox combines tiny versions of many common \s-1UNIX\s0 utilities into a single +small executable. It provides minimalist replacements for most of the utilities +you usually find in \s-1GNU\s0 coreutils, util-linux, etc. The utilities in BusyBox +generally have fewer options than their full-featured \s-1GNU\s0 cousins; however, the +options that are included provide the expected functionality and behave very +much like their \s-1GNU\s0 counterparts. +.PP +BusyBox has been written with size-optimization and limited resources in mind. +It is also extremely modular so you can easily include or exclude commands (or +features) at compile time. This makes it easy to customize your embedded +systems. To create a working system, just add /dev, /etc, and a Linux kernel. +BusyBox provides a fairly complete \s-1POSIX\s0 environment for any small or embedded +system. +.PP +BusyBox is extremely configurable. This allows you to include only the +components you need, thereby reducing binary size. Run 'make config' or 'make +menuconfig' to select the functionality that you wish to enable. Then run +\&'make' to compile BusyBox using your configuration. +.PP +After the compile has finished, you should use 'make install' to install +BusyBox. This will install the 'bin/busybox' binary, in the target directory +specified by \s-1CONFIG_PREFIX. CONFIG_PREFIX\s0 can be set when configuring BusyBox, +or you can specify an alternative location at install time (i.e., with a +command line like 'make CONFIG_PREFIX=/tmp/foo install'). If you enabled +any applet installation scheme (either as symlinks or hardlinks), these will +also be installed in the location pointed to by \s-1CONFIG_PREFIX.\s0 +.SH "USAGE" +.IX Header "USAGE" +BusyBox is a multi-call binary. A multi-call binary is an executable program +that performs the same job as more than one utility program. That means there +is just a single BusyBox binary, but that single binary acts like a large +number of utilities. This allows BusyBox to be smaller since all the built-in +utility programs (we call them applets) can share code for many common +operations. +.PP +You can also invoke BusyBox by issuing a command as an argument on the +command line. For example, entering +.PP +.Vb 1 +\& /bin/busybox ls +.Ve +.PP +will also cause BusyBox to behave as 'ls'. +.PP +Of course, adding '/bin/busybox' into every command would be painful. So most +people will invoke BusyBox using links to the BusyBox binary. +.PP +For example, entering +.PP +.Vb 2 +\& ln \-s /bin/busybox ls +\& ./ls +.Ve +.PP +will cause BusyBox to behave as 'ls' (if the 'ls' command has been compiled +into BusyBox). Generally speaking, you should never need to make all these +links yourself, as the BusyBox build system will do this for you when you run +the 'make install' command. +.PP +If you invoke BusyBox with no arguments, it will provide you with a list of the +applets that have been compiled into your BusyBox binary. +.SH "COMMON OPTIONS" +.IX Header "COMMON OPTIONS" +Most BusyBox applets support the \fB\-\-help\fR argument to provide a terse runtime +description of their behavior. If the \s-1CONFIG_FEATURE_VERBOSE_USAGE\s0 option has +been enabled, more detailed usage information will also be available. +.SH "COMMANDS" +.IX Header "COMMANDS" +Currently available applets include: +.PP +.Vb 10 +\& [, [[, acpid, add\-shell, addgroup, adduser, adjtimex, arp, arping, +\& ash, awk, base64, basename, beep, blkid, blockdev, bootchartd, +\& brctl, bunzip2, bzcat, bzip2, cal, cat, catv, chat, chattr, chgrp, +\& chmod, chown, chpasswd, chpst, chroot, chrt, chvt, cksum, clear, +\& cmp, comm, conspy, cp, cpio, crond, crontab, cryptpw, cttyhack, cut, +\& date, dc, dd, deallocvt, delgroup, deluser, depmod, devmem, df, +\& dhcprelay, diff, dirname, dmesg, dnsd, dnsdomainname, dos2unix, du, +\& dumpkmap, dumpleases, echo, ed, egrep, eject, env, envdir, +\& envuidgid, ether\-wake, expand, expr, fakeidentd, false, fbset, +\& fbsplash, fdflush, fdformat, fdisk, fgconsole, fgrep, find, findfs, +\& flash_eraseall, flock, fold, free, freeramdisk, fsck, fsck.minix, +\& fsync, ftpd, ftpget, ftpput, fuser, getopt, getty, grep, groups, +\& gunzip, gzip, halt, hd, hdparm, head, hexdump, hostid, hostname, +\& httpd, hush, hwclock, id, ifconfig, ifdown, ifenslave, ifplugd, +\& ifup, inetd, init, insmod, install, ionice, iostat, ip, ipaddr, +\& ipcalc, ipcrm, ipcs, iplink, iproute, iprule, iptunnel, kbd_mode, +\& kill, killall, killall5, klogd, last, less, linux32, linux64, +\& linuxrc, ln, loadfont, loadkmap, logger, login, logname, logread, +\& losetup, lpd, lpq, lpr, ls, lsattr, lsmod, lsof, lspci, lsusb, +\& lzcat, lzma, lzop, lzopcat, makedevs, makemime, man, md5sum, mdev, +\& mesg, microcom, mkdir, mkdosfs, mke2fs, mkfifo, mkfs.ext2, +\& mkfs.minix, mkfs.vfat, mknod, mkpasswd, mkswap, mktemp, modinfo, +\& modprobe, more, mount, mountpoint, mpstat, mt, mv, nameif, nanddump, +\& nandwrite, nbd\-client, nc, netstat, nice, nmeter, nohup, nslookup, +\& ntpd, od, openvt, passwd, patch, pgrep, pidof, ping, ping6, +\& pipe_progress, pivot_root, pkill, pmap, popmaildir, poweroff, +\& powertop, printenv, printf, ps, pscan, pstree, pwd, pwdx, +\& raidautorun, rdate, rdev, readahead, readlink, readprofile, +\& realpath, reboot, reformime, remove\-shell, renice, reset, resize, +\& rev, rm, rmdir, rmmod, route, rpm, rpm2cpio, rtcwake, run\-parts, +\& runlevel, runsv, runsvdir, rx, script, scriptreplay, sed, sendmail, +\& seq, setarch, setconsole, setfont, setkeycodes, setlogcons, +\& setserial, setsid, setuidgid, sh, sha1sum, sha256sum, sha512sum, +\& showkey, slattach, sleep, smemcap, softlimit, sort, split, +\& start\-stop\-daemon, stat, strings, stty, su, sulogin, sum, sv, +\& svlogd, swapoff, swapon, switch_root, sync, sysctl, syslogd, tac, +\& tail, tar, tcpsvd, tee, telnet, telnetd, test, tftp, tftpd, time, +\& timeout, top, touch, tr, traceroute, traceroute6, true, tty, +\& ttysize, tunctl, ubiattach, ubidetach, ubimkvol, ubirmvol, ubirsvol, +\& ubiupdatevol, udhcpc, udhcpd, udpsvd, umount, uname, unexpand, uniq, +\& unix2dos, unlzma, unlzop, unxz, unzip, uptime, users, usleep, +\& uudecode, uuencode, vconfig, vi, vlock, volname, wall, watch, +\& watchdog, wc, wget, which, who, whoami, whois, xargs, xz, xzcat, +\& yes, zcat, zcip +.Ve +.SH "COMMAND DESCRIPTIONS" +.IX Header "COMMAND DESCRIPTIONS" +.IP "\fBacpid\fR" 4 +.IX Item "acpid" +acpid [\-df] [\-c \s-1CONFDIR\s0] [\-l \s-1LOGFILE\s0] [\-a \s-1ACTIONFILE\s0] [\-M \s-1MAPFILE\s0] [\-e \s-1PROC_EVENT_FILE\s0] [\-p \s-1PIDFILE\s0] +.Sp +Listen to \s-1ACPI\s0 events and spawn specific helpers on event arrival +.Sp +.Vb 8 +\& \-d Log to stderr, not log file (implies \-f) +\& \-f Run in foreground +\& \-c DIR Config directory [/etc/acpi] +\& \-e FILE /proc event file [/proc/acpi/event] +\& \-l FILE Log file [/var/log/acpid.log] +\& \-p FILE Pid file [/var/run/acpid.pid] +\& \-a FILE Action file [/etc/acpid.conf] +\& \-M FILE Map file [/etc/acpi.map] +.Ve +.Sp +Accept and ignore compatibility options \-g \-m \-s \-S \-v +.IP "\fBadd-shell\fR" 4 +.IX Item "add-shell" +add-shell \s-1SHELL...\s0 +.Sp +Add SHELLs to /etc/shells +.IP "\fBaddgroup\fR" 4 +.IX Item "addgroup" +addgroup [\-g \s-1GID\s0] [\s-1USER\s0] \s-1GROUP\s0 +.Sp +Add a group or add a user to a group +.Sp +.Vb 2 +\& \-g GID Group id +\& \-S Create a system group +.Ve +.IP "\fBadduser\fR" 4 +.IX Item "adduser" +adduser [\s-1OPTIONS\s0] \s-1USER\s0 +.Sp +Add a user +.Sp +.Vb 8 +\& \-h DIR Home directory +\& \-g GECOS GECOS field +\& \-s SHELL Login shell +\& \-G GRP Add user to existing group +\& \-S Create a system user +\& \-D Don\*(Aqt assign a password +\& \-H Don\*(Aqt create home directory +\& \-u UID User id +.Ve +.IP "\fBadjtimex\fR" 4 +.IX Item "adjtimex" +adjtimex [\-q] [\-o \s-1OFF\s0] [\-f \s-1FREQ\s0] [\-p \s-1TCONST\s0] [\-t \s-1TICK\s0] +.Sp +Read and optionally set system timebase parameters. See \fIadjtimex\fR\|(2) +.Sp +.Vb 6 +\& \-q Quiet +\& \-o OFF Time offset, microseconds +\& \-f FREQ Frequency adjust, integer kernel units (65536 is 1ppm) +\& (positive values make clock run faster) +\& \-t TICK Microseconds per tick, usually 10000 +\& \-p TCONST +.Ve +.IP "\fBarp\fR" 4 +.IX Item "arp" +arp +[\-vn] [\-H \s-1HWTYPE\s0] [\-i \s-1IF\s0] \-a [\s-1HOSTNAME\s0] +[\-v] [\-i \s-1IF\s0] \-d \s-1HOSTNAME\s0 [pub] +[\-v] [\-H \s-1HWTYPE\s0] [\-i \s-1IF\s0] \-s \s-1HOSTNAME HWADDR\s0 [temp] +[\-v] [\-H \s-1HWTYPE\s0] [\-i \s-1IF\s0] \-s \s-1HOSTNAME HWADDR\s0 [netmask \s-1MASK\s0] pub +[\-v] [\-H \s-1HWTYPE\s0] [\-i \s-1IF\s0] \-Ds \s-1HOSTNAME IFACE\s0 [netmask \s-1MASK\s0] pub +.Sp +Manipulate \s-1ARP\s0 cache +.Sp +.Vb 9 +\& \-a Display (all) hosts +\& \-s Set new ARP entry +\& \-d Delete a specified entry +\& \-v Verbose +\& \-n Don\*(Aqt resolve names +\& \-i IF Network interface +\& \-D Read from given device +\& \-A,\-p AF Protocol family +\& \-H HWTYPE Hardware address type +.Ve +.IP "\fBarping\fR" 4 +.IX Item "arping" +arping [\-fqbDUA] [\-c \s-1CNT\s0] [\-w \s-1TIMEOUT\s0] [\-I \s-1IFACE\s0] [\-s \s-1SRC_IP\s0] \s-1DST_IP\s0 +.Sp +Send \s-1ARP\s0 requests/replies +.Sp +.Vb 11 +\& \-f Quit on first ARP reply +\& \-q Quiet +\& \-b Keep broadcasting, don\*(Aqt go unicast +\& \-D Duplicated address detection mode +\& \-U Unsolicited ARP mode, update your neighbors +\& \-A ARP answer mode, update your neighbors +\& \-c N Stop after sending N ARP requests +\& \-w TIMEOUT Time to wait for ARP reply, seconds +\& \-I IFACE Interface to use (default eth0) +\& \-s SRC_IP Sender IP address +\& DST_IP Target IP address +.Ve +.IP "\fBash\fR" 4 +.IX Item "ash" +ash [\-/+OPTIONS] [\-/+o \s-1OPT\s0]... [\-c '\s-1SCRIPT\s0' [\s-1ARG0\s0 [\s-1ARGS\s0]] / \s-1FILE\s0 [\s-1ARGS\s0]] +.Sp +Unix shell interpreter +.IP "\fBawk\fR" 4 +.IX Item "awk" +awk [\s-1OPTIONS\s0] [\s-1AWK_PROGRAM\s0] [\s-1FILE\s0]... +.Sp +.Vb 3 +\& \-v VAR=VAL Set variable +\& \-F SEP Use SEP as field separator +\& \-f FILE Read program from FILE +.Ve +.IP "\fBbase64\fR" 4 +.IX Item "base64" +base64 [\-d] [\s-1FILE\s0] +.Sp +Base64 encode or decode \s-1FILE\s0 to standard output + \-d Decode data +.IP "\fBbasename\fR" 4 +.IX Item "basename" +basename \s-1FILE\s0 [\s-1SUFFIX\s0] +.Sp +Strip directory path and .SUFFIX from \s-1FILE\s0 +.IP "\fBbeep\fR" 4 +.IX Item "beep" +beep \-f \s-1FREQ\s0 \-l \s-1LEN\s0 \-d \s-1DELAY\s0 \-r \s-1COUNT\s0 \-n +.Sp +.Vb 5 +\& \-f Frequency in Hz +\& \-l Length in ms +\& \-d Delay in ms +\& \-r Repetitions +\& \-n Start new tone +.Ve +.IP "\fBblkid\fR" 4 +.IX Item "blkid" +blkid [\s-1BLOCKDEV\s0]... +.Sp +Print UUIDs of all filesystems +.IP "\fBblockdev\fR" 4 +.IX Item "blockdev" +blockdev \s-1OPTION BLOCKDEV\s0 +.Sp +.Vb 10 +\& \-\-setro Set ro +\& \-\-setrw Set rw +\& \-\-getro Get ro +\& \-\-getss Get sector size +\& \-\-getbsz Get block size +\& \-\-setbsz BYTES Set block size +\& \-\-getsz Get device size in 512\-byte sectors +\& \-\-getsize64 Get device size in bytes +\& \-\-flushbufs Flush buffers +\& \-\-rereadpt Reread partition table +.Ve +.IP "\fBbootchartd\fR" 4 +.IX Item "bootchartd" +bootchartd start [\s-1PROG ARGS\s0]|stop|init +.Sp +Create /var/log/bootchart.tgz with boot chart data +.Sp +start: start background logging; with \s-1PROG,\s0 run \s-1PROG,\s0 then kill logging with \s-1USR1\s0 +stop: send \s-1USR1\s0 to all bootchartd processes +init: start background logging; stop when getty/xdm is seen (for init scripts) +Under \s-1PID 1:\s0 as init, then exec \f(CW$bootchart_init\fR, /init, /sbin/init +.IP "\fBbrctl\fR" 4 +.IX Item "brctl" +brctl \s-1COMMAND\s0 [\s-1BRIDGE\s0 [\s-1INTERFACE\s0]] +.Sp +Manage ethernet bridges +.Sp +Commands: +.Sp +.Vb 10 +\& show Show a list of bridges +\& addbr BRIDGE Create BRIDGE +\& delbr BRIDGE Delete BRIDGE +\& addif BRIDGE IFACE Add IFACE to BRIDGE +\& delif BRIDGE IFACE Delete IFACE from BRIDGE +\& setageing BRIDGE TIME Set ageing time +\& setfd BRIDGE TIME Set bridge forward delay +\& sethello BRIDGE TIME Set hello time +\& setmaxage BRIDGE TIME Set max message age +\& setpathcost BRIDGE COST Set path cost +\& setportprio BRIDGE PRIO Set port priority +\& setbridgeprio BRIDGE PRIO Set bridge priority +\& stp BRIDGE [1/yes/on|0/no/off] STP on/off +.Ve +.IP "\fBbunzip2\fR" 4 +.IX Item "bunzip2" +bunzip2 [\-cf] [\s-1FILE\s0]... +.Sp +Decompress FILEs (or stdin) +.Sp +.Vb 2 +\& \-c Write to stdout +\& \-f Force +.Ve +.IP "\fBbzcat\fR" 4 +.IX Item "bzcat" +bzcat \s-1FILE\s0 +.Sp +Decompress to stdout +.IP "\fBbzip2\fR" 4 +.IX Item "bzip2" +bzip2 [\s-1OPTIONS\s0] [\s-1FILE\s0]... +.Sp +Compress FILEs (or stdin) with bzip2 algorithm +.Sp +.Vb 4 +\& \-1..9 Compression level +\& \-d Decompress +\& \-c Write to stdout +\& \-f Force +.Ve +.IP "\fBcal\fR" 4 +.IX Item "cal" +cal [\-jy] [[\s-1MONTH\s0] \s-1YEAR\s0] +.Sp +Display a calendar +.Sp +.Vb 2 +\& \-j Use julian dates +\& \-y Display the entire year +.Ve +.IP "\fBcat\fR" 4 +.IX Item "cat" +cat [\s-1FILE\s0]... +.Sp +Concatenate FILEs and print them to stdout +.IP "\fBcatv\fR" 4 +.IX Item "catv" +catv [\-etv] [\s-1FILE\s0]... +.Sp +Display nonprinting characters as ^x or M\-x +.Sp +.Vb 3 +\& \-e End each line with $ +\& \-t Show tabs as ^I +\& \-v Don\*(Aqt use ^x or M\-x escapes +.Ve +.IP "\fBchat\fR" 4 +.IX Item "chat" +chat \s-1EXPECT\s0 [\s-1SEND\s0 [\s-1EXPECT\s0 [\s-1SEND...\s0]]] +.Sp +Useful for interacting with a modem connected to stdin/stdout. +A script consists of one or more \*(L"expect-send\*(R" pairs of strings, +each pair is a pair of arguments. Example: +chat '' \s-1ATZ OK ATD123456 CONNECT\s0 '' ogin: pppuser word: ppppass '~' +.IP "\fBchattr\fR" 4 +.IX Item "chattr" +chattr [\-R] [\-+=AacDdijsStTu] [\-v \s-1VERSION\s0] [\s-1FILE\s0]... +.Sp +Change file attributes on an ext2 fs +.Sp +Modifiers: +.Sp +.Vb 4 +\& \- Remove attributes +\& + Add attributes +\& = Set attributes +\&Attributes: +\& +\& A Don\*(Aqt track atime +\& a Append mode only +\& c Enable compress +\& D Write dir contents synchronously +\& d Don\*(Aqt backup with dump +\& i Cannot be modified (immutable) +\& j Write all data to journal first +\& s Zero disk storage when deleted +\& S Write file contents synchronously +\& t Disable tail\-merging of partial blocks with other files +\& u Allow file to be undeleted +\& \-R Recurse +\& \-v Set the file\*(Aqs version/generation number +.Ve +.IP "\fBchgrp\fR" 4 +.IX Item "chgrp" +chgrp [\-RhLHPcvf]... \s-1GROUP FILE...\s0 +.Sp +Change the group membership of each \s-1FILE\s0 to \s-1GROUP\s0 +.Sp +.Vb 8 +\& \-R Recurse +\& \-h Affect symlinks instead of symlink targets +\& \-L Traverse all symlinks to directories +\& \-H Traverse symlinks on command line only +\& \-P Don\*(Aqt traverse symlinks (default) +\& \-c List changed files +\& \-v Verbose +\& \-f Hide errors +.Ve +.IP "\fBchmod\fR" 4 +.IX Item "chmod" +chmod [\-Rcvf] MODE[,MODE]... \s-1FILE...\s0 +.Sp +Each \s-1MODE\s0 is one or more of the letters ugoa, one of the +symbols +\-= and one or more of the letters rwxst +.Sp +.Vb 4 +\& \-R Recurse +\& \-c List changed files +\& \-v List all files +\& \-f Hide errors +.Ve +.IP "\fBchown\fR" 4 +.IX Item "chown" +chown [\-RhLHPcvf]... OWNER[<.|:>[\s-1GROUP\s0]] \s-1FILE...\s0 +.Sp +Change the owner and/or group of each \s-1FILE\s0 to \s-1OWNER\s0 and/or \s-1GROUP\s0 +.Sp +.Vb 8 +\& \-R Recurse +\& \-h Affect symlinks instead of symlink targets +\& \-L Traverse all symlinks to directories +\& \-H Traverse symlinks on command line only +\& \-P Don\*(Aqt traverse symlinks (default) +\& \-c List changed files +\& \-v List all files +\& \-f Hide errors +.Ve +.IP "\fBchpasswd\fR" 4 +.IX Item "chpasswd" +chpasswd [\-\-md5|\-\-encrypted] +.Sp +Read user:password from stdin and update /etc/passwd +.Sp +.Vb 2 +\& \-e,\-\-encrypted Supplied passwords are in encrypted form +\& \-m,\-\-md5 Use MD5 encryption instead of DES +.Ve +.IP "\fBchpst\fR" 4 +.IX Item "chpst" +chpst [\-vP012] [\-u USER[:GRP]] [\-U USER[:GRP]] [\-e \s-1DIR\s0] + [\-/ \s-1DIR\s0] [\-n \s-1NICE\s0] [\-m \s-1BYTES\s0] [\-d \s-1BYTES\s0] [\-o N] + [\-p N] [\-f \s-1BYTES\s0] [\-c \s-1BYTES\s0] \s-1PROG ARGS\s0 +.Sp +Change the process state, run \s-1PROG\s0 +.Sp +.Vb 10 +\& \-u USER[:GRP] Set uid and gid +\& \-U USER[:GRP] Set $UID and $GID in environment +\& \-e DIR Set environment variables as specified by files +\& in DIR: file=1st_line_of_file +\& \-/ DIR Chroot to DIR +\& \-n NICE Add NICE to nice value +\& \-m BYTES Same as \-d BYTES \-s BYTES \-l BYTES +\& \-d BYTES Limit data segment +\& \-o N Limit number of open files per process +\& \-p N Limit number of processes per uid +\& \-f BYTES Limit output file sizes +\& \-c BYTES Limit core file size +\& \-v Verbose +\& \-P Create new process group +\& \-0 Close stdin +\& \-1 Close stdout +\& \-2 Close stderr +.Ve +.IP "\fBchroot\fR" 4 +.IX Item "chroot" +chroot \s-1NEWROOT\s0 [\s-1PROG ARGS\s0] +.Sp +Run \s-1PROG\s0 with root directory set to \s-1NEWROOT\s0 +.IP "\fBchrt\fR" 4 +.IX Item "chrt" +chrt [\-prfom] [\s-1PRIO\s0] [\s-1PID\s0 | \s-1PROG ARGS\s0] +.Sp +Change scheduling priority and class for a process +.Sp +.Vb 5 +\& \-p Operate on PID +\& \-r Set SCHED_RR class +\& \-f Set SCHED_FIFO class +\& \-o Set SCHED_OTHER class +\& \-m Show min/max priorities +.Ve +.IP "\fBchvt\fR" 4 +.IX Item "chvt" +chvt N +.Sp +Change the foreground virtual terminal to /dev/ttyN +.IP "\fBcksum\fR" 4 +.IX Item "cksum" +cksum \s-1FILES...\s0 +.Sp +Calculate the \s-1CRC32\s0 checksums of \s-1FILES\s0 +.IP "\fBclear\fR" 4 +.IX Item "clear" +clear +.Sp +Clear screen +.IP "\fBcmp\fR" 4 +.IX Item "cmp" +cmp [\-l] [\-s] \s-1FILE1\s0 [\s-1FILE2\s0 [\s-1SKIP1\s0 [\s-1SKIP2\s0]]] +.Sp +Compare \s-1FILE1\s0 with \s-1FILE2\s0 (or stdin) +.Sp +.Vb 3 +\& \-l Write the byte numbers (decimal) and values (octal) +\& for all differing bytes +\& \-s Quiet +.Ve +.IP "\fBcomm\fR" 4 +.IX Item "comm" +comm [\-123] \s-1FILE1 FILE2\s0 +.Sp +Compare \s-1FILE1\s0 with \s-1FILE2\s0 +.Sp +.Vb 3 +\& \-1 Suppress lines unique to FILE1 +\& \-2 Suppress lines unique to FILE2 +\& \-3 Suppress lines common to both files +.Ve +.IP "\fBconspy\fR" 4 +.IX Item "conspy" +conspy [\-vcsndfFQ] [\-x \s-1COL\s0] [\-y \s-1LINE\s0] [\s-1CONSOLE_NO\s0] +.Sp +A text-mode \s-1VNC\s0 like program for Linux virtual consoles. +To exit, quickly press \s-1ESC 3\s0 times. +.Sp +.Vb 10 +\& \-v Don\*(Aqt send keystrokes to the console +\& \-c Create missing /dev/{tty,vcsa}N +\& \-s Open a SHELL session +\& \-n Black & white +\& \-d Dump console to stdout +\& \-f Follow cursor +\& \-F Assume console is on a framebuffer device +\& \-Q Disable exit on ESC\-ESC\-ESC +\& \-x COL Starting column +\& \-y LINE Starting line +.Ve +.IP "\fBcp\fR" 4 +.IX Item "cp" +cp [\s-1OPTIONS\s0] \s-1SOURCE... DEST\s0 +.Sp +Copy \s-1SOURCE\s0(s) to \s-1DEST\s0 +.Sp +.Vb 9 +\& \-a Same as \-dpR +\& \-R,\-r Recurse +\& \-d,\-P Preserve symlinks (default if \-R) +\& \-L Follow all symlinks +\& \-H Follow symlinks on command line +\& \-p Preserve file attributes if possible +\& \-f Overwrite +\& \-i Prompt before overwrite +\& \-l,\-s Create (sym)links +.Ve +.IP "\fBcpio\fR" 4 +.IX Item "cpio" +cpio [\-dmvu] [\-F \s-1FILE\s0] [\-H newc] [\-tio] [\-p \s-1DIR\s0] [\s-1EXTR_FILE\s0]... +.Sp +Extract or list files from a cpio archive, or +create an archive (\-o) or copy files (\-p) using file list on stdin +.Sp +Main operation mode: +.Sp +.Vb 10 +\& \-t List +\& \-i Extract EXTR_FILEs (or all) +\& \-o Create (requires \-H newc) +\& \-p DIR Copy files to DIR +\& \-d Make leading directories +\& \-m Preserve mtime +\& \-v Verbose +\& \-u Overwrite +\& \-F FILE Input (\-t,\-i,\-p) or output (\-o) file +\& \-H newc Archive format +.Ve +.IP "\fBcrond\fR" 4 +.IX Item "crond" +crond \-fbS \-l N \-d N \-L \s-1LOGFILE\s0 \-c \s-1DIR\s0 +.Sp +.Vb 7 +\& \-f Foreground +\& \-b Background (default) +\& \-S Log to syslog (default) +\& \-l Set log level. 0 is the most verbose, default 8 +\& \-d Set log level, log to stderr +\& \-L Log to file +\& \-c Working dir +.Ve +.IP "\fBcrontab\fR" 4 +.IX Item "crontab" +crontab [\-c \s-1DIR\s0] [\-u \s-1USER\s0] [\-ler]|[\s-1FILE\s0] +.Sp +.Vb 6 +\& \-c Crontab directory +\& \-u User +\& \-l List crontab +\& \-e Edit crontab +\& \-r Delete crontab +\& FILE Replace crontab by FILE (\*(Aq\-\*(Aq: stdin) +.Ve +.IP "\fBcryptpw\fR" 4 +.IX Item "cryptpw" +cryptpw [\s-1OPTIONS\s0] [\s-1PASSWORD\s0] [\s-1SALT\s0] +.Sp +Crypt \s-1PASSWORD\s0 using \fIcrypt\fR\|(3) +.Sp +.Vb 3 +\& \-P,\-\-password\-fd=N Read password from fd N +\& \-m,\-\-method=TYPE Encryption method +\& \-S,\-\-salt=SALT +.Ve +.IP "\fBcttyhack\fR" 4 +.IX Item "cttyhack" +cttyhack [\s-1PROG ARGS\s0] +.Sp +Give \s-1PROG\s0 a controlling tty if possible. +Example for /etc/inittab (for busybox init): + ::respawn:/bin/cttyhack /bin/sh +Giving controlling tty to shell running with \s-1PID 1:\s0 + $ exec cttyhack sh +Starting interactive shell from boot shell script: +.Sp +.Vb 1 +\& setsid cttyhack sh +.Ve +.IP "\fBcut\fR" 4 +.IX Item "cut" +cut [\s-1OPTIONS\s0] [\s-1FILE\s0]... +.Sp +Print selected fields from each input \s-1FILE\s0 to stdout +.Sp +.Vb 6 +\& \-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 Output only the lines containing delimiter +\& \-f N Print only these fields +\& \-n Ignored +.Ve +.IP "\fBdate\fR" 4 +.IX Item "date" +date [\s-1OPTIONS\s0] [+FMT] [\s-1TIME\s0] +.Sp +Display time (using +FMT), or set time +.Sp +.Vb 10 +\& [\-s,\-\-set] TIME Set time to TIME +\& \-u,\-\-utc Work in UTC (don\*(Aqt convert to local time) +\& \-R,\-\-rfc\-2822 Output RFC\-2822 compliant date string +\& \-I[SPEC] Output ISO\-8601 compliant date string +\& SPEC=\*(Aqdate\*(Aq (default) for date only, +\& \*(Aqhours\*(Aq, \*(Aqminutes\*(Aq, or \*(Aqseconds\*(Aq for date and +\& time to the indicated precision +\& \-r,\-\-reference FILE Display last modification time of FILE +\& \-d,\-\-date TIME Display TIME, not \*(Aqnow\*(Aq +\& \-D FMT Use FMT for \-d TIME conversion +.Ve +.Sp +Recognized \s-1TIME\s0 formats: +.Sp +.Vb 5 +\& hh:mm[:ss] +\& [YYYY.]MM.DD\-hh:mm[:ss] +\& YYYY\-MM\-DD hh:mm[:ss] +\& [[[[[YY]YY]MM]DD]hh]mm[.ss] +\& \*(Aqdate TIME\*(Aq form accepts MMDDhhmm[[YY]YY][.ss] instead +.Ve +.IP "\fBdc\fR" 4 +.IX Item "dc" +dc \s-1EXPRESSION...\s0 +.Sp +Tiny \s-1RPN\s0 calculator. Operations: ++, add, \-, sub, *, mul, /, div, %, mod, **, exp, and, or, not, eor, +p \- print top of the stack (without popping), +f \- print entire stack, +o \- pop the value and set output radix (must be 10, 16, 8 or 2). +Examples: 'dc 2 2 add p' \-> 4, 'dc 8 8 * 2 2 + / p' \-> 16 +.IP "\fBdd\fR" 4 +.IX Item "dd" +dd [if=FILE] [of=FILE] [ibs=N] [obs=N] [bs=N] [count=N] [skip=N] + [seek=N] [conv=notrunc|noerror|sync|fsync] +.Sp +Copy a file with converting and formatting +.Sp +.Vb 12 +\& if=FILE Read from FILE instead of stdin +\& of=FILE Write to FILE instead of stdout +\& bs=N Read and write N bytes at a time +\& ibs=N Read N bytes at a time +\& obs=N Write N bytes at a time +\& count=N Copy only N input blocks +\& skip=N Skip N input blocks +\& seek=N Skip N output blocks +\& conv=notrunc Don\*(Aqt truncate output file +\& conv=noerror Continue after read errors +\& conv=sync Pad blocks with zeros +\& conv=fsync Physically write data out before finishing +.Ve +.Sp +Numbers may be suffixed by c (x1), w (x2), b (x512), kD (x1000), k (x1024), +\&\s-1MD\s0 (x1000000), M (x1048576), \s-1GD\s0 (x1000000000) or G (x1073741824) +.IP "\fBdeallocvt\fR" 4 +.IX Item "deallocvt" +deallocvt [N] +.Sp +Deallocate unused virtual terminal /dev/ttyN +.IP "\fBdelgroup\fR" 4 +.IX Item "delgroup" +delgroup [\s-1USER\s0] \s-1GROUP\s0 +.Sp +Delete group \s-1GROUP\s0 from the system or user \s-1USER\s0 from group \s-1GROUP\s0 +.IP "\fBdeluser\fR" 4 +.IX Item "deluser" +deluser \s-1USER\s0 +.Sp +Delete \s-1USER\s0 from the system +.IP "\fBdepmod\fR" 4 +.IX Item "depmod" +depmod [\-qfwrsv] \s-1MODULE\s0 [symbol=value]... +.Sp +.Vb 6 +\& \-r Remove MODULE (stacks) or do autoclean +\& \-q Quiet +\& \-v Verbose +\& \-f Force +\& \-w Wait for unload +\& \-s Report via syslog instead of stderr +.Ve +.IP "\fBdevmem\fR" 4 +.IX Item "devmem" +devmem \s-1ADDRESS\s0 [\s-1WIDTH\s0 [\s-1VALUE\s0]] +.Sp +Read/write from physical address +.Sp +.Vb 3 +\& ADDRESS Address to act upon +\& WIDTH Width (8/16/...) +\& VALUE Data to be written +.Ve +.IP "\fBdf\fR" 4 +.IX Item "df" +df [\-Pkmhai] [\-B \s-1SIZE\s0] [\s-1FILESYSTEM\s0]... +.Sp +Print filesystem usage statistics +.Sp +.Vb 7 +\& \-P POSIX output format +\& \-k 1024\-byte blocks (default) +\& \-m 1M\-byte blocks +\& \-h Human readable (e.g. 1K 243M 2G) +\& \-a Show all filesystems +\& \-i Inodes +\& \-B SIZE Blocksize +.Ve +.IP "\fBdhcprelay\fR" 4 +.IX Item "dhcprelay" +dhcprelay CLIENT_IFACE[,CLIENT_IFACE2]... \s-1SERVER_IFACE\s0 [\s-1SERVER_IP\s0] +.Sp +Relay \s-1DHCP\s0 requests between clients and server +.IP "\fBdiff\fR" 4 +.IX Item "diff" +diff [\-abBdiNqrTstw] [\-L \s-1LABEL\s0] [\-S \s-1FILE\s0] [\-U \s-1LINES\s0] \s-1FILE1 FILE2\s0 +.Sp +Compare files line by line and output the differences between them. +This implementation supports unified diffs only. +.Sp +.Vb 10 +\& \-a Treat all files as text +\& \-b Ignore changes in the amount of whitespace +\& \-B Ignore changes whose lines are all blank +\& \-d Try hard to find a smaller set of changes +\& \-i Ignore case differences +\& \-L Use LABEL instead of the filename in the unified header +\& \-N Treat absent files as empty +\& \-q Output only whether files differ +\& \-r Recurse +\& \-S Start with FILE when comparing directories +\& \-T Make tabs line up by prefixing a tab when necessary +\& \-s Report when two files are the same +\& \-t Expand tabs to spaces in output +\& \-U Output LINES lines of context +\& \-w Ignore all whitespace +.Ve +.IP "\fBdirname\fR" 4 +.IX Item "dirname" +dirname \s-1FILENAME\s0 +.Sp +Strip non-directory suffix from \s-1FILENAME\s0 +.IP "\fBdmesg\fR" 4 +.IX Item "dmesg" +dmesg [\-c] [\-n \s-1LEVEL\s0] [\-s \s-1SIZE\s0] +.Sp +Print or control the kernel ring buffer +.Sp +.Vb 3 +\& \-c Clear ring buffer after printing +\& \-n LEVEL Set console logging level +\& \-s SIZE Buffer size +.Ve +.IP "\fBdnsd\fR" 4 +.IX Item "dnsd" +dnsd [\-dvs] [\-c \s-1CONFFILE\s0] [\-t \s-1TTL_SEC\s0] [\-p \s-1PORT\s0] [\-i \s-1ADDR\s0] +.Sp +Small static \s-1DNS\s0 server daemon +.Sp +.Vb 10 +\& \-c FILE Config file +\& \-t SEC TTL +\& \-p PORT Listen on PORT +\& \-i ADDR Listen on ADDR +\& \-d Daemonize +\& \-v Verbose +\& \-s Send successful replies only. Use this if you want +\& to use /etc/resolv.conf with two nameserver lines: +\& nameserver DNSD_SERVER +\& nameserver NORMAL_DNS_SERVER +.Ve +.IP "\fBdos2unix\fR" 4 +.IX Item "dos2unix" +dos2unix [\-ud] [\s-1FILE\s0] +.Sp +Convert \s-1FILE\s0 in-place from \s-1DOS\s0 to Unix format. +When no file is given, use stdin/stdout. +.Sp +.Vb 2 +\& \-u dos2unix +\& \-d unix2dos +.Ve +.IP "\fBdu\fR" 4 +.IX Item "du" +du [\-aHLdclsxhmk] [\s-1FILE\s0]... +.Sp +Summarize disk space used for each \s-1FILE\s0 and/or directory +.Sp +.Vb 11 +\& \-a Show file sizes too +\& \-L Follow all symlinks +\& \-H Follow symlinks on command line +\& \-d N Limit output to directories (and files with \-a) of depth < N +\& \-c Show grand total +\& \-l Count sizes many times if hard linked +\& \-s Display only a total for each argument +\& \-x Skip directories on different filesystems +\& \-h Sizes in human readable format (e.g., 1K 243M 2G) +\& \-m Sizes in megabytes +\& \-k Sizes in kilobytes (default) +.Ve +.IP "\fBdumpkmap\fR" 4 +.IX Item "dumpkmap" +dumpkmap > keymap +.Sp +Print a binary keyboard translation table to stdout +.IP "\fBdumpleases\fR" 4 +.IX Item "dumpleases" +dumpleases [\-r|\-a] [\-f \s-1LEASEFILE\s0] +.Sp +Display \s-1DHCP\s0 leases granted by udhcpd +.Sp +.Vb 3 +\& \-f,\-\-file=FILE Lease file +\& \-r,\-\-remaining Show remaining time +\& \-a,\-\-absolute Show expiration time +.Ve +.IP "\fBecho\fR" 4 +.IX Item "echo" +echo [\-neE] [\s-1ARG\s0]... +.Sp +Print the specified ARGs to stdout +.Sp +.Vb 3 +\& \-n Suppress trailing newline +\& \-e Interpret backslash escapes (i.e., \et=tab) +\& \-E Don\*(Aqt interpret backslash escapes (default) +.Ve +.IP "\fBed\fR" 4 +.IX Item "ed" +ed +.IP "\fBeject\fR" 4 +.IX Item "eject" +eject [\-t] [\-T] [\s-1DEVICE\s0] +.Sp +Eject \s-1DEVICE\s0 or default /dev/cdrom +.Sp +.Vb 3 +\& \-s SCSI device +\& \-t Close tray +\& \-T Open/close tray (toggle) +.Ve +.IP "\fBenv\fR" 4 +.IX Item "env" +env [\-iu] [\-] [name=value]... [\s-1PROG ARGS\s0] +.Sp +Print the current environment or run \s-1PROG\s0 after setting up +the specified environment +.Sp +.Vb 2 +\& \-, \-i Start with an empty environment +\& \-u Remove variable from the environment +.Ve +.IP "\fBenvdir\fR" 4 +.IX Item "envdir" +envdir \s-1DIR PROG ARGS\s0 +.Sp +Set various environment variables as specified by files +in the directory \s-1DIR,\s0 run \s-1PROG\s0 +.IP "\fBenvuidgid\fR" 4 +.IX Item "envuidgid" +envuidgid \s-1USER PROG ARGS\s0 +.Sp +Set \f(CW$UID\fR to \s-1USER\s0's uid and \f(CW$GID\fR to \s-1USER\s0's gid, run \s-1PROG\s0 +.IP "\fBether-wake\fR" 4 +.IX Item "ether-wake" +ether-wake [\-b] [\-i iface] [\-p aa:bb:cc:dd[:ee:ff]] \s-1MAC\s0 +.Sp +Send a magic packet to wake up sleeping machines. +\&\s-1MAC\s0 must be a station address (00:11:22:33:44:55) or +a hostname with a known 'ethers' entry. +.Sp +.Vb 3 +\& \-b Send wake\-up packet to the broadcast address +\& \-i iface Interface to use (default eth0) +\& \-p pass Append four or six byte password PW to the packet +.Ve +.IP "\fBexpand\fR" 4 +.IX Item "expand" +expand [\-i] [\-t N] [\s-1FILE\s0]... +.Sp +Convert tabs to spaces, writing to stdout +.Sp +.Vb 2 +\& \-i,\-\-initial Don\*(Aqt convert tabs after non blanks +\& \-t,\-\-tabs=N Tabstops every N chars +.Ve +.IP "\fBexpr\fR" 4 +.IX Item "expr" +expr \s-1EXPRESSION\s0 +.Sp +Print the value of \s-1EXPRESSION\s0 to stdout +.Sp +\&\s-1EXPRESSION\s0 may be: +.Sp +.Vb 10 +\& ARG1 | ARG2 ARG1 if it is neither null nor 0, otherwise ARG2 +\& ARG1 & ARG2 ARG1 if neither argument is null or 0, otherwise 0 +\& ARG1 < ARG2 1 if ARG1 is less than ARG2, else 0. Similarly: +\& ARG1 <= ARG2 +\& ARG1 = ARG2 +\& ARG1 != ARG2 +\& ARG1 >= ARG2 +\& ARG1 > ARG2 +\& ARG1 + ARG2 Sum of ARG1 and ARG2. Similarly: +\& ARG1 \- ARG2 +\& ARG1 * ARG2 +\& ARG1 / ARG2 +\& ARG1 % ARG2 +\& STRING : REGEXP Anchored pattern match of REGEXP in STRING +\& match STRING REGEXP Same as STRING : REGEXP +\& substr STRING POS LENGTH Substring of STRING, POS counted from 1 +\& index STRING CHARS Index in STRING where any CHARS is found, or 0 +\& length STRING Length of STRING +\& quote TOKEN Interpret TOKEN as a string, even if +\& it is a keyword like \*(Aqmatch\*(Aq or an +\& operator like \*(Aq/\*(Aq +\& (EXPRESSION) Value of EXPRESSION +.Ve +.Sp +Beware that many operators need to be escaped or quoted for shells. +Comparisons are arithmetic if both ARGs are numbers, else +lexicographical. Pattern matches return the string matched between +\&\e( and \e) or null; if \e( and \e) are not used, they return the number +of characters matched or 0. +.IP "\fBfakeidentd\fR" 4 +.IX Item "fakeidentd" +fakeidentd [\-fiw] [\-b \s-1ADDR\s0] [\s-1STRING\s0] +.Sp +Provide fake ident (auth) service +.Sp +.Vb 5 +\& \-f Run in foreground +\& \-i Inetd mode +\& \-w Inetd \*(Aqwait\*(Aq mode +\& \-b ADDR Bind to specified address +\& STRING Ident answer string (default: nobody) +.Ve +.IP "\fBfalse\fR" 4 +.IX Item "false" +false +.Sp +Return an exit code of \s-1FALSE\s0 (1) +.IP "\fBfbset\fR" 4 +.IX Item "fbset" +fbset [\s-1OPTIONS\s0] [\s-1MODE\s0] +.Sp +Show and modify frame buffer settings +.IP "\fBfbsplash\fR" 4 +.IX Item "fbsplash" +fbsplash \-s \s-1IMGFILE\s0 [\-c] [\-d \s-1DEV\s0] [\-i \s-1INIFILE\s0] [\-f \s-1CMD\s0] +.Sp +.Vb 8 +\& \-s Image +\& \-c Hide cursor +\& \-d Framebuffer device (default /dev/fb0) +\& \-i Config file (var=value): +\& BAR_LEFT,BAR_TOP,BAR_WIDTH,BAR_HEIGHT +\& BAR_R,BAR_G,BAR_B +\& \-f Control pipe (else exit after drawing image) +\& commands: \*(AqNN\*(Aq (% for progress bar) or \*(Aqexit\*(Aq +.Ve +.IP "\fBfdflush\fR" 4 +.IX Item "fdflush" +fdflush \s-1DEVICE\s0 +.Sp +Force floppy disk drive to detect disk change +.IP "\fBfdformat\fR" 4 +.IX Item "fdformat" +fdformat [\-n] \s-1DEVICE\s0 +.Sp +Format floppy disk +.Sp +.Vb 1 +\& \-n Don\*(Aqt verify after format +.Ve +.IP "\fBfdisk\fR" 4 +.IX Item "fdisk" +fdisk [\-ul] [\-C \s-1CYLINDERS\s0] [\-H \s-1HEADS\s0] [\-S \s-1SECTORS\s0] [\-b \s-1SSZ\s0] \s-1DISK\s0 +.Sp +Change partition table +.Sp +.Vb 6 +\& \-u Start and End are in sectors (instead of cylinders) +\& \-l Show partition table for each DISK, then exit +\& \-b 2048 (for certain MO disks) use 2048\-byte sectors +\& \-C CYLINDERS Set number of cylinders/heads/sectors +\& \-H HEADS +\& \-S SECTORS +.Ve +.IP "\fBfgconsole\fR" 4 +.IX Item "fgconsole" +fgconsole +.Sp +Get active console +.IP "\fBfind\fR" 4 +.IX Item "find" +find [\s-1PATH\s0]... [\s-1OPTIONS\s0] [\s-1ACTIONS\s0] +.Sp +Search for files and perform actions on them. +First failed action stops processing of current file. +Defaults: \s-1PATH\s0 is current directory, action is '\-print' +.Sp +.Vb 6 +\& \-follow Follow symlinks +\& \-xdev Don\*(Aqt descend directories on other filesystems +\& \-maxdepth N Descend at most N levels. \-maxdepth 0 applies +\& actions to command line arguments only +\& \-mindepth N Don\*(Aqt act on first N levels +\& \-depth Act on directory *after* traversing it +.Ve +.Sp +Actions: +.Sp +.Vb 10 +\& ( ACTIONS ) Group actions for \-o / \-a +\& ! ACT Invert ACT\*(Aqs success/failure +\& ACT1 [\-a] ACT2 If ACT1 fails, stop, else do ACT2 +\& ACT1 \-o ACT2 If ACT1 succeeds, stop, else do ACT2 +\& Note: \-a has higher priority than \-o +\& \-name PATTERN Match file name (w/o directory name) to PATTERN +\& \-iname PATTERN Case insensitive \-name +\& \-path PATTERN Match path to PATTERN +\& \-ipath PATTERN Case insensitive \-path +\& \-regex PATTERN Match path to regex PATTERN +\& \-type X File type is X (one of: f,d,l,b,c,...) +\& \-perm MASK At least one mask bit (+MASK), all bits (\-MASK), +\& or exactly MASK bits are set in file\*(Aqs mode +\& \-mtime DAYS mtime is greater than (+N), less than (\-N), +\& or exactly N days in the past +\& \-mmin MINS mtime is greater than (+N), less than (\-N), +\& or exactly N minutes in the past +\& \-newer FILE mtime is more recent than FILE\*(Aqs +\& \-inum N File has inode number N +\& \-user NAME/ID File is owned by given user +\& \-group NAME/ID File is owned by given group +\& \-size N[bck] File size is N (c:bytes,k:kbytes,b:512 bytes(def.)) +\& +/\-N: file size is bigger/smaller than N +\& \-links N Number of links is greater than (+N), less than (\-N), +\& or exactly N +\& \-prune If current file is directory, don\*(Aqt descend into it +\&If none of the following actions is specified, \-print is assumed +\& \-print Print file name +\& \-print0 Print file name, NUL terminated +\& \-exec CMD ARG ; Run CMD with all instances of {} replaced by +\& file name. Fails if CMD exits with nonzero +\& \-delete Delete current file/directory. Turns on \-depth option +.Ve +.IP "\fBfindfs\fR" 4 +.IX Item "findfs" +findfs LABEL=label or UUID=uuid +.Sp +Find a filesystem device based on a label or \s-1UUID\s0 +.IP "\fBflash_eraseall\fR" 4 +.IX Item "flash_eraseall" +flash_eraseall [\-jq] \s-1MTD_DEVICE\s0 +.Sp +Erase an \s-1MTD\s0 device +.Sp +.Vb 2 +\& \-j Format the device for jffs2 +\& \-q Don\*(Aqt display progress messages +.Ve +.IP "\fBflock\fR" 4 +.IX Item "flock" +flock [\-sxun] FD|{\s-1FILE\s0 [\-c] \s-1PROG ARGS\s0} +.Sp +[Un]lock file descriptor, or lock \s-1FILE,\s0 run \s-1PROG\s0 +.Sp +.Vb 4 +\& \-s Shared lock +\& \-x Exclusive lock (default) +\& \-u Unlock FD +\& \-n Fail rather than wait +.Ve +.IP "\fBfold\fR" 4 +.IX Item "fold" +fold [\-bs] [\-w \s-1WIDTH\s0] [\s-1FILE\s0]... +.Sp +Wrap input lines in each \s-1FILE\s0 (or stdin), writing to stdout +.Sp +.Vb 3 +\& \-b Count bytes rather than columns +\& \-s Break at spaces +\& \-w Use WIDTH columns instead of 80 +.Ve +.IP "\fBfree\fR" 4 +.IX Item "free" +free [\-b/k/m/g] +.Sp +Display the amount of free and used system memory +.IP "\fBfreeramdisk\fR" 4 +.IX Item "freeramdisk" +freeramdisk \s-1DEVICE\s0 +.Sp +Free all memory used by the specified ramdisk +.IP "\fBfsck\fR" 4 +.IX Item "fsck" +fsck [\-ANPRTV] [\-C \s-1FD\s0] [\-t \s-1FSTYPE\s0] [\s-1FS_OPTS\s0] [\s-1BLOCKDEV\s0]... +.Sp +Check and repair filesystems +.Sp +.Vb 8 +\& \-A Walk /etc/fstab and check all filesystems +\& \-N Don\*(Aqt execute, just show what would be done +\& \-P With \-A, check filesystems in parallel +\& \-R With \-A, skip the root filesystem +\& \-T Don\*(Aqt show title on startup +\& \-V Verbose +\& \-C n Write status information to specified filedescriptor +\& \-t TYPE List of filesystem types to check +.Ve +.IP "\fBfsck.minix\fR" 4 +.IX Item "fsck.minix" +fsck.minix [\-larvsmf] \s-1BLOCKDEV\s0 +.Sp +Check \s-1MINIX\s0 filesystem +.Sp +.Vb 7 +\& \-l List all filenames +\& \-r Perform interactive repairs +\& \-a Perform automatic repairs +\& \-v Verbose +\& \-s Output superblock information +\& \-m Show "mode not cleared" warnings +\& \-f Force file system check +.Ve +.IP "\fBfsync\fR" 4 +.IX Item "fsync" +fsync [\-d] \s-1FILE...\s0 +.Sp +Write files' buffered blocks to disk +.Sp +.Vb 1 +\& \-d Avoid syncing metadata +.Ve +.IP "\fBftpd\fR" 4 +.IX Item "ftpd" +ftpd [\-wvS] [\-t N] [\-T N] [\s-1DIR\s0] +.Sp +Anonymous \s-1FTP\s0 server +.Sp +ftpd should be used as an inetd service. +ftpd's line for inetd.conf: + 21 stream tcp nowait root ftpd ftpd /files/to/serve +It also can be ran from tcpsvd: +.Sp +.Vb 1 +\& tcpsvd \-vE 0.0.0.0 21 ftpd /files/to/serve +\& +\& \-w Allow upload +\& \-v Log errors to stderr. \-vv: verbose log +\& \-S Log errors to syslog. \-SS: verbose log +\& \-t,\-T Idle and absolute timeouts +\& DIR Change root to this directory +.Ve +.IP "\fBftpget\fR" 4 +.IX Item "ftpget" +ftpget [\s-1OPTIONS\s0] \s-1HOST\s0 [\s-1LOCAL_FILE\s0] \s-1REMOTE_FILE\s0 +.Sp +Download a file via \s-1FTP\s0 +.Sp +.Vb 5 +\& \-c,\-\-continue Continue previous transfer +\& \-v,\-\-verbose Verbose +\& \-u,\-\-username USER Username +\& \-p,\-\-password PASS Password +\& \-P,\-\-port NUM Port +.Ve +.IP "\fBftpput\fR" 4 +.IX Item "ftpput" +ftpput [\s-1OPTIONS\s0] \s-1HOST\s0 [\s-1REMOTE_FILE\s0] \s-1LOCAL_FILE\s0 +.Sp +Upload a file to a \s-1FTP\s0 server +.Sp +.Vb 4 +\& \-v,\-\-verbose Verbose +\& \-u,\-\-username USER Username +\& \-p,\-\-password PASS Password +\& \-P,\-\-port NUM Port +.Ve +.IP "\fBfuser\fR" 4 +.IX Item "fuser" +fuser [\s-1OPTIONS\s0] \s-1FILE\s0 or \s-1PORT/PROTO\s0 +.Sp +Find processes which use FILEs or PORTs +.Sp +.Vb 5 +\& \-m Find processes which use same fs as FILEs +\& \-4,\-6 Search only IPv4/IPv6 space +\& \-s Don\*(Aqt display PIDs +\& \-k Kill found processes +\& \-SIGNAL Signal to send (default: KILL) +.Ve +.IP "\fBgetopt\fR" 4 +.IX Item "getopt" +getopt [\s-1OPTIONS\s0] [\-\-] \s-1OPTSTRING PARAMS\s0 +.Sp +.Vb 9 +\& \-a,\-\-alternative Allow long options starting with single \- +\& \-l,\-\-longoptions=LOPT[,...] Long options to be recognized +\& \-n,\-\-name=PROGNAME The name under which errors are reported +\& \-o,\-\-options=OPTSTRING Short options to be recognized +\& \-q,\-\-quiet Disable error reporting by getopt(3) +\& \-Q,\-\-quiet\-output No normal output +\& \-s,\-\-shell=SHELL Set shell quoting conventions +\& \-T,\-\-test Test for getopt(1) version +\& \-u,\-\-unquoted Don\*(Aqt quote the output +.Ve +.Sp +Example: +.Sp +O=`getopt \-l bb: \*(-- ab:c:: \*(L"$@\*(R"` || exit 1 +eval set \*(-- \*(L"$O\*(R" +while true; do + case \*(L"$1\*(R" in + \-a) echo A; shift;; + \-b|\-\-bb) echo \*(L"B:'$2'\*(R"; shift 2;; + \-c) case \*(L"$2\*(R" in + "\*(L") echo C; shift 2;; + *) echo \*(R"C:'$2'"; shift 2;; + esac;; + \-\-) shift; break;; + *) echo Error; exit 1;; + esac +done +.IP "\fBgetty\fR" 4 +.IX Item "getty" +getty [\s-1OPTIONS\s0] BAUD_RATE[,BAUD_RATE]... \s-1TTY\s0 [\s-1TERMTYPE\s0] +.Sp +Open \s-1TTY,\s0 prompt for login name, then invoke /bin/login +.Sp +.Vb 11 +\& \-h Enable hardware RTS/CTS flow control +\& \-L Set CLOCAL (ignore Carrier Detect state) +\& \-m Get baud rate from modem\*(Aqs CONNECT status message +\& \-n Don\*(Aqt prompt for login name +\& \-w Wait for CR or LF before sending /etc/issue +\& \-i Don\*(Aqt display /etc/issue +\& \-f ISSUE_FILE Display ISSUE_FILE instead of /etc/issue +\& \-l LOGIN Invoke LOGIN instead of /bin/login +\& \-t SEC Terminate after SEC if no login name is read +\& \-I INITSTR Send INITSTR before anything else +\& \-H HOST Log HOST into the utmp file as the hostname +.Ve +.Sp +\&\s-1BAUD_RATE\s0 of 0 leaves it unchanged +.IP "\fBgrep\fR" 4 +.IX Item "grep" +grep [\-HhnlLoqvsriwFE] [\-m N] [\-A/B/C N] PATTERN/\-e \s-1PATTERN..\s0./\-f \s-1FILE\s0 [\s-1FILE\s0]... +.Sp +Search for \s-1PATTERN\s0 in FILEs (or stdin) +.Sp +.Vb 10 +\& \-H Add \*(Aqfilename:\*(Aq prefix +\& \-h Do not add \*(Aqfilename:\*(Aq prefix +\& \-n Add \*(Aqline_no:\*(Aq prefix +\& \-l Show only names of files that match +\& \-L Show only names of files that don\*(Aqt match +\& \-c Show only count of matching lines +\& \-o Show only the matching part of line +\& \-q Quiet. Return 0 if PATTERN is found, 1 otherwise +\& \-v Select non\-matching lines +\& \-s Suppress open and read errors +\& \-r Recurse +\& \-i Ignore case +\& \-w Match whole words only +\& \-x Match whole lines only +\& \-F PATTERN is a literal (not regexp) +\& \-E PATTERN is an extended regexp +\& \-m N Match up to N times per file +\& \-A N Print N lines of trailing context +\& \-B N Print N lines of leading context +\& \-C N Same as \*(Aq\-A N \-B N\*(Aq +\& \-e PTRN Pattern to match +\& \-f FILE Read pattern from file +.Ve +.IP "\fBgroups\fR" 4 +.IX Item "groups" +groups [\s-1USER\s0] +.Sp +Print the group memberships of \s-1USER\s0 or for the current process +.IP "\fBgunzip\fR" 4 +.IX Item "gunzip" +gunzip [\-cft] [\s-1FILE\s0]... +.Sp +Decompress FILEs (or stdin) +.Sp +.Vb 3 +\& \-c Write to stdout +\& \-f Force +\& \-t Test file integrity +.Ve +.IP "\fBgzip\fR" 4 +.IX Item "gzip" +gzip [\-cfd] [\s-1FILE\s0]... +.Sp +Compress FILEs (or stdin) +.Sp +.Vb 3 +\& \-d Decompress +\& \-c Write to stdout +\& \-f Force +.Ve +.IP "\fBhalt\fR" 4 +.IX Item "halt" +halt [\-d \s-1DELAY\s0] [\-n] [\-f] [\-w] +.Sp +Halt the system +.Sp +.Vb 4 +\& \-d SEC Delay interval +\& \-n Do not sync +\& \-f Force (don\*(Aqt go through init) +\& \-w Only write a wtmp record +.Ve +.IP "\fBhd\fR" 4 +.IX Item "hd" +hd \s-1FILE...\s0 +.Sp +hd is an alias for hexdump \-C +.IP "\fBhdparm\fR" 4 +.IX Item "hdparm" +hdparm [\s-1OPTIONS\s0] [\s-1DEVICE\s0] +.Sp +.Vb 10 +\& \-a Get/set fs readahead +\& \-A Set drive read\-lookahead flag (0/1) +\& \-b Get/set bus state (0 == off, 1 == on, 2 == tristate) +\& \-B Set Advanced Power Management setting (1\-255) +\& \-c Get/set IDE 32\-bit IO setting +\& \-C Check IDE power mode status +\& \-d Get/set using_dma flag +\& \-D Enable/disable drive defect\-mgmt +\& \-f Flush buffer cache for device on exit +\& \-g Display drive geometry +\& \-h Display terse usage information +\& \-i Display drive identification +\& \-I Detailed/current information directly from drive +\& \-k Get/set keep_settings_over_reset flag (0/1) +\& \-K Set drive keep_features_over_reset flag (0/1) +\& \-L Set drive doorlock (0/1) (removable harddisks only) +\& \-m Get/set multiple sector count +\& \-n Get/set ignore\-write\-errors flag (0/1) +\& \-p Set PIO mode on IDE interface chipset (0,1,2,3,4,...) +\& \-P Set drive prefetch count +\& \-Q Get/set DMA tagged\-queuing depth (if supported) +\& \-r Get/set readonly flag (DANGEROUS to set) +\& \-R Register an IDE interface (DANGEROUS) +\& \-S Set standby (spindown) timeout +\& \-t Perform device read timings +\& \-T Perform cache read timings +\& \-u Get/set unmaskirq flag (0/1) +\& \-U Unregister an IDE interface (DANGEROUS) +\& \-v Defaults; same as \-mcudkrag for IDE drives +\& \-V Display program version and exit immediately +\& \-w Perform device reset (DANGEROUS) +\& \-W Set drive write\-caching flag (0/1) (DANGEROUS) +\& \-x Tristate device for hotswap (0/1) (DANGEROUS) +\& \-X Set IDE xfer mode (DANGEROUS) +\& \-y Put IDE drive in standby mode +\& \-Y Put IDE drive to sleep +\& \-Z Disable Seagate auto\-powersaving mode +\& \-z Reread partition table +.Ve +.IP "\fBhead\fR" 4 +.IX Item "head" +head [\s-1OPTIONS\s0] [\s-1FILE\s0]... +.Sp +Print first 10 lines of each \s-1FILE\s0 (or stdin) to stdout. +With more than one \s-1FILE,\s0 precede each with a filename header. +.Sp +.Vb 4 +\& \-n N[kbm] Print first N lines +\& \-c N[kbm] Print first N bytes +\& \-q Never print headers +\& \-v Always print headers +.Ve +.Sp +N may be suffixed by k (x1024), b (x512), or m (x1024^2). +.IP "\fBhexdump\fR" 4 +.IX Item "hexdump" +hexdump [\-bcCdefnosvxR] [\s-1FILE\s0]... +.Sp +Display FILEs (or stdin) in a user specified format +.Sp +.Vb 12 +\& \-b One\-byte octal display +\& \-c One\-byte character display +\& \-C Canonical hex+ASCII, 16 bytes per line +\& \-d Two\-byte decimal display +\& \-e FORMAT_STRING +\& \-f FORMAT_FILE +\& \-n LENGTH Interpret only LENGTH bytes of input +\& \-o Two\-byte octal display +\& \-s OFFSET Skip OFFSET bytes +\& \-v Display all input data +\& \-x Two\-byte hexadecimal display +\& \-R Reverse of \*(Aqhexdump \-Cv\*(Aq +.Ve +.IP "\fBhostid\fR" 4 +.IX Item "hostid" +hostid +.Sp +Print out a unique 32\-bit identifier for the machine +.IP "\fBhostname\fR" 4 +.IX Item "hostname" +hostname [\s-1OPTIONS\s0] [\s-1HOSTNAME\s0 | \-F \s-1FILE\s0] +.Sp +Get or set hostname or \s-1DNS\s0 domain name +.Sp +.Vb 5 +\& \-s Short +\& \-i Addresses for the hostname +\& \-d DNS domain name +\& \-f Fully qualified domain name +\& \-F FILE Use FILE\*(Aqs content as hostname +.Ve +.IP "\fBhttpd\fR" 4 +.IX Item "httpd" +httpd [\-ifv[v]] [\-c \s-1CONFFILE\s0] [\-p [\s-1IP:\s0]PORT] [\-u USER[:GRP]] [\-r \s-1REALM\s0] [\-h \s-1HOME\s0] +or httpd \-d/\-e/\-m \s-1STRING\s0 +.Sp +Listen for incoming \s-1HTTP\s0 requests +.Sp +.Vb 11 +\& \-i Inetd mode +\& \-f Don\*(Aqt daemonize +\& \-v[v] Verbose +\& \-p [IP:]PORT Bind to IP:PORT (default *:80) +\& \-u USER[:GRP] Set uid/gid after binding to port +\& \-r REALM Authentication Realm for Basic Authentication +\& \-h HOME Home directory (default .) +\& \-c FILE Configuration file (default {/etc,HOME}/httpd.conf) +\& \-m STRING MD5 crypt STRING +\& \-e STRING HTML encode STRING +\& \-d STRING URL decode STRING +.Ve +.IP "\fBhush\fR" 4 +.IX Item "hush" +hush [\-nxl] [\-c '\s-1SCRIPT\s0' [\s-1ARG0\s0 [\s-1ARGS\s0]] / \s-1FILE\s0 [\s-1ARGS\s0]] +.Sp +Unix shell interpreter +.IP "\fBhwclock\fR" 4 +.IX Item "hwclock" +hwclock [\-r|\-\-show] [\-s|\-\-hctosys] [\-w|\-\-systohc] [\-t|\-\-systz] [\-l|\-\-localtime] [\-u|\-\-utc] [\-f|\-\-rtc \s-1FILE\s0] +.Sp +Query and set hardware clock (\s-1RTC\s0) +.Sp +.Vb 8 +\& \-r Show hardware clock time +\& \-s Set system time from hardware clock +\& \-w Set hardware clock from system time +\& \-t Set in\-kernel timezone, correct system time +\& if hardware clock is in local time +\& \-u Assume hardware clock is kept in UTC +\& \-l Assume hardware clock is kept in local time +\& \-f FILE Use specified device (e.g. /dev/rtc2) +.Ve +.IP "\fBid\fR" 4 +.IX Item "id" +id [\s-1OPTIONS\s0] [\s-1USER\s0] +.Sp +Print information about \s-1USER\s0 or the current user +.Sp +.Vb 5 +\& \-u User ID +\& \-g Group ID +\& \-G Supplementary group IDs +\& \-n Print names instead of numbers +\& \-r Print real ID instead of effective ID +.Ve +.IP "\fBifconfig\fR" 4 +.IX Item "ifconfig" +ifconfig [\-a] interface [address] +.Sp +Configure a network interface +.Sp +.Vb 10 +\& [add ADDRESS[/PREFIXLEN]] +\& [del ADDRESS[/PREFIXLEN]] +\& [[\-]broadcast [ADDRESS]] [[\-]pointopoint [ADDRESS]] +\& [netmask ADDRESS] [dstaddr ADDRESS] +\& [outfill NN] [keepalive NN] +\& [hw ether|infiniband ADDRESS] [metric NN] [mtu NN] +\& [[\-]trailers] [[\-]arp] [[\-]allmulti] +\& [multicast] [[\-]promisc] [txqueuelen NN] [[\-]dynamic] +\& [mem_start NN] [io_addr NN] [irq NN] +\& [up|down] ... +.Ve +.IP "\fBifdown\fR" 4 +.IX Item "ifdown" +ifdown [\-anmvf] [\-i \s-1FILE\s0] \s-1IFACE...\s0 +.Sp +.Vb 7 +\& \-a De/configure all interfaces automatically +\& \-i FILE Use FILE for interface definitions +\& \-n Print out what would happen, but don\*(Aqt do it +\& (note: doesn\*(Aqt disable mappings) +\& \-m Don\*(Aqt run any mappings +\& \-v Print out what would happen before doing it +\& \-f Force de/configuration +.Ve +.IP "\fBifenslave\fR" 4 +.IX Item "ifenslave" +ifenslave [\-cdf] \s-1MASTER_IFACE SLAVE_IFACE...\s0 +.Sp +Configure network interfaces for parallel routing +.Sp +.Vb 3 +\& \-c,\-\-change\-active Change active slave +\& \-d,\-\-detach Remove slave interface from bonding device +\& \-f,\-\-force Force, even if interface is not Ethernet +.Ve +.IP "\fBifplugd\fR" 4 +.IX Item "ifplugd" +ifplugd [\s-1OPTIONS\s0] +.Sp +Network interface plug detection daemon +.Sp +.Vb 10 +\& \-n Don\*(Aqt daemonize +\& \-s Don\*(Aqt log to syslog +\& \-i IFACE Interface +\& \-f/\-F Treat link detection error as link down/link up +\& (otherwise exit on error) +\& \-a Don\*(Aqt up interface at each link probe +\& \-M Monitor creation/destruction of interface +\& (otherwise it must exist) +\& \-r PROG Script to run +\& \-x ARG Extra argument for script +\& \-I Don\*(Aqt exit on nonzero exit code from script +\& \-p Don\*(Aqt run script on daemon startup +\& \-q Don\*(Aqt run script on daemon quit +\& \-l Run script on startup even if no cable is detected +\& \-t SECS Poll time in seconds +\& \-u SECS Delay before running script after link up +\& \-d SECS Delay after link down +\& \-m MODE API mode (mii, priv, ethtool, wlan, iff, auto) +\& \-k Kill running daemon +.Ve +.IP "\fBifup\fR" 4 +.IX Item "ifup" +ifup [\-anmvf] [\-i \s-1FILE\s0] \s-1IFACE...\s0 +.Sp +.Vb 7 +\& \-a De/configure all interfaces automatically +\& \-i FILE Use FILE for interface definitions +\& \-n Print out what would happen, but don\*(Aqt do it +\& (note: doesn\*(Aqt disable mappings) +\& \-m Don\*(Aqt run any mappings +\& \-v Print out what would happen before doing it +\& \-f Force de/configuration +.Ve +.IP "\fBinetd\fR" 4 +.IX Item "inetd" +inetd [\-fe] [\-q N] [\-R N] [\s-1CONFFILE\s0] +.Sp +Listen for network connections and launch programs +.Sp +.Vb 5 +\& \-f Run in foreground +\& \-e Log to stderr +\& \-q N Socket listen queue (default: 128) +\& \-R N Pause services after N connects/min +\& (default: 0 \- disabled) +.Ve +.IP "\fBinit\fR" 4 +.IX Item "init" +init +.Sp +Init is the parent of all processes +.IP "\fBinsmod\fR" 4 +.IX Item "insmod" +insmod [\-qfwrsv] \s-1MODULE\s0 [symbol=value]... +.Sp +.Vb 6 +\& \-r Remove MODULE (stacks) or do autoclean +\& \-q Quiet +\& \-v Verbose +\& \-f Force +\& \-w Wait for unload +\& \-s Report via syslog instead of stderr +.Ve +.IP "\fBinstall\fR" 4 +.IX Item "install" +install [\-cdDsp] [\-o \s-1USER\s0] [\-g \s-1GRP\s0] [\-m \s-1MODE\s0] [\s-1SOURCE\s0]... \s-1DEST\s0 +.Sp +Copy files and set attributes +.Sp +.Vb 8 +\& \-c Just copy (default) +\& \-d Create directories +\& \-D Create leading target directories +\& \-s Strip symbol table +\& \-p Preserve date +\& \-o USER Set ownership +\& \-g GRP Set group ownership +\& \-m MODE Set permissions +.Ve +.IP "\fBionice\fR" 4 +.IX Item "ionice" +ionice [\-c 1\-3] [\-n 0\-7] [\-p \s-1PID\s0] [\s-1PROG\s0] +.Sp +Change I/O priority and class +.Sp +.Vb 2 +\& \-c Class. 1:realtime 2:best\-effort 3:idle +\& \-n Priority +.Ve +.IP "\fBiostat\fR" 4 +.IX Item "iostat" +iostat [\-c] [\-d] [\-t] [\-z] [\-k|\-m] [ALL|BLOCKDEV...] [\s-1INTERVAL\s0 [\s-1COUNT\s0]] +.Sp +Report \s-1CPU\s0 and I/O statistics +.Sp +.Vb 6 +\& \-c Show CPU utilization +\& \-d Show device utilization +\& \-t Print current time +\& \-z Omit devices with no activity +\& \-k Use kb/s +\& \-m Use Mb/s +.Ve +.IP "\fBip\fR" 4 +.IX Item "ip" +ip [\s-1OPTIONS\s0] {address | route | link | tunnel | rule} {\s-1COMMAND\s0} +.Sp +ip [\s-1OPTIONS\s0] \s-1OBJECT\s0 {\s-1COMMAND\s0} +where \s-1OBJECT\s0 := {address | route | link | tunnel | rule} +\&\s-1OPTIONS\s0 := { \-f[amily] { inet | inet6 | link } | \-o[neline] } +.IP "\fBipaddr\fR" 4 +.IX Item "ipaddr" +ipaddr { {add|del} \s-1IFADDR\s0 dev \s-1STRING\s0 | {show|flush} + [dev \s-1STRING\s0] [to \s-1PREFIX\s0] } +.Sp +ipaddr {add|delete} \s-1IFADDR\s0 dev \s-1STRING\s0 +ipaddr {show|flush} [dev \s-1STRING\s0] [scope \s-1SCOPE\-ID\s0] + [to \s-1PREFIX\s0] [label \s-1PATTERN\s0] + \s-1IFADDR\s0 := \s-1PREFIX\s0 | \s-1ADDR\s0 peer \s-1PREFIX\s0 + [broadcast \s-1ADDR\s0] [anycast \s-1ADDR\s0] + [label \s-1STRING\s0] [scope \s-1SCOPE\-ID\s0] + SCOPE-ID := [host | link | global | \s-1NUMBER\s0] +.IP "\fBipcalc\fR" 4 +.IX Item "ipcalc" +ipcalc [\s-1OPTIONS\s0] ADDRESS[[/]NETMASK] [\s-1NETMASK\s0] +.Sp +Calculate \s-1IP\s0 network settings from a \s-1IP\s0 address +.Sp +.Vb 6 +\& \-b,\-\-broadcast Display calculated broadcast address +\& \-n,\-\-network Display calculated network address +\& \-m,\-\-netmask Display default netmask for IP +\& \-p,\-\-prefix Display the prefix for IP/NETMASK +\& \-h,\-\-hostname Display first resolved host name +\& \-s,\-\-silent Don\*(Aqt ever display error messages +.Ve +.IP "\fBipcrm\fR" 4 +.IX Item "ipcrm" +ipcrm [\-MQS key] [\-mqs id] +.Sp +Upper-case options \s-1MQS\s0 remove an object by shmkey value. +Lower-case options remove an object by shmid value. +.Sp +.Vb 3 +\& \-mM Remove memory segment after last detach +\& \-qQ Remove message queue +\& \-sS Remove semaphore +.Ve +.IP "\fBipcs\fR" 4 +.IX Item "ipcs" +ipcs [[\-smq] \-i shmid] | [[\-asmq] [\-tcplu]] +.Sp +.Vb 2 +\& \-i Show specific resource +\&Resource specification: +\& +\& \-m Shared memory segments +\& \-q Message queues +\& \-s Semaphore arrays +\& \-a All (default) +\&Output format: +\& +\& \-t Time +\& \-c Creator +\& \-p Pid +\& \-l Limits +\& \-u Summary +.Ve +.IP "\fBiplink\fR" 4 +.IX Item "iplink" +iplink { set \s-1DEVICE\s0 { up | down | arp { on | off } | show [\s-1DEVICE\s0] } +.Sp +iplink set \s-1DEVICE\s0 { up | down | arp | multicast { on | off } | + dynamic { on | off } | + mtu \s-1MTU\s0 } +iplink show [\s-1DEVICE\s0] +.IP "\fBiproute\fR" 4 +.IX Item "iproute" +iproute { list | flush | add | del | change | append | + replace | test } \s-1ROUTE\s0 +.Sp +iproute { list | flush } \s-1SELECTOR\s0 +iproute get \s-1ADDRESS\s0 [from \s-1ADDRESS\s0 iif \s-1STRING\s0] + [oif \s-1STRING\s0] [tos \s-1TOS\s0] +iproute { add | del | change | append | replace | test } \s-1ROUTE\s0 + \s-1SELECTOR\s0 := [root \s-1PREFIX\s0] [match \s-1PREFIX\s0] [proto \s-1RTPROTO\s0] + \s-1ROUTE\s0 := [\s-1TYPE\s0] \s-1PREFIX\s0 [tos \s-1TOS\s0] [proto \s-1RTPROTO\s0] [metric \s-1METRIC\s0] +.IP "\fBiprule\fR" 4 +.IX Item "iprule" +iprule {[list | add | del] \s-1RULE\s0} +.Sp +iprule [list | add | del] \s-1SELECTOR ACTION\s0 + \s-1SELECTOR\s0 := [from \s-1PREFIX\s0] [to \s-1PREFIX\s0] [tos \s-1TOS\s0] [fwmark \s-1FWMARK\s0] + [dev \s-1STRING\s0] [pref \s-1NUMBER\s0] + \s-1ACTION\s0 := [table \s-1TABLE_ID\s0] [nat \s-1ADDRESS\s0] + [prohibit | reject | unreachable] + [realms [\s-1SRCREALM/\s0]DSTREALM] + \s-1TABLE_ID\s0 := [local | main | default | \s-1NUMBER\s0] +.IP "\fBiptunnel\fR" 4 +.IX Item "iptunnel" +iptunnel { add | change | del | show } [\s-1NAME\s0] + [mode { ipip | gre | sit }] + [remote \s-1ADDR\s0] [local \s-1ADDR\s0] [ttl \s-1TTL\s0] +.Sp +iptunnel { add | change | del | show } [\s-1NAME\s0] + [mode { ipip | gre | sit }] [remote \s-1ADDR\s0] [local \s-1ADDR\s0] + [[i|o]seq] [[i|o]key \s-1KEY\s0] [[i|o]csum] + [ttl \s-1TTL\s0] [tos \s-1TOS\s0] [[no]pmtudisc] [dev \s-1PHYS_DEV\s0] +.IP "\fBkbd_mode\fR" 4 +.IX Item "kbd_mode" +kbd_mode [\-a|k|s|u] [\-C \s-1TTY\s0] +.Sp +Report or set the keyboard mode +.Sp +.Vb 5 +\& \-a Default (ASCII) +\& \-k Medium\-raw (keyboard) +\& \-s Raw (scancode) +\& \-u Unicode (utf\-8) +\& \-C TTY Affect TTY instead of /dev/tty +.Ve +.IP "\fBkill\fR" 4 +.IX Item "kill" +kill [\-l] [\-SIG] \s-1PID...\s0 +.Sp +Send a signal (default: \s-1TERM\s0) to given PIDs +.Sp +.Vb 1 +\& \-l List all signal names and numbers +.Ve +.IP "\fBkillall\fR" 4 +.IX Item "killall" +killall [\-l] [\-q] [\-SIG] \s-1PROCESS_NAME...\s0 +.Sp +Send a signal (default: \s-1TERM\s0) to given processes +.Sp +.Vb 2 +\& \-l List all signal names and numbers +\& \-q Don\*(Aqt complain if no processes were killed +.Ve +.IP "\fBkillall5\fR" 4 +.IX Item "killall5" +killall5 [\-l] [\-SIG] [\-o \s-1PID\s0]... +.Sp +Send a signal (default: \s-1TERM\s0) to all processes outside current session +.Sp +.Vb 2 +\& \-l List all signal names and numbers +\& \-o PID Don\*(Aqt signal this PID +.Ve +.IP "\fBklogd\fR" 4 +.IX Item "klogd" +klogd [\-c N] [\-n] +.Sp +Kernel logger +.Sp +.Vb 2 +\& \-c N Print to console messages more urgent than prio N (1\-8) +\& \-n Run in foreground +.Ve +.IP "\fBlast\fR" 4 +.IX Item "last" +last [\-HW] [\-f \s-1FILE\s0] +.Sp +Show listing of the last users that logged into the system +.Sp +.Vb 2 +\& \-W Display with no host column truncation +\& \-f FILE Read from FILE instead of /var/log/wtmp +.Ve +.IP "\fBless\fR" 4 +.IX Item "less" +less [\-EMmNh~I?] [\s-1FILE\s0]... +.Sp +View \s-1FILE\s0 (or stdin) one screenful at a time +.Sp +.Vb 6 +\& \-E Quit once the end of a file is reached +\& \-M,\-m Display status line with line numbers +\& and percentage through the file +\& \-N Prefix line number to each line +\& \-I Ignore case in all searches +\& \-~ Suppress ~s displayed past EOF +.Ve +.IP "\fBln\fR" 4 +.IX Item "ln" +ln [\s-1OPTIONS\s0] \s-1TARGET...\s0 LINK|DIR +.Sp +Create a link \s-1LINK\s0 or \s-1DIR/TARGET\s0 to the specified \s-1TARGET\s0(s) +.Sp +.Vb 5 +\& \-s Make symlinks instead of hardlinks +\& \-f Remove existing destinations +\& \-n Don\*(Aqt dereference symlinks \- treat like normal file +\& \-b Make a backup of the target (if exists) before link operation +\& \-S suf Use suffix instead of ~ when making backup files +.Ve +.IP "\fBloadfont\fR" 4 +.IX Item "loadfont" +loadfont < font +.Sp +Load a console font from stdin +.IP "\fBloadkmap\fR" 4 +.IX Item "loadkmap" +loadkmap < keymap +.Sp +Load a binary keyboard translation table from stdin +.IP "\fBlogger\fR" 4 +.IX Item "logger" +logger [\s-1OPTIONS\s0] [\s-1MESSAGE\s0] +.Sp +Write \s-1MESSAGE\s0 (or stdin) to syslog +.Sp +.Vb 3 +\& \-s Log to stderr as well as the system log +\& \-t TAG Log using the specified tag (defaults to user name) +\& \-p PRIO Priority (numeric or facility.level pair) +.Ve +.IP "\fBlogin\fR" 4 +.IX Item "login" +login [\-p] [\-h \s-1HOST\s0] [[\-f] \s-1USER\s0] +.Sp +Begin a new session on the system +.Sp +.Vb 3 +\& \-f Don\*(Aqt authenticate (user already authenticated) +\& \-h Name of the remote host +\& \-p Preserve environment +.Ve +.IP "\fBlogname\fR" 4 +.IX Item "logname" +logname +.Sp +Print the name of the current user +.IP "\fBlogread\fR" 4 +.IX Item "logread" +logread [\-f] +.Sp +Show messages in syslogd's circular buffer +.Sp +.Vb 1 +\& \-f Output data as log grows +.Ve +.IP "\fBlosetup\fR" 4 +.IX Item "losetup" +losetup [\-r] [\-o \s-1OFS\s0] \s-1LOOPDEV FILE\s0 \- associate loop devices + losetup \-d \s-1LOOPDEV\s0 \- disassociate + losetup [\-f] \- show +.Sp +.Vb 3 +\& \-o OFS Start OFS bytes into FILE +\& \-r Read\-only +\& \-f Show first free loop device +.Ve +.IP "\fBlpd\fR" 4 +.IX Item "lpd" +lpd \s-1SPOOLDIR\s0 [\s-1HELPER\s0 [\s-1ARGS\s0]] +.Sp +\&\s-1SPOOLDIR\s0 must contain (symlinks to) device nodes or directories +with names matching print queue names. In the first case, jobs are +sent directly to the device. Otherwise each job is stored in queue +directory and \s-1HELPER\s0 program is called. Name of file to print +is passed in \f(CW$DATAFILE\fR variable. +Example: +.Sp +.Vb 1 +\& tcpsvd \-E 0 515 softlimit \-m 999999 lpd /var/spool ./print +.Ve +.IP "\fBlpq\fR" 4 +.IX Item "lpq" +lpq [\-P queue[@host[:port]]] [\-U \s-1USERNAME\s0] [\-d \s-1JOBID\s0]... [\-fs] +.Sp +.Vb 4 +\& \-P lp service to connect to (else uses $PRINTER) +\& \-d Delete jobs +\& \-f Force any waiting job to be printed +\& \-s Short display +.Ve +.IP "\fBlpr\fR" 4 +.IX Item "lpr" +lpr \-P queue[@host[:port]] \-U \s-1USERNAME\s0 \-J \s-1TITLE\s0 \-Vmh [\s-1FILE\s0]... +.Sp +.Vb 4 +\& \-P lp service to connect to (else uses $PRINTER) +\& \-m Send mail on completion +\& \-h Print banner page too +\& \-V Verbose +.Ve +.IP "\fBls\fR" 4 +.IX Item "ls" +ls [\-1AaCxdLHRFplinsehrSXvctu] [\-w \s-1WIDTH\s0] [\s-1FILE\s0]... +.Sp +List directory contents +.Sp +.Vb 10 +\& \-1 One column output +\& \-a Include entries which start with . +\& \-A Like \-a, but exclude . and .. +\& \-C List by columns +\& \-x List by lines +\& \-d List directory entries instead of contents +\& \-L Follow symlinks +\& \-H Follow symlinks on command line +\& \-R Recurse +\& \-p Append / to dir entries +\& \-F Append indicator (one of */=@|) to entries +\& \-l Long listing format +\& \-i List inode numbers +\& \-n List numeric UIDs and GIDs instead of names +\& \-s List allocated blocks +\& \-e List full date and time +\& \-h List sizes in human readable format (1K 243M 2G) +\& \-r Sort in reverse order +\& \-S Sort by size +\& \-X Sort by extension +\& \-v Sort by version +\& \-c With \-l: sort by ctime +\& \-t With \-l: sort by mtime +\& \-u With \-l: sort by atime +\& \-w N Assume the terminal is N columns wide +\& \-\-color[={always,never,auto}] Control coloring +.Ve +.IP "\fBlsattr\fR" 4 +.IX Item "lsattr" +lsattr [\-Radlv] [\s-1FILE\s0]... +.Sp +List file attributes on an ext2 fs +.Sp +.Vb 5 +\& \-R Recurse +\& \-a Don\*(Aqt hide entries starting with . +\& \-d List directory entries instead of contents +\& \-l List long flag names +\& \-v List the file\*(Aqs version/generation number +.Ve +.IP "\fBlsmod\fR" 4 +.IX Item "lsmod" +lsmod [\-qfwrsv] \s-1MODULE\s0 [symbol=value]... +.Sp +.Vb 6 +\& \-r Remove MODULE (stacks) or do autoclean +\& \-q Quiet +\& \-v Verbose +\& \-f Force +\& \-w Wait for unload +\& \-s Report via syslog instead of stderr +.Ve +.IP "\fBlsof\fR" 4 +.IX Item "lsof" +lsof +.Sp +Show all open files +.IP "\fBlspci\fR" 4 +.IX Item "lspci" +lspci [\-mk] +.Sp +List all \s-1PCI\s0 devices +.Sp +.Vb 2 +\& \-m Parsable output +\& \-k Show driver +.Ve +.IP "\fBlzcat\fR" 4 +.IX Item "lzcat" +lzcat \s-1FILE\s0 +.Sp +Decompress to stdout +.IP "\fBlzma\fR" 4 +.IX Item "lzma" +lzma \-d [\-cf] [\s-1FILE\s0]... +.Sp +Decompress \s-1FILE\s0 (or stdin) +.Sp +.Vb 3 +\& \-d Decompress +\& \-c Write to stdout +\& \-f Force +.Ve +.IP "\fBlzop\fR" 4 +.IX Item "lzop" +lzop [\-cfvd123456789CF] [\s-1FILE\s0]... +.Sp +.Vb 7 +\& \-1..9 Compression level +\& \-d Decompress +\& \-c Write to stdout +\& \-f Force +\& \-v Verbose +\& \-F Don\*(Aqt store or verify checksum +\& \-C Also write checksum of compressed block +.Ve +.IP "\fBlzopcat\fR" 4 +.IX Item "lzopcat" +lzopcat [\-vCF] [\s-1FILE\s0]... +.Sp +.Vb 2 +\& \-v Verbose +\& \-F Don\*(Aqt store or verify checksum +.Ve +.IP "\fBmakedevs\fR" 4 +.IX Item "makedevs" +makedevs [\-d device_table] rootdir +.Sp +Create a range of special files as specified in a device table. +Device table entries take the form of: +.Sp + +Where name is the file name, type can be one of: + f Regular file + d Directory + c Character device + b Block device + p Fifo (named pipe) +uid is the user id for the target file, gid is the group id for the +target file. The rest of the entries (major, minor, etc) apply to +to device special files. A '\-' may be used for blank entries. +.IP "\fBmakemime\fR" 4 +.IX Item "makemime" +makemime [\s-1OPTIONS\s0] [\s-1FILE\s0]... +.Sp +Create multipart MIME-encoded message from FILEs +.Sp +.Vb 5 +\& \-o FILE Output. Default: stdout +\& \-a HDR Add header(s). Examples: +\& "From: user@host.org", "Date: \`date \-R\`" +\& \-c CT Content type. Default: application/octet\-stream +\& \-C CS Charset. Default: us\-ascii +.Ve +.Sp +Other options are silently ignored +.IP "\fBman\fR" 4 +.IX Item "man" +man [\-aw] [\s-1MANPAGE\s0]... +.Sp +Format and display manual page +.Sp +.Vb 2 +\& \-a Display all pages +\& \-w Show page locations +.Ve +.IP "\fBmd5sum\fR" 4 +.IX Item "md5sum" +md5sum [\-c[sw]] [\s-1FILE\s0]... +.Sp +Print or check \s-1MD5\s0 checksums +.Sp +.Vb 3 +\& \-c Check sums against list in FILEs +\& \-s Don\*(Aqt output anything, status code shows success +\& \-w Warn about improperly formatted checksum lines +.Ve +.IP "\fBmdev\fR" 4 +.IX Item "mdev" +mdev [\-s] +.Sp +mdev \-s is to be run during boot to scan /sys and populate /dev. +.Sp +Bare mdev is a kernel hotplug helper. To activate it: + echo /sbin/mdev >/proc/sys/kernel/hotplug +.Sp +It uses /etc/mdev.conf with lines + [\-]DEVNAME \s-1UID:GID PERM\s0 [>|=PATH]|[!] [@|$|*PROG] +where \s-1DEVNAME\s0 is device name regex, \f(CW@major\fR,minor[\-minor2], or +environment variable regex. A common use of the latter is +to load modules for hotplugged devices: +.Sp +.Vb 1 +\& $MODALIAS=.* 0:0 660 @modprobe "$MODALIAS" +.Ve +.Sp +If /dev/mdev.seq file exists, mdev will wait for its value +to match \f(CW$SEQNUM\fR variable. This prevents plug/unplug races. +To activate this feature, create empty /dev/mdev.seq at boot. +.IP "\fBmesg\fR" 4 +.IX Item "mesg" +mesg [y|n] +.Sp +Control write access to your terminal + y Allow write access to your terminal + n Disallow write access to your terminal +.IP "\fBmicrocom\fR" 4 +.IX Item "microcom" +microcom [\-d \s-1DELAY\s0] [\-t \s-1TIMEOUT\s0] [\-s \s-1SPEED\s0] [\-X] \s-1TTY\s0 +.Sp +Copy bytes for stdin to \s-1TTY\s0 and from \s-1TTY\s0 to stdout +.Sp +.Vb 5 +\& \-d Wait up to DELAY ms for TTY output before sending every +\& next byte to it +\& \-t Exit if both stdin and TTY are silent for TIMEOUT ms +\& \-s Set serial line to SPEED +\& \-X Disable special meaning of NUL and Ctrl\-X from stdin +.Ve +.IP "\fBmkdir\fR" 4 +.IX Item "mkdir" +mkdir [\s-1OPTIONS\s0] \s-1DIRECTORY...\s0 +.Sp +Create \s-1DIRECTORY\s0 +.Sp +.Vb 2 +\& \-m MODE Mode +\& \-p No error if exists; make parent directories as needed +.Ve +.IP "\fBmkdosfs\fR" 4 +.IX Item "mkdosfs" +mkdosfs [\-v] [\-n \s-1LABEL\s0] \s-1BLOCKDEV\s0 [\s-1KBYTES\s0] +.Sp +Make a \s-1FAT32\s0 filesystem +.Sp +.Vb 2 +\& \-v Verbose +\& \-n LBL Volume label +.Ve +.IP "\fBmke2fs\fR" 4 +.IX Item "mke2fs" +mke2fs [\-Fn] [\-b \s-1BLK_SIZE\s0] [\-i \s-1INODE_RATIO\s0] [\-I \s-1INODE_SIZE\s0] [\-m \s-1RESERVED_PERCENT\s0] [\-L \s-1LABEL\s0] \s-1BLOCKDEV\s0 [\s-1KBYTES\s0] +.Sp +.Vb 7 +\& \-b BLK_SIZE Block size, bytes +\& \-F Force +\& \-i RATIO Max number of files is filesystem_size / RATIO +\& \-I BYTES Inode size (min 128) +\& \-L LBL Volume label +\& \-m PERCENT Percent of blocks to reserve for admin +\& \-n Dry run +.Ve +.IP "\fBmkfifo\fR" 4 +.IX Item "mkfifo" +mkfifo [\-m \s-1MODE\s0] \s-1NAME\s0 +.Sp +Create named pipe +.Sp +.Vb 1 +\& \-m MODE Mode (default a=rw) +.Ve +.IP "\fBmkfs.ext2\fR" 4 +.IX Item "mkfs.ext2" +mkfs.ext2 [\-Fn] [\-b \s-1BLK_SIZE\s0] [\-i \s-1INODE_RATIO\s0] [\-I \s-1INODE_SIZE\s0] [\-m \s-1RESERVED_PERCENT\s0] [\-L \s-1LABEL\s0] \s-1BLOCKDEV\s0 [\s-1KBYTES\s0] +.Sp +.Vb 7 +\& \-b BLK_SIZE Block size, bytes +\& \-F Force +\& \-i RATIO Max number of files is filesystem_size / RATIO +\& \-I BYTES Inode size (min 128) +\& \-L LBL Volume label +\& \-m PERCENT Percent of blocks to reserve for admin +\& \-n Dry run +.Ve +.IP "\fBmkfs.minix\fR" 4 +.IX Item "mkfs.minix" +mkfs.minix [\-c | \-l \s-1FILE\s0] [\-nXX] [\-iXX] \s-1BLOCKDEV\s0 [\s-1KBYTES\s0] +.Sp +Make a \s-1MINIX\s0 filesystem +.Sp +.Vb 5 +\& \-c Check device for bad blocks +\& \-n [14|30] Maximum length of filenames +\& \-i INODES Number of inodes for the filesystem +\& \-l FILE Read bad blocks list from FILE +\& \-v Make version 2 filesystem +.Ve +.IP "\fBmkfs.vfat\fR" 4 +.IX Item "mkfs.vfat" +mkfs.vfat [\-v] [\-n \s-1LABEL\s0] \s-1BLOCKDEV\s0 [\s-1KBYTES\s0] +.Sp +Make a \s-1FAT32\s0 filesystem +.Sp +.Vb 2 +\& \-v Verbose +\& \-n LBL Volume label +.Ve +.IP "\fBmknod\fR" 4 +.IX Item "mknod" +mknod [\-m \s-1MODE\s0] \s-1NAME TYPE MAJOR MINOR\s0 +.Sp +Create a special file (block, character, or pipe) +.Sp +.Vb 5 +\& \-m MODE Creation mode (default a=rw) +\&TYPE: +\& b Block device +\& c or u Character device +\& p Named pipe (MAJOR and MINOR are ignored) +.Ve +.IP "\fBmkpasswd\fR" 4 +.IX Item "mkpasswd" +mkpasswd [\s-1OPTIONS\s0] [\s-1PASSWORD\s0] [\s-1SALT\s0] +.Sp +Crypt \s-1PASSWORD\s0 using \fIcrypt\fR\|(3) +.Sp +.Vb 3 +\& \-P,\-\-password\-fd=N Read password from fd N +\& \-m,\-\-method=TYPE Encryption method +\& \-S,\-\-salt=SALT +.Ve +.IP "\fBmkswap\fR" 4 +.IX Item "mkswap" +mkswap [\-L \s-1LBL\s0] \s-1BLOCKDEV\s0 [\s-1KBYTES\s0] +.Sp +Prepare \s-1BLOCKDEV\s0 to be used as swap partition +.Sp +.Vb 1 +\& \-L LBL Label +.Ve +.IP "\fBmktemp\fR" 4 +.IX Item "mktemp" +mktemp [\-dt] [\-p \s-1DIR\s0] [\s-1TEMPLATE\s0] +.Sp +Create a temporary file with name based on \s-1TEMPLATE\s0 and print its name. +\&\s-1TEMPLATE\s0 must end with \s-1XXXXXX\s0 (e.g. [/dir/]nameXXXXXX). +Without \s-1TEMPLATE,\s0 \-t tmp.XXXXXX is assumed. +.Sp +.Vb 4 +\& \-d Make directory, not file +\& \-t Prepend base directory name to TEMPLATE +\& \-p DIR Use DIR as a base directory (implies \-t) +\& \-u Do not create anything; print a name +.Ve +.Sp +Base directory is: \-p \s-1DIR,\s0 else \f(CW$TMPDIR\fR, else /tmp +.IP "\fBmodinfo\fR" 4 +.IX Item "modinfo" +modinfo [\-adlp0] [\-F keyword] \s-1MODULE\s0 +.Sp +.Vb 6 +\& \-a Shortcut for \*(Aq\-F author\*(Aq +\& \-d Shortcut for \*(Aq\-F description\*(Aq +\& \-l Shortcut for \*(Aq\-F license\*(Aq +\& \-p Shortcut for \*(Aq\-F parm\*(Aq +\& \-F keyword Keyword to look for +\& \-0 Separate output with NULs +.Ve +.IP "\fBmodprobe\fR" 4 +.IX Item "modprobe" +modprobe [\-qfwrsv] \s-1MODULE\s0 [symbol=value]... +.Sp +.Vb 6 +\& \-r Remove MODULE (stacks) or do autoclean +\& \-q Quiet +\& \-v Verbose +\& \-f Force +\& \-w Wait for unload +\& \-s Report via syslog instead of stderr +.Ve +.IP "\fBmore\fR" 4 +.IX Item "more" +more [\s-1FILE\s0]... +.Sp +View \s-1FILE\s0 (or stdin) one screenful at a time +.IP "\fBmount\fR" 4 +.IX Item "mount" +mount [\s-1OPTIONS\s0] [\-o \s-1OPTS\s0] \s-1DEVICE NODE\s0 +.Sp +Mount a filesystem. Filesystem autodetection requires /proc. +.Sp +.Vb 10 +\& \-a Mount all filesystems in fstab +\& \-f Dry run +\& \-r Read\-only mount +\& \-w Read\-write mount (default) +\& \-t FSTYPE[,...] Filesystem type(s) +\& \-O OPT Mount only filesystems with option OPT (\-a only) +\&\-o OPT: +\& loop Ignored (loop devices are autodetected) +\& [a]sync Writes are [a]synchronous +\& [no]atime Disable/enable updates to inode access times +\& [no]diratime Disable/enable atime updates to directories +\& [no]relatime Disable/enable atime updates relative to modification time +\& [no]dev (Dis)allow use of special device files +\& [no]exec (Dis)allow use of executable files +\& [no]suid (Dis)allow set\-user\-id\-root programs +\& [r]shared Convert [recursively] to a shared subtree +\& [r]slave Convert [recursively] to a slave subtree +\& [r]private Convert [recursively] to a private subtree +\& [un]bindable Make mount point [un]able to be bind mounted +\& [r]bind Bind a file or directory [recursively] to another location +\& move Relocate an existing mount point +\& remount Remount a mounted filesystem, changing flags +\& ro/rw Same as \-r/\-w +.Ve +.Sp +There are filesystem-specific \-o flags. +.IP "\fBmountpoint\fR" 4 +.IX Item "mountpoint" +mountpoint [\-q] <[\-dn] \s-1DIR\s0 | \-x \s-1DEVICE\s0> +.Sp +Check if the directory is a mountpoint +.Sp +.Vb 4 +\& \-q Quiet +\& \-d Print major/minor device number of the filesystem +\& \-n Print device name of the filesystem +\& \-x Print major/minor device number of the blockdevice +.Ve +.IP "\fBmpstat\fR" 4 +.IX Item "mpstat" +mpstat [\-A] [\-I SUM|CPU|ALL|SCPU] [\-u] [\-P num|ALL] [\s-1INTERVAL\s0 [\s-1COUNT\s0]] +.Sp +Per-processor statistics +.Sp +.Vb 4 +\& \-A Same as \-I ALL \-u \-P ALL +\& \-I SUM|CPU|ALL|SCPU Report interrupt statistics +\& \-P num|ALL Processor to monitor +\& \-u Report CPU utilization +.Ve +.IP "\fBmt\fR" 4 +.IX Item "mt" +mt [\-f device] opcode value +.Sp +Control magnetic tape drive operation +.Sp +Available Opcodes: +.Sp +bsf bsfm bsr bss datacompression drvbuffer eof eom erase +fsf fsfm fsr fss load lock mkpart nop offline ras1 ras2 +ras3 reset retension rewind rewoffline seek setblk setdensity +setpart tell unload unlock weof wset +.IP "\fBmv\fR" 4 +.IX Item "mv" +mv [\-fin] \s-1SOURCE DEST\s0 +or: mv [\-fin] \s-1SOURCE... DIRECTORY\s0 +.Sp +Rename \s-1SOURCE\s0 to \s-1DEST,\s0 or move \s-1SOURCE\s0(s) to \s-1DIRECTORY\s0 +.Sp +.Vb 3 +\& \-f Don\*(Aqt prompt before overwriting +\& \-i Interactive, prompt before overwrite +\& \-n Don\*(Aqt overwrite an existing file +.Ve +.IP "\fBnameif\fR" 4 +.IX Item "nameif" +nameif [\-s] [\-c \s-1FILE\s0] [\s-1IFNAME SELECTOR\s0]... +.Sp +Rename network interface while it in the down state. +The device matched by \s-1SELECTOR\s0 is renamed to \s-1IFACE. +SELECTOR\s0 can be a combination of: +.Sp +.Vb 4 +\& driver=STRING +\& bus=STRING +\& phy_address=NUM +\& [mac=]XX:XX:XX:XX:XX:XX +\& +\& \-c FILE Configuration file (default: /etc/mactab) +\& \-s Log to syslog +.Ve +.IP "\fBnanddump\fR" 4 +.IX Item "nanddump" +nanddump [\-o] [\-b] [\-s \s-1ADDR\s0] [\-f \s-1FILE\s0] \s-1MTD_DEVICE\s0 +.Sp +Dump the specified \s-1MTD\s0 device +.Sp +.Vb 5 +\& \-o Omit oob data +\& \-b Omit bad block from the dump +\& \-s ADDR Start address +\& \-l LEN Length +\& \-f FILE Dump to file (\*(Aq\-\*(Aq for stdout) +.Ve +.IP "\fBnandwrite\fR" 4 +.IX Item "nandwrite" +nandwrite [\-p] [\-s \s-1ADDR\s0] \s-1MTD_DEVICE\s0 [\s-1FILE\s0] +.Sp +Write to the specified \s-1MTD\s0 device +.Sp +.Vb 2 +\& \-p Pad to page size +\& \-s ADDR Start address +.Ve +.IP "\fBnbd-client\fR" 4 +.IX Item "nbd-client" +nbd-client \s-1HOST PORT BLOCKDEV\s0 +.Sp +Connect to \s-1HOST\s0 and provide a network block device on \s-1BLOCKDEV\s0 +.IP "\fBnc\fR" 4 +.IX Item "nc" +nc [\-iN] [\-wN] [\-l] [\-p \s-1PORT\s0] [\-f FILE|IPADDR \s-1PORT\s0] [\-e \s-1PROG\s0] +.Sp +Open a pipe to \s-1IP:PORT\s0 or \s-1FILE\s0 +.Sp +.Vb 7 +\& \-e PROG Run PROG after connect +\& \-l Listen mode, for inbound connects +\& (use \-l twice with \-e for persistent server) +\& \-p PORT Local port +\& \-w SEC Timeout for connect +\& \-i SEC Delay interval for lines sent +\& \-f FILE Use file (ala /dev/ttyS0) instead of network +.Ve +.IP "\fBnetstat\fR" 4 +.IX Item "netstat" +netstat [\-ral] [\-tuwx] [\-enWp] +.Sp +Display networking information +.Sp +.Vb 10 +\& \-r Routing table +\& \-a All sockets +\& \-l Listening sockets +\& Else: connected sockets +\& \-t TCP sockets +\& \-u UDP sockets +\& \-w Raw sockets +\& \-x Unix sockets +\& Else: all socket types +\& \-e Other/more information +\& \-n Don\*(Aqt resolve names +\& \-W Wide display +\& \-p Show PID/program name for sockets +.Ve +.IP "\fBnice\fR" 4 +.IX Item "nice" +nice [\-n \s-1ADJUST\s0] [\s-1PROG ARGS\s0] +.Sp +Change scheduling priority, run \s-1PROG\s0 +.Sp +.Vb 1 +\& \-n ADJUST Adjust priority by ADJUST +.Ve +.IP "\fBnmeter\fR" 4 +.IX Item "nmeter" +nmeter [\-d \s-1MSEC\s0] \s-1FORMAT_STRING\s0 +.Sp +Monitor system in real time +.Sp +.Vb 1 +\& \-d MSEC Milliseconds between updates (default:1000) +.Ve +.Sp +Format specifiers: +.Sp +.Vb 10 +\& %Nc or %[cN] CPU. N \- bar size (default:10) +\& (displays: S:system U:user N:niced D:iowait I:irq i:softirq) +\& %[nINTERFACE] Network INTERFACE +\& %m Allocated memory +\& %[mf] Free memory +\& %[mt] Total memory +\& %s Allocated swap +\& %f Number of used file descriptors +\& %Ni Total/specific IRQ rate +\& %x Context switch rate +\& %p Forks +\& %[pn] # of processes +\& %b Block io +\& %Nt Time (with N decimal points) +\& %r Print instead of at EOL +.Ve +.IP "\fBnohup\fR" 4 +.IX Item "nohup" +nohup \s-1PROG ARGS\s0 +.Sp +Run \s-1PROG\s0 immune to hangups, with output to a non-tty +.IP "\fBnslookup\fR" 4 +.IX Item "nslookup" +nslookup [\s-1HOST\s0] [\s-1SERVER\s0] +.Sp +Query the nameserver for the \s-1IP\s0 address of the given \s-1HOST\s0 +optionally using a specified \s-1DNS\s0 server +.IP "\fBntpd\fR" 4 +.IX Item "ntpd" +ntpd [\-dnqNwl] [\-S \s-1PROG\s0] [\-p \s-1PEER\s0]... +.Sp +\&\s-1NTP\s0 client/server +.Sp +.Vb 8 +\& \-d Verbose +\& \-n Do not daemonize +\& \-q Quit after clock is set +\& \-N Run at high priority +\& \-w Do not set time (only query peers), implies \-n +\& \-l Run as server on port 123 +\& \-S PROG Run PROG after stepping time, stratum change, and every 11 mins +\& \-p PEER Obtain time from PEER (may be repeated) +.Ve +.IP "\fBod\fR" 4 +.IX Item "od" +od [\-abcdfhilovxs] [\-t \s-1TYPE\s0] [\-A \s-1RADIX\s0] [\-N \s-1SIZE\s0] [\-j \s-1SKIP\s0] [\-S \s-1MINSTR\s0] [\-w \s-1WIDTH\s0] [\s-1FILE...\s0] +.Sp +Print FILEs (or stdin) unambiguously, as octal bytes by default +.IP "\fBopenvt\fR" 4 +.IX Item "openvt" +openvt [\-c N] [\-sw] [\s-1PROG ARGS\s0] +.Sp +Start \s-1PROG\s0 on a new virtual terminal +.Sp +.Vb 3 +\& \-c N Use specified VT +\& \-s Switch to the VT +\& \-w Wait for PROG to exit +.Ve +.IP "\fBpasswd\fR" 4 +.IX Item "passwd" +passwd [\s-1OPTIONS\s0] [\s-1USER\s0] +.Sp +Change \s-1USER\s0's password (default: current user) +.Sp +.Vb 4 +\& \-a ALG Encryption method +\& \-d Set password to \*(Aq\*(Aq +\& \-l Lock (disable) account +\& \-u Unlock (enable) account +.Ve +.IP "\fBpatch\fR" 4 +.IX Item "patch" +patch [\s-1OPTIONS\s0] [\s-1ORIGFILE\s0 [\s-1PATCHFILE\s0]] +.Sp +.Vb 5 +\& \-p,\-\-strip N Strip N leading components from file names +\& \-i,\-\-input DIFF Read DIFF instead of stdin +\& \-R,\-\-reverse Reverse patch +\& \-N,\-\-forward Ignore already applied patches +\& \-E,\-\-remove\-empty\-files Remove output files if they become empty +.Ve +.IP "\fBpgrep\fR" 4 +.IX Item "pgrep" +pgrep [\-flnovx] [\-s SID|\-P PPID|PATTERN] +.Sp +Display process(es) selected by regex \s-1PATTERN\s0 +.Sp +.Vb 8 +\& \-l Show command name too +\& \-f Match against entire command line +\& \-n Show the newest process only +\& \-o Show the oldest process only +\& \-v Negate the match +\& \-x Match whole name (not substring) +\& \-s Match session ID (0 for current) +\& \-P Match parent process ID +.Ve +.IP "\fBpidof\fR" 4 +.IX Item "pidof" +pidof [\s-1OPTIONS\s0] [\s-1NAME\s0]... +.Sp +List PIDs of all processes with names that match NAMEs +.Sp +.Vb 3 +\& \-s Show only one PID +\& \-o PID Omit given pid +\& Use %PPID to omit pid of pidof\*(Aqs parent +.Ve +.IP "\fBping\fR" 4 +.IX Item "ping" +ping [\s-1OPTIONS\s0] \s-1HOST\s0 +.Sp +Send \s-1ICMP ECHO_REQUEST\s0 packets to network hosts +.Sp +.Vb 11 +\& \-4,\-6 Force IP or IPv6 name resolution +\& \-c CNT Send only CNT pings +\& \-s SIZE Send SIZE data bytes in packets (default:56) +\& \-t TTL Set TTL +\& \-I IFACE/IP Use interface or IP address as source +\& \-W SEC Seconds to wait for the first response (default:10) +\& (after all \-c CNT packets are sent) +\& \-w SEC Seconds until ping exits (default:infinite) +\& (can exit earlier with \-c CNT) +\& \-q Quiet, only displays output at start +\& and when finished +.Ve +.IP "\fBping6\fR" 4 +.IX Item "ping6" +ping6 [\s-1OPTIONS\s0] \s-1HOST\s0 +.Sp +Send \s-1ICMP ECHO_REQUEST\s0 packets to network hosts +.Sp +.Vb 5 +\& \-c CNT Send only CNT pings +\& \-s SIZE Send SIZE data bytes in packets (default:56) +\& \-I IFACE/IP Use interface or IP address as source +\& \-q Quiet, only displays output at start +\& and when finished +.Ve +.IP "\fBpivot_root\fR" 4 +.IX Item "pivot_root" +pivot_root \s-1NEW_ROOT PUT_OLD\s0 +.Sp +Move the current root file system to \s-1PUT_OLD\s0 and make \s-1NEW_ROOT\s0 +the new root file system +.IP "\fBpkill\fR" 4 +.IX Item "pkill" +pkill [\-l|\-SIGNAL] [\-fnovx] [\-s SID|\-P PPID|PATTERN] +.Sp +Send a signal to process(es) selected by regex \s-1PATTERN\s0 +.Sp +.Vb 8 +\& \-l List all signals +\& \-f Match against entire command line +\& \-n Signal the newest process only +\& \-o Signal the oldest process only +\& \-v Negate the match +\& \-x Match whole name (not substring) +\& \-s Match session ID (0 for current) +\& \-P Match parent process ID +.Ve +.IP "\fBpmap\fR" 4 +.IX Item "pmap" +pmap [\-xq] \s-1PID\s0 +.Sp +Display detailed process memory usage +.Sp +.Vb 2 +\& \-x Show details +\& \-q Quiet +.Ve +.IP "\fBpopmaildir\fR" 4 +.IX Item "popmaildir" +popmaildir [\s-1OPTIONS\s0] \s-1MAILDIR\s0 [\s-1CONN_HELPER ARGS\s0] +.Sp +Fetch content of remote mailbox to local maildir +.Sp +.Vb 6 +\& \-s Skip authorization +\& \-T Get messages with TOP instead of RETR +\& \-k Keep retrieved messages on the server +\& \-t SEC Network timeout +\& \-F "PROG ARGS" Filter program (may be repeated) +\& \-M "PROG ARGS" Delivery program +.Ve +.Sp +Fetch from plain \s-1POP3\s0 server: +popmaildir \-k \s-1DIR\s0 nc pop3.server.com 110 after signal is processed +.Ve +.IP "\fBrx\fR" 4 +.IX Item "rx" +rx \s-1FILE\s0 +.Sp +Receive a file using the xmodem protocol +.IP "\fBscript\fR" 4 +.IX Item "script" +script [\-afqt] [\-c \s-1PROG\s0] [\s-1OUTFILE\s0] +.Sp +.Vb 5 +\& \-a Append output +\& \-c PROG Run PROG, not shell +\& \-f Flush output after each write +\& \-q Quiet +\& \-t Send timing to stderr +.Ve +.IP "\fBscriptreplay\fR" 4 +.IX Item "scriptreplay" +scriptreplay timingfile [typescript [divisor]] +.Sp +Play back typescripts, using timing information +.IP "\fBsed\fR" 4 +.IX Item "sed" +sed [\-inr] [\-f \s-1FILE\s0]... [\-e \s-1CMD\s0]... [\s-1FILE\s0]... +or: sed [\-inr] \s-1CMD\s0 [\s-1FILE\s0]... +.Sp +.Vb 5 +\& \-e CMD Add CMD to sed commands to be executed +\& \-f FILE Add FILE contents to sed commands to be executed +\& \-i Edit files in\-place (else sends result to stdout) +\& \-n Suppress automatic printing of pattern space +\& \-r Use extended regex syntax +.Ve +.Sp +If no \-e or \-f, the first non-option argument is the sed command string. +Remaining arguments are input files (stdin if none). +.IP "\fBsendmail\fR" 4 +.IX Item "sendmail" +sendmail [\s-1OPTIONS\s0] [\s-1RECIPIENT_EMAIL\s0]... +.Sp +Read email from stdin and send it +.Sp +Standard options: +.Sp +.Vb 4 +\& \-t Read additional recipients from message body +\& \-f SENDER Sender (required) +\& \-o OPTIONS Various options. \-oi implied, others are ignored +\& \-i \-oi synonym. implied and ignored +.Ve +.Sp +Busybox specific options: +.Sp +.Vb 10 +\& \-v Verbose +\& \-w SECS Network timeout +\& \-H \*(AqPROG ARGS\*(Aq Run connection helper +\& Examples: +\& \-H \*(Aqexec openssl s_client \-quiet \-tls1 \-starttls smtp +\& \-connect smtp.gmail.com:25\*(Aq \s-1SMEMDATA.TAR\s0 +.Sp +Collect memory usage data in /proc and write it to stdout +.IP "\fBsoftlimit\fR" 4 +.IX Item "softlimit" +softlimit [\-a \s-1BYTES\s0] [\-m \s-1BYTES\s0] [\-d \s-1BYTES\s0] [\-s \s-1BYTES\s0] [\-l \s-1BYTES\s0] + [\-f \s-1BYTES\s0] [\-c \s-1BYTES\s0] [\-r \s-1BYTES\s0] [\-o N] [\-p N] [\-t N] + \s-1PROG ARGS\s0 +.Sp +Set soft resource limits, then run \s-1PROG\s0 +.Sp +.Vb 8 +\& \-a BYTES Limit total size of all segments +\& \-m BYTES Same as \-d BYTES \-s BYTES \-l BYTES \-a BYTES +\& \-d BYTES Limit data segment +\& \-s BYTES Limit stack segment +\& \-l BYTES Limit locked memory size +\& \-o N Limit number of open files per process +\& \-p N Limit number of processes per uid +\&Options controlling file sizes: +\& +\& \-f BYTES Limit output file sizes +\& \-c BYTES Limit core file size +\&Efficiency opts: +\& +\& \-r BYTES Limit resident set size +\& \-t N Limit CPU time, process receives +\& a SIGXCPU after N seconds +.Ve +.IP "\fBsort\fR" 4 +.IX Item "sort" +sort [\-nrugMcszbdfimSTokt] [\-o \s-1FILE\s0] [\-k start[.offset][opts][,end[.offset][opts]] [\-t \s-1CHAR\s0] [\s-1FILE\s0]... +.Sp +Sort lines of text +.Sp +.Vb 10 +\& \-b Ignore leading blanks +\& \-c Check whether input is sorted +\& \-d Dictionary order (blank or alphanumeric only) +\& \-f Ignore case +\& \-g General numerical sort +\& \-i Ignore unprintable characters +\& \-k Sort key +\& \-M Sort month +\& \-n Sort numbers +\& \-o Output to file +\& \-k Sort by key +\& \-t CHAR Key separator +\& \-r Reverse sort order +\& \-s Stable (don\*(Aqt sort ties alphabetically) +\& \-u Suppress duplicate lines +\& \-z Lines are terminated by NUL, not newline +\& \-mST Ignored for GNU compatibility +.Ve +.IP "\fBsplit\fR" 4 +.IX Item "split" +split [\s-1OPTIONS\s0] [\s-1INPUT\s0 [\s-1PREFIX\s0]] +.Sp +.Vb 3 +\& \-b N[k|m] Split by N (kilo|mega)bytes +\& \-l N Split by N lines +\& \-a N Use N letters as suffix +.Ve +.IP "\fBstart-stop-daemon\fR" 4 +.IX Item "start-stop-daemon" +start-stop-daemon [\s-1OPTIONS\s0] [\-S|\-K] ... [\-\- \s-1ARGS...\s0] +.Sp +Search for matching processes, and then +\&\-K: stop all matching processes. +\&\-S: start a process unless a matching process is found. +.Sp +Process matching: +.Sp +.Vb 10 +\& \-u,\-\-user USERNAME|UID Match only this user\*(Aqs processes +\& \-n,\-\-name NAME Match processes with NAME +\& in comm field in /proc/PID/stat +\& \-x,\-\-exec EXECUTABLE Match processes with this command +\& in /proc/PID/{exe,cmdline} +\& \-p,\-\-pidfile FILE Match a process with PID from the file +\& All specified conditions must match +\&\-S only: +\& \-x,\-\-exec EXECUTABLE Program to run +\& \-a,\-\-startas NAME Zeroth argument +\& \-b,\-\-background Background +\& \-N,\-\-nicelevel N Change nice level +\& \-c,\-\-chuid USER[:[GRP]] Change to user/group +\& \-m,\-\-make\-pidfile Write PID to the pidfile specified by \-p +\&\-K only: +\& \-s,\-\-signal SIG Signal to send +\& \-t,\-\-test Match only, exit with 0 if a process is found +\&Other: +\& +\& \-o,\-\-oknodo Exit with status 0 if nothing is done +\& \-v,\-\-verbose Verbose +\& \-q,\-\-quiet Quiet +.Ve +.IP "\fBstat\fR" 4 +.IX Item "stat" +stat [\s-1OPTIONS\s0] \s-1FILE...\s0 +.Sp +Display file (default) or filesystem status +.Sp +.Vb 4 +\& \-c fmt Use the specified format +\& \-f Display filesystem status +\& \-L Follow links +\& \-t Display info in terse form +.Ve +.Sp +Valid format sequences for files: +.Sp +.Vb 10 +\& %a Access rights in octal +\& %A Access rights in human readable form +\& %b Number of blocks allocated (see %B) +\& %B The size in bytes of each block reported by %b +\& %d Device number in decimal +\& %D Device number in hex +\& %f Raw mode in hex +\& %F File type +\& %g Group ID of owner +\& %G Group name of owner +\& %h Number of hard links +\& %i Inode number +\& %n File name +\& %N File name, with \-> TARGET if symlink +\& %o I/O block size +\& %s Total size, in bytes +\& %t Major device type in hex +\& %T Minor device type in hex +\& %u User ID of owner +\& %U User name of owner +\& %x Time of last access +\& %X Time of last access as seconds since Epoch +\& %y Time of last modification +\& %Y Time of last modification as seconds since Epoch +\& %z Time of last change +\& %Z Time of last change as seconds since Epoch +.Ve +.Sp +Valid format sequences for file systems: +.Sp +.Vb 12 +\& %a Free blocks available to non\-superuser +\& %b Total data blocks in file system +\& %c Total file nodes in file system +\& %d Free file nodes in file system +\& %f Free blocks in file system +\& %i File System ID in hex +\& %l Maximum length of filenames +\& %n File name +\& %s Block size (for faster transfer) +\& %S Fundamental block size (for block counts) +\& %t Type in hex +\& %T Type in human readable form +.Ve +.IP "\fBstrings\fR" 4 +.IX Item "strings" +strings [\-afo] [\-n \s-1LEN\s0] [\s-1FILE\s0]... +.Sp +Display printable strings in a binary file +.Sp +.Vb 4 +\& \-a Scan whole file (default) +\& \-f Precede strings with filenames +\& \-n LEN At least LEN characters form a string (default 4) +\& \-o Precede strings with decimal offsets +.Ve +.IP "\fBstty\fR" 4 +.IX Item "stty" +stty [\-a|g] [\-F \s-1DEVICE\s0] [\s-1SETTING\s0]... +.Sp +Without arguments, prints baud rate, line discipline, +and deviations from stty sane +.Sp +.Vb 4 +\& \-F DEVICE Open device instead of stdin +\& \-a Print all current settings in human\-readable form +\& \-g Print in stty\-readable form +\& [SETTING] See manpage +.Ve +.IP "\fBsu\fR" 4 +.IX Item "su" +su [\s-1OPTIONS\s0] [\-] [\s-1USER\s0] +.Sp +Run shell under \s-1USER\s0 (by default, root) +.Sp +.Vb 4 +\& \-,\-l Clear environment, run shell as login shell +\& \-p,\-m Do not set new $HOME, $SHELL, $USER, $LOGNAME +\& \-c CMD Command to pass to \*(Aqsh \-c\*(Aq +\& \-s SH Shell to use instead of user\*(Aqs default +.Ve +.IP "\fBsulogin\fR" 4 +.IX Item "sulogin" +sulogin [\-t N] [\s-1TTY\s0] +.Sp +Single user login +.Sp +.Vb 1 +\& \-t N Timeout +.Ve +.IP "\fBsum\fR" 4 +.IX Item "sum" +sum [\-rs] [\s-1FILE\s0]... +.Sp +Checksum and count the blocks in a file +.Sp +.Vb 2 +\& \-r Use BSD sum algorithm (1K blocks) +\& \-s Use System V sum algorithm (512byte blocks) +.Ve +.IP "\fBsv\fR" 4 +.IX Item "sv" +sv [\-v] [\-w \s-1SEC\s0] \s-1CMD SERVICE_DIR...\s0 +.Sp +Control services monitored by runsv supervisor. +Commands (only first character is enough): +.Sp +status: query service status +up: if service isn't running, start it. If service stops, restart it +once: like 'up', but if service stops, don't restart it +down: send \s-1TERM\s0 and \s-1CONT\s0 signals. If ./run exits, start ./finish + if it exists. After it stops, don't restart service +exit: send \s-1TERM\s0 and \s-1CONT\s0 signals to service and log service. If they exit, + runsv exits too +pause, cont, hup, alarm, interrupt, quit, 1, 2, term, kill: send +\&\s-1STOP, CONT, HUP, ALRM, INT, QUIT, USR1, USR2, TERM, KILL\s0 signal to service +.IP "\fBsvlogd\fR" 4 +.IX Item "svlogd" +svlogd [\-ttv] [\-r C] [\-R \s-1CHARS\s0] [\-l \s-1MATCHLEN\s0] [\-b \s-1BUFLEN\s0] \s-1DIR...\s0 +.Sp +Continuously read log data from stdin and write to rotated log files in DIRs +.Sp +DIR/config file modifies behavior: +sSIZE \- when to rotate logs +nNUM \- number of files to retain +!PROG \- process rotated log with \s-1PROG ++,\-PATTERN\s0 \- (de)select line for logging +E,ePATTERN \- (de)select line for stderr +.IP "\fBswapoff\fR" 4 +.IX Item "swapoff" +swapoff [\-a] [\s-1DEVICE\s0] +.Sp +Stop swapping on \s-1DEVICE\s0 +.Sp +.Vb 1 +\& \-a Stop swapping on all swap devices +.Ve +.IP "\fBswapon\fR" 4 +.IX Item "swapon" +swapon [\-a] [\-p \s-1PRI\s0] [\s-1DEVICE\s0] +.Sp +Start swapping on \s-1DEVICE\s0 +.Sp +.Vb 2 +\& \-a Start swapping on all swap devices +\& \-p PRI Set swap device priority +.Ve +.IP "\fBswitch_root\fR" 4 +.IX Item "switch_root" +switch_root [\-c /dev/console] \s-1NEW_ROOT NEW_INIT\s0 [\s-1ARGS\s0] +.Sp +Free initramfs and switch to another root fs: +.Sp +chroot to \s-1NEW_ROOT,\s0 delete all in /, move \s-1NEW_ROOT\s0 to /, +execute \s-1NEW_INIT. PID\s0 must be 1. \s-1NEW_ROOT\s0 must be a mountpoint. +.Sp +.Vb 1 +\& \-c DEV Reopen stdio to DEV after switch +.Ve +.IP "\fBsync\fR" 4 +.IX Item "sync" +sync +.Sp +Write all buffered blocks to disk +.IP "\fBsysctl\fR" 4 +.IX Item "sysctl" +sysctl [\s-1OPTIONS\s0] [\s-1VALUE\s0]... +.Sp +Configure kernel parameters at runtime +.Sp +.Vb 6 +\& \-n Don\*(Aqt print key names +\& \-e Don\*(Aqt warn about unknown keys +\& \-w Change sysctl setting +\& \-p FILE Load sysctl settings from FILE (default /etc/sysctl.conf) +\& \-a Display all values +\& \-A Display all values in table form +.Ve +.IP "\fBsyslogd\fR" 4 +.IX Item "syslogd" +syslogd [\s-1OPTIONS\s0] +.Sp +System logging utility +.Sp +.Vb 11 +\& \-n Run in foreground +\& \-O FILE Log to FILE (default:/var/log/messages) +\& \-l N Log only messages more urgent than prio N (1\-8) +\& \-S Smaller output +\& \-s SIZE Max size (KB) before rotation (default:200KB, 0=off) +\& \-b N N rotated logs to keep (default:1, max=99, 0=purge) +\& \-R HOST[:PORT] Log to IP or hostname on PORT (default PORT=514/UDP) +\& \-L Log locally and via network (default is network only if \-R) +\& \-D Drop duplicates +\& \-C[size_kb] Log to shared mem buffer (use logread to read it) +\& \-f FILE Use FILE as config (default:/etc/syslog.conf) +.Ve +.IP "\fBtac\fR" 4 +.IX Item "tac" +tac [\s-1FILE\s0]... +.Sp +Concatenate FILEs and print them in reverse +.IP "\fBtail\fR" 4 +.IX Item "tail" +tail [\s-1OPTIONS\s0] [\s-1FILE\s0]... +.Sp +Print last 10 lines of each \s-1FILE\s0 (or stdin) to stdout. +With more than one \s-1FILE,\s0 precede each with a filename header. +.Sp +.Vb 6 +\& \-f Print data as file grows +\& \-s SECONDS Wait SECONDS between reads with \-f +\& \-n N[kbm] Print last N lines +\& \-c N[kbm] Print last N bytes +\& \-q Never print headers +\& \-v Always print headers +.Ve +.Sp +N may be suffixed by k (x1024), b (x512), or m (x1024^2). +If N starts with a '+', output begins with the Nth item from the start +of each file, not from the end. +.IP "\fBtar\fR" 4 +.IX Item "tar" +tar \-[cxtzjahmvO] [\-X \s-1FILE\s0] [\-T \s-1FILE\s0] [\-f \s-1TARFILE\s0] [\-C \s-1DIR\s0] [\s-1FILE\s0]... +.Sp +Create, extract, or list files from a tar file +.Sp +Operation: +.Sp +.Vb 10 +\& c Create +\& x Extract +\& t List +\& f Name of TARFILE (\*(Aq\-\*(Aq for stdin/out) +\& C Change to DIR before operation +\& v Verbose +\& z (De)compress using gzip +\& j (De)compress using bzip2 +\& a (De)compress using lzma +\& O Extract to stdout +\& h Follow symlinks +\& m Don\*(Aqt restore mtime +\& exclude File to exclude +\& X File with names to exclude +\& T File with names to include +.Ve +.IP "\fBtcpsvd\fR" 4 +.IX Item "tcpsvd" +tcpsvd [\-hEv] [\-c N] [\-C N[:MSG]] [\-b N] [\-u \s-1USER\s0] [\-l \s-1NAME\s0] \s-1IP PORT PROG\s0 +.Sp +Create \s-1TCP\s0 socket, bind to \s-1IP:PORT\s0 and listen +for incoming connection. Run \s-1PROG\s0 for each connection. +.Sp +.Vb 10 +\& IP IP to listen on, 0 = all +\& PORT Port to listen on +\& PROG ARGS Program to run +\& \-l NAME Local hostname (else looks up local hostname in DNS) +\& \-u USER[:GRP] Change to user/group after bind +\& \-c N Handle up to N connections simultaneously +\& \-b N Allow a backlog of approximately N TCP SYNs +\& \-C N[:MSG] Allow only up to N connections from the same IP +\& New connections from this IP address are closed +\& immediately. MSG is written to the peer before close +\& \-h Look up peer\*(Aqs hostname +\& \-E Don\*(Aqt set up environment variables +\& \-v Verbose +.Ve +.IP "\fBtee\fR" 4 +.IX Item "tee" +tee [\-ai] [\s-1FILE\s0]... +.Sp +Copy stdin to each \s-1FILE,\s0 and also to stdout +.Sp +.Vb 2 +\& \-a Append to the given FILEs, don\*(Aqt overwrite +\& \-i Ignore interrupt signals (SIGINT) +.Ve +.IP "\fBtelnet\fR" 4 +.IX Item "telnet" +telnet [\-a] [\-l \s-1USER\s0] \s-1HOST\s0 [\s-1PORT\s0] +.Sp +Connect to telnet server +.Sp +.Vb 2 +\& \-a Automatic login with $USER variable +\& \-l USER Automatic login as USER +.Ve +.IP "\fBtelnetd\fR" 4 +.IX Item "telnetd" +telnetd [\s-1OPTIONS\s0] +.Sp +Handle incoming telnet connections +.Sp +.Vb 10 +\& \-l LOGIN Exec LOGIN on connect +\& \-f ISSUE_FILE Display ISSUE_FILE instead of /etc/issue +\& \-K Close connection as soon as login exits +\& (normally wait until all programs close slave pty) +\& \-p PORT Port to listen on +\& \-b ADDR[:PORT] Address to bind to +\& \-F Run in foreground +\& \-i Inetd mode +\& \-w SEC Inetd \*(Aqwait\*(Aq mode, linger time SEC +\& \-S Log to syslog (implied by \-i or without \-F and \-w) +.Ve +.IP "\fBtest\fR" 4 +.IX Item "test" +test \s-1EXPRESSION\s0 ] +.Sp +Check file types, compare values etc. Return a 0/1 exit code +depending on logical value of \s-1EXPRESSION\s0 +.IP "\fBtftp\fR" 4 +.IX Item "tftp" +tftp [\s-1OPTIONS\s0] \s-1HOST\s0 [\s-1PORT\s0] +.Sp +Transfer a file from/to tftp server +.Sp +.Vb 5 +\& \-l FILE Local FILE +\& \-r FILE Remote FILE +\& \-g Get file +\& \-p Put file +\& \-b SIZE Transfer blocks of SIZE octets +.Ve +.IP "\fBtftpd\fR" 4 +.IX Item "tftpd" +tftpd [\-cr] [\-u \s-1USER\s0] [\s-1DIR\s0] +.Sp +Transfer a file on tftp client's request +.Sp +tftpd should be used as an inetd service. +tftpd's line for inetd.conf: + 69 dgram udp nowait root tftpd tftpd \-l /files/to/serve +It also can be ran from udpsvd: +.Sp +.Vb 1 +\& udpsvd \-vE 0.0.0.0 69 tftpd /files/to/serve +\& +\& \-r Prohibit upload +\& \-c Allow file creation via upload +\& \-u Access files as USER +\& \-l Log to syslog (inetd mode requires this) +.Ve +.IP "\fBtime\fR" 4 +.IX Item "time" +time [\-v] \s-1PROG ARGS\s0 +.Sp +Run \s-1PROG,\s0 display resource usage when it exits +.Sp +.Vb 1 +\& \-v Verbose +.Ve +.IP "\fBtimeout\fR" 4 +.IX Item "timeout" +timeout [\-t \s-1SECS\s0] [\-s \s-1SIG\s0] \s-1PROG ARGS\s0 +.Sp +Runs \s-1PROG.\s0 Sends \s-1SIG\s0 to it if it is not gone in \s-1SECS\s0 seconds. +Defaults: \s-1SECS: 10, SIG: TERM.\s0 +.IP "\fBtop\fR" 4 +.IX Item "top" +top [\-b] [\-nCOUNT] [\-dSECONDS] [\-m] +.Sp +Provide a view of process activity in real time. +Read the status of all processes from /proc each \s-1SECONDS\s0 +and display a screenful of them. +Keys: +.Sp +.Vb 5 +\& N/M/P/T: show CPU usage, sort by pid/mem/cpu/time +\& S: show memory +\& R: reverse sort +\& H: toggle threads, 1: toggle SMP +\& Q,^C: exit +.Ve +.Sp +Options: +.Sp +.Vb 4 +\& \-b Batch mode +\& \-n N Exit after N iterations +\& \-d N Delay between updates +\& \-m Same as \*(Aqs\*(Aq key +.Ve +.IP "\fBtouch\fR" 4 +.IX Item "touch" +touch [\-c] [\-d \s-1DATE\s0] [\-t \s-1DATE\s0] [\-r \s-1FILE\s0] \s-1FILE...\s0 +.Sp +Update the last-modified date on the given FILE[s] +.Sp +.Vb 4 +\& \-c Don\*(Aqt create files +\& \-d DT Date/time to use +\& \-t DT Date/time to use +\& \-r FILE Use FILE\*(Aqs date/time +.Ve +.IP "\fBtr\fR" 4 +.IX Item "tr" +tr [\-cds] \s-1STRING1\s0 [\s-1STRING2\s0] +.Sp +Translate, squeeze, or delete characters from stdin, writing to stdout +.Sp +.Vb 3 +\& \-c Take complement of STRING1 +\& \-d Delete input characters coded STRING1 +\& \-s Squeeze multiple output characters of STRING2 into one character +.Ve +.IP "\fBtraceroute\fR" 4 +.IX Item "traceroute" +traceroute [\-46FIldnrv] [\-f 1ST_TTL] [\-m \s-1MAXTTL\s0] [\-p \s-1PORT\s0] [\-q \s-1PROBES\s0] + [\-s \s-1SRC_IP\s0] [\-t \s-1TOS\s0] [\-w \s-1WAIT_SEC\s0] [\-g \s-1GATEWAY\s0] [\-i \s-1IFACE\s0] + [\-z \s-1PAUSE_MSEC\s0] \s-1HOST\s0 [\s-1BYTES\s0] +.Sp +Trace the route to \s-1HOST\s0 +.Sp +.Vb 10 +\& \-4,\-6 Force IP or IPv6 name resolution +\& \-F Set the don\*(Aqt fragment bit +\& \-I Use ICMP ECHO instead of UDP datagrams +\& \-l Display the TTL value of the returned packet +\& \-d Set SO_DEBUG options to socket +\& \-n Print numeric addresses +\& \-r Bypass routing tables, send directly to HOST +\& \-v Verbose +\& \-m Max time\-to\-live (max number of hops) +\& \-p Base UDP port number used in probes +\& (default 33434) +\& \-q Number of probes per TTL (default 3) +\& \-s IP address to use as the source address +\& \-t Type\-of\-service in probe packets (default 0) +\& \-w Time in seconds to wait for a response (default 3) +\& \-g Loose source route gateway (8 max) +.Ve +.IP "\fBtraceroute6\fR" 4 +.IX Item "traceroute6" +traceroute6 [\-dnrv] [\-m \s-1MAXTTL\s0] [\-p \s-1PORT\s0] [\-q \s-1PROBES\s0] + [\-s \s-1SRC_IP\s0] [\-t \s-1TOS\s0] [\-w \s-1WAIT_SEC\s0] [\-i \s-1IFACE\s0] + \s-1HOST\s0 [\s-1BYTES\s0] +.Sp +Trace the route to \s-1HOST\s0 +.Sp +.Vb 11 +\& \-d Set SO_DEBUG options to socket +\& \-n Print numeric addresses +\& \-r Bypass routing tables, send directly to HOST +\& \-v Verbose +\& \-m Max time\-to\-live (max number of hops) +\& \-p Base UDP port number used in probes +\& (default is 33434) +\& \-q Number of probes per TTL (default 3) +\& \-s IP address to use as the source address +\& \-t Type\-of\-service in probe packets (default 0) +\& \-w Time in seconds to wait for a response (default 3) +.Ve +.IP "\fBtrue\fR" 4 +.IX Item "true" +true +.Sp +Return an exit code of \s-1TRUE\s0 (0) +.IP "\fBtty\fR" 4 +.IX Item "tty" +tty +.Sp +Print file name of stdin's terminal +.Sp +.Vb 1 +\& \-s Print nothing, only return exit status +.Ve +.IP "\fBttysize\fR" 4 +.IX Item "ttysize" +ttysize [w] [h] +.Sp +Print dimension(s) of stdin's terminal, on error return 80x25 +.IP "\fBtunctl\fR" 4 +.IX Item "tunctl" +tunctl [\-f device] ([\-t name] | \-d name) [\-u owner] [\-g group] [\-b] +.Sp +Create or delete tun interfaces +.Sp +.Vb 6 +\& \-f name tun device (/dev/net/tun) +\& \-t name Create iface \*(Aqname\*(Aq +\& \-d name Delete iface \*(Aqname\*(Aq +\& \-u owner Set iface owner +\& \-g group Set iface group +\& \-b Brief output +.Ve +.IP "\fBubiattach\fR" 4 +.IX Item "ubiattach" +ubiattach \-m \s-1MTD_NUM\s0 [\-d \s-1UBI_NUM\s0] \s-1UBI_CTRL_DEV\s0 +.Sp +Attach \s-1MTD\s0 device to \s-1UBI\s0 +.Sp +.Vb 2 +\& \-m MTD_NUM MTD device number to attach +\& \-d UBI_NUM UBI device number to assign +.Ve +.IP "\fBubidetach\fR" 4 +.IX Item "ubidetach" +ubidetach \-d \s-1UBI_NUM UBI_CTRL_DEV\s0 +.Sp +Detach \s-1MTD\s0 device from \s-1UBI\s0 +.Sp +.Vb 1 +\& \-d UBI_NUM UBI device number +.Ve +.IP "\fBubimkvol\fR" 4 +.IX Item "ubimkvol" +ubimkvol \s-1UBI_DEVICE\s0 \-N \s-1NAME\s0 \-s \s-1SIZE\s0 +.Sp +Create \s-1UBI\s0 volume +.Sp +.Vb 6 +\& \-a ALIGNMENT Volume alignment (default 1) +\& \-n VOLID Volume ID, if not specified, it +\& will be assigned automatically +\& \-N NAME Volume name +\& \-s SIZE Size in bytes +\& \-t TYPE Volume type (static|dynamic) +.Ve +.IP "\fBubirmvol\fR" 4 +.IX Item "ubirmvol" +ubirmvol \s-1UBI_DEVICE\s0 \-n \s-1VOLID\s0 +.Sp +Remove \s-1UBI\s0 volume +.Sp +.Vb 1 +\& \-n VOLID Volume ID +.Ve +.IP "\fBubirsvol\fR" 4 +.IX Item "ubirsvol" +ubirsvol \s-1UBI_DEVICE\s0 \-n \s-1VOLID\s0 \-s \s-1SIZE\s0 +.Sp +Resize \s-1UBI\s0 volume +.Sp +.Vb 2 +\& \-n VOLID Volume ID to resize +\& \-s SIZE Size in bytes +.Ve +.IP "\fBubiupdatevol\fR" 4 +.IX Item "ubiupdatevol" +ubiupdatevol \s-1UBI_DEVICE\s0 [\s-1IMG_FILE\s0] +.Sp +Update \s-1UBI\s0 volume +.Sp +.Vb 2 +\& \-t Truncate UBI volume +\& \-s SIZE Bytes in input (if reading stdin) +.Ve +.IP "\fBudhcpc\fR" 4 +.IX Item "udhcpc" +udhcpc [\-fbnqvoCRB] [\-i \s-1IFACE\s0] [\-r \s-1IP\s0] [\-s \s-1PROG\s0] [\-p \s-1PIDFILE\s0] + [\-V \s-1VENDOR\s0] [\-x \s-1OPT:VAL\s0]... [\-O \s-1OPT\s0]... +.Sp +.Vb 10 +\& \-i,\-\-interface IFACE Interface to use (default eth0) +\& \-p,\-\-pidfile FILE Create pidfile +\& \-s,\-\-script PROG Run PROG at DHCP events (default /usr/share/udhcpc/default.script) +\& \-B,\-\-broadcast Request broadcast replies +\& \-t,\-\-retries N Send up to N discover packets +\& \-T,\-\-timeout N Pause between packets (default 3 seconds) +\& \-A,\-\-tryagain N Wait N seconds after failure (default 20) +\& \-f,\-\-foreground Run in foreground +\& \-b,\-\-background Background if lease is not obtained +\& \-n,\-\-now Exit if lease is not obtained +\& \-q,\-\-quit Exit after obtaining lease +\& \-R,\-\-release Release IP on exit +\& \-S,\-\-syslog Log to syslog too +\& \-a,\-\-arping Use arping to validate offered address +\& \-O,\-\-request\-option OPT Request option OPT from server (cumulative) +\& \-o,\-\-no\-default\-options Don\*(Aqt request any options (unless \-O is given) +\& \-r,\-\-request IP Request this IP address +\& \-x OPT:VAL Include option OPT in sent packets (cumulative) +\& Examples of string, numeric, and hex byte opts: +\& \-x hostname:bbox \- option 12 +\& \-x lease:3600 \- option 51 (lease time) +\& \-x 0x3d:0100BEEFC0FFEE \- option 61 (client id) +\& \-F,\-\-fqdn NAME Ask server to update DNS mapping for NAME +\& \-V,\-\-vendorclass VENDOR Vendor identifier (default \*(Aqudhcp VERSION\*(Aq) +\& \-C,\-\-clientid\-none Don\*(Aqt send MAC as client identifier +\& \-v Verbose +\&Signals: +\& +\& USR1 Renew lease +\& USR2 Release lease +.Ve +.IP "\fBudhcpd\fR" 4 +.IX Item "udhcpd" +udhcpd [\-fS] [\s-1CONFFILE\s0] +.Sp +\&\s-1DHCP\s0 server +.Sp +.Vb 2 +\& \-f Run in foreground +\& \-S Log to syslog too +.Ve +.IP "\fBudpsvd\fR" 4 +.IX Item "udpsvd" +udpsvd [\-hEv] [\-c N] [\-u \s-1USER\s0] [\-l \s-1NAME\s0] \s-1IP PORT PROG\s0 +.Sp +Create \s-1UDP\s0 socket, bind to \s-1IP:PORT\s0 and wait +for incoming packets. Run \s-1PROG\s0 for each packet, +redirecting all further packets with same peer ip:port to it. +.Sp +.Vb 9 +\& IP IP to listen on, 0 = all +\& PORT Port to listen on +\& PROG ARGS Program to run +\& \-l NAME Local hostname (else looks up local hostname in DNS) +\& \-u USER[:GRP] Change to user/group after bind +\& \-c N Handle up to N connections simultaneously +\& \-h Look up peer\*(Aqs hostname +\& \-E Don\*(Aqt set up environment variables +\& \-v Verbose +.Ve +.IP "\fBumount\fR" 4 +.IX Item "umount" +umount [\s-1OPTIONS\s0] FILESYSTEM|DIRECTORY +.Sp +Unmount file systems +.Sp +.Vb 5 +\& \-a Unmount all file systems +\& \-r Try to remount devices as read\-only if mount is busy +\& \-l Lazy umount (detach filesystem) +\& \-f Force umount (i.e., unreachable NFS server) +\& \-D Don\*(Aqt free loop device even if it has been used +.Ve +.IP "\fBuname\fR" 4 +.IX Item "uname" +uname [\-amnrspv] +.Sp +Print system information +.Sp +.Vb 7 +\& \-a Print all +\& \-m The machine (hardware) type +\& \-n Hostname +\& \-r OS release +\& \-s OS name (default) +\& \-p Processor type +\& \-v OS version +.Ve +.IP "\fBunexpand\fR" 4 +.IX Item "unexpand" +unexpand [\-fa][\-t N] [\s-1FILE\s0]... +.Sp +Convert spaces to tabs, writing to stdout +.Sp +.Vb 3 +\& \-a,\-\-all Convert all blanks +\& \-f,\-\-first\-only Convert only leading blanks +\& \-t,\-\-tabs=N Tabstops every N chars +.Ve +.IP "\fBuniq\fR" 4 +.IX Item "uniq" +uniq [\-cdu][\-f,s,w N] [\s-1INPUT\s0 [\s-1OUTPUT\s0]] +.Sp +Discard duplicate lines +.Sp +.Vb 6 +\& \-c Prefix lines by the number of occurrences +\& \-d Only print duplicate lines +\& \-u Only print unique lines +\& \-f N Skip first N fields +\& \-s N Skip first N chars (after any skipped fields) +\& \-w N Compare N characters in line +.Ve +.IP "\fBunix2dos\fR" 4 +.IX Item "unix2dos" +unix2dos [\-ud] [\s-1FILE\s0] +.Sp +Convert \s-1FILE\s0 in-place from Unix to \s-1DOS\s0 format. +When no file is given, use stdin/stdout. +.Sp +.Vb 2 +\& \-u dos2unix +\& \-d unix2dos +.Ve +.IP "\fBunlzma\fR" 4 +.IX Item "unlzma" +unlzma [\-cf] [\s-1FILE\s0]... +.Sp +Decompress \s-1FILE\s0 (or stdin) +.Sp +.Vb 2 +\& \-c Write to stdout +\& \-f Force +.Ve +.IP "\fBunlzop\fR" 4 +.IX Item "unlzop" +unlzop [\-cfvCF] [\s-1FILE\s0]... +.Sp +.Vb 4 +\& \-c Write to stdout +\& \-f Force +\& \-v Verbose +\& \-F Don\*(Aqt store or verify checksum +.Ve +.IP "\fBunxz\fR" 4 +.IX Item "unxz" +unxz [\-cf] [\s-1FILE\s0]... +.Sp +Decompress \s-1FILE\s0 (or stdin) +.Sp +.Vb 2 +\& \-c Write to stdout +\& \-f Force +.Ve +.IP "\fBunzip\fR" 4 +.IX Item "unzip" +unzip [\-opts[modifiers]] FILE[.zip] [\s-1LIST\s0] [\-x \s-1XLIST\s0] [\-d \s-1DIR\s0] +.Sp +Extract files from \s-1ZIP\s0 archives +.Sp +.Vb 7 +\& \-l List archive contents (with \-q for short form) +\& \-n Never overwrite files (default) +\& \-o Overwrite +\& \-p Send output to stdout +\& \-q Quiet +\& \-x XLST Exclude these files +\& \-d DIR Extract files into DIR +.Ve +.IP "\fBuptime\fR" 4 +.IX Item "uptime" +uptime +.Sp +Display the time since the last boot +.IP "\fBusers\fR" 4 +.IX Item "users" +users +.Sp +Print the users currently logged on +.IP "\fBusleep\fR" 4 +.IX Item "usleep" +usleep N +.Sp +Pause for N microseconds +.IP "\fBuudecode\fR" 4 +.IX Item "uudecode" +uudecode [\-o \s-1OUTFILE\s0] [\s-1INFILE\s0] +.Sp +Uudecode a file +Finds \s-1OUTFILE\s0 in uuencoded source unless \-o is given +.IP "\fBuuencode\fR" 4 +.IX Item "uuencode" +uuencode [\-m] [\s-1FILE\s0] \s-1STORED_FILENAME\s0 +.Sp +Uuencode \s-1FILE\s0 (or stdin) to stdout +.Sp +.Vb 1 +\& \-m Use base64 encoding per RFC1521 +.Ve +.IP "\fBvconfig\fR" 4 +.IX Item "vconfig" +vconfig \s-1COMMAND\s0 [\s-1OPTIONS\s0] +.Sp +Create and remove virtual ethernet devices +.Sp +.Vb 6 +\& add IFACE VLAN_ID +\& rem VLAN_NAME +\& set_flag IFACE 0|1 VLAN_QOS +\& set_egress_map VLAN_NAME SKB_PRIO VLAN_QOS +\& set_ingress_map VLAN_NAME SKB_PRIO VLAN_QOS +\& set_name_type NAME_TYPE +.Ve +.IP "\fBvi\fR" 4 +.IX Item "vi" +vi [\s-1OPTIONS\s0] [\s-1FILE\s0]... +.Sp +Edit \s-1FILE\s0 +.Sp +.Vb 3 +\& \-c Initial command to run ($EXINIT also available) +\& \-R Read\-only +\& \-H Short help regarding available features +.Ve +.IP "\fBvlock\fR" 4 +.IX Item "vlock" +vlock [\-a] +.Sp +Lock a virtual terminal. A password is required to unlock. +.Sp +.Vb 1 +\& \-a Lock all VTs +.Ve +.IP "\fBvolname\fR" 4 +.IX Item "volname" +volname [\s-1DEVICE\s0] +.Sp +Show \s-1CD\s0 volume name of the \s-1DEVICE\s0 (default /dev/cdrom) +.IP "\fBwall\fR" 4 +.IX Item "wall" +wall [\s-1FILE\s0] +.Sp +Write content of \s-1FILE\s0 or stdin to all logged-in users +.IP "\fBwatch\fR" 4 +.IX Item "watch" +watch [\-n \s-1SEC\s0] [\-t] \s-1PROG ARGS\s0 +.Sp +Run \s-1PROG\s0 periodically +.Sp +.Vb 2 +\& \-n Loop period in seconds (default 2) +\& \-t Don\*(Aqt print header +.Ve +.IP "\fBwatchdog\fR" 4 +.IX Item "watchdog" +watchdog [\-t N[ms]] [\-T N[ms]] [\-F] \s-1DEV\s0 +.Sp +Periodically write to watchdog device \s-1DEV\s0 +.Sp +.Vb 3 +\& \-T N Reboot after N seconds if not reset (default 60) +\& \-t N Reset every N seconds (default 30) +\& \-F Run in foreground +.Ve +.Sp +Use 500ms to specify period in milliseconds +.IP "\fBwc\fR" 4 +.IX Item "wc" +wc [\-cmlwL] [\s-1FILE\s0]... +.Sp +Count lines, words, and bytes for each \s-1FILE\s0 (or stdin) +.Sp +.Vb 5 +\& \-c Count bytes +\& \-m Count characters +\& \-l Count newlines +\& \-w Count words +\& \-L Print longest line length +.Ve +.IP "\fBwget\fR" 4 +.IX Item "wget" +wget [\-c|\-\-continue] [\-s|\-\-spider] [\-q|\-\-quiet] [\-O|\-\-output\-document \s-1FILE\s0] + [\-\-header 'header: value'] [\-Y|\-\-proxy on/off] [\-P \s-1DIR\s0] + [\-\-no\-check\-certificate] [\-U|\-\-user\-agent \s-1AGENT\s0] [\-T \s-1SEC\s0] \s-1URL...\s0 +.Sp +Retrieve files via \s-1HTTP\s0 or \s-1FTP\s0 +.Sp +.Vb 8 +\& \-s Spider mode \- only check file existence +\& \-c Continue retrieval of aborted transfer +\& \-q Quiet +\& \-P DIR Save to DIR (default .) +\& \-T SEC Network read timeout is SEC seconds +\& \-O FILE Save to FILE (\*(Aq\-\*(Aq for stdout) +\& \-U STR Use STR for User\-Agent header +\& \-Y Use proxy (\*(Aqon\*(Aq or \*(Aqoff\*(Aq) +.Ve +.IP "\fBwhich\fR" 4 +.IX Item "which" +which [\s-1COMMAND\s0]... +.Sp +Locate a \s-1COMMAND\s0 +.IP "\fBwho\fR" 4 +.IX Item "who" +who [\-a] +.Sp +Show who is logged on +.Sp +.Vb 2 +\& \-a Show all +\& \-H Print column headers +.Ve +.IP "\fBwhoami\fR" 4 +.IX Item "whoami" +whoami +.Sp +Print the user name associated with the current effective user id +.IP "\fBwhois\fR" 4 +.IX Item "whois" +whois [\-h \s-1SERVER\s0] [\-p \s-1PORT\s0] \s-1NAME...\s0 +.Sp +Query \s-1WHOIS\s0 info about \s-1NAME\s0 +.Sp +.Vb 1 +\& \-h,\-p Server to query +.Ve +.IP "\fBxargs\fR" 4 +.IX Item "xargs" +xargs [\s-1OPTIONS\s0] [\s-1PROG ARGS\s0] +.Sp +Run \s-1PROG\s0 on every item given by stdin +.Sp +.Vb 8 +\& \-p Ask user whether to run each command +\& \-r Don\*(Aqt run command if input is empty +\& \-0 Input is separated by NUL characters +\& \-t Print the command on stderr before execution +\& \-e[STR] STR stops input processing +\& \-n N Pass no more than N args to PROG +\& \-s N Pass command line of no more than N bytes +\& \-x Exit if size is exceeded +.Ve +.IP "\fBxz\fR" 4 +.IX Item "xz" +xz \-d [\-cf] [\s-1FILE\s0]... +.Sp +Decompress \s-1FILE\s0 (or stdin) +.Sp +.Vb 3 +\& \-d Decompress +\& \-c Write to stdout +\& \-f Force +.Ve +.IP "\fBxzcat\fR" 4 +.IX Item "xzcat" +xzcat \s-1FILE\s0 +.Sp +Decompress to stdout +.IP "\fByes\fR" 4 +.IX Item "yes" +yes [\s-1STRING\s0] +.Sp +Repeatedly output a line with \s-1STRING,\s0 or 'y' +.IP "\fBzcat\fR" 4 +.IX Item "zcat" +zcat \s-1FILE\s0 +.Sp +Decompress to stdout +.IP "\fBzcip\fR" 4 +.IX Item "zcip" +zcip [\s-1OPTIONS\s0] \s-1IFACE SCRIPT\s0 +.Sp +Manage a ZeroConf IPv4 link-local address +.Sp +.Vb 4 +\& \-f Run in foreground +\& \-q Quit after obtaining address +\& \-r 169.254.x.x Request this address first +\& \-v Verbose +.Ve +.Sp +With no \-q, runs continuously monitoring for \s-1ARP\s0 conflicts, +exits only on I/O errors (link down etc) +.SH "LIBC NSS" +.IX Header "LIBC NSS" +\&\s-1GNU\s0 Libc (glibc) uses the Name Service Switch (\s-1NSS\s0) to configure the behavior +of the C library for the local environment, and to configure how it reads +system data, such as passwords and group information. This is implemented +using an /etc/nsswitch.conf configuration file, and using one or more of the +/lib/libnss_* libraries. BusyBox tries to avoid using any libc calls that make +use of \s-1NSS.\s0 Some applets however, such as login and su, will use libc functions +that require \s-1NSS.\s0 +.PP +If you enable \s-1CONFIG_USE_BB_PWD_GRP,\s0 BusyBox will use internal functions to +directly access the /etc/passwd, /etc/group, and /etc/shadow files without +using \s-1NSS.\s0 This may allow you to run your system without the need for +installing any of the \s-1NSS\s0 configuration files and libraries. +.PP +When used with glibc, the BusyBox 'networking' applets will similarly require +that you install at least some of the glibc \s-1NSS\s0 stuff (in particular, +/etc/nsswitch.conf, /lib/libnss_dns*, /lib/libnss_files*, and /lib/libresolv*). +.PP +Shameless Plug: As an alternative, one could use a C library such as uClibc. In +addition to making your system significantly smaller, uClibc does not require the +use of any \s-1NSS\s0 support files or libraries. +.SH "MAINTAINER" +.IX Header "MAINTAINER" +Denis Vlasenko +.SH "AUTHORS" +.IX Header "AUTHORS" +The following people have contributed code to BusyBox whether they know it or +not. If you have written code included in BusyBox, you should probably be +listed here so you can obtain your bit of eternal glory. If you should be +listed here, or the description of what you have done needs more detail, or is +incorrect, please send in an update. +.PP +Emanuele Aina + run-parts +.PP +Erik Andersen +.PP +.Vb 4 +\& Tons of new stuff, major rewrite of most of the +\& core apps, tons of new apps as noted in header files. +\& Lots of tedious effort writing these boring docs that +\& nobody is going to actually read. +.Ve +.PP +Laurence Anderson +.PP +.Vb 1 +\& rpm2cpio, unzip, get_header_cpio, read_gz interface, rpm +.Ve +.PP +Jeff Angielski +.PP +.Vb 1 +\& ftpput, ftpget +.Ve +.PP +Edward Betts +.PP +.Vb 1 +\& expr, hostid, logname, whoami +.Ve +.PP +John Beppu +.PP +.Vb 1 +\& du, nslookup, sort +.Ve +.PP +Brian Candler +.PP +.Vb 1 +\& tiny\-ls(ls) +.Ve +.PP +Randolph Chung +.PP +.Vb 1 +\& fbset, ping, hostname +.Ve +.PP +Dave Cinege +.PP +.Vb 2 +\& more(v2), makedevs, dutmp, modularization, auto links file, +\& various fixes, Linux Router Project maintenance +.Ve +.PP +Jordan Crouse +.PP +.Vb 1 +\& ipcalc +.Ve +.PP +Magnus Damm +.PP +.Vb 1 +\& tftp client insmod powerpc support +.Ve +.PP +Larry Doolittle +.PP +.Vb 1 +\& pristine source directory compilation, lots of patches and fixes. +.Ve +.PP +Glenn Engel +.PP +.Vb 1 +\& httpd +.Ve +.PP +Gennady Feldman +.PP +.Vb 2 +\& Sysklogd (single threaded syslogd, IPC Circular buffer support, +\& logread), various fixes. +.Ve +.PP +Karl M. Hegbloom +.PP +.Vb 1 +\& cp_mv.c, the test suite, various fixes to utility.c, &c. +.Ve +.PP +Daniel Jacobowitz +.PP +.Vb 1 +\& mktemp.c +.Ve +.PP +Matt Kraai +.PP +.Vb 1 +\& documentation, bugfixes, test suite +.Ve +.PP +Stephan Linz +.PP +.Vb 1 +\& ipcalc, Red Hat equivalence +.Ve +.PP +John Lombardo +.PP +.Vb 1 +\& tr +.Ve +.PP +Glenn McGrath +.PP +.Vb 3 +\& Common unarchiving code and unarchiving applets, ifupdown, ftpgetput, +\& nameif, sed, patch, fold, install, uudecode. +\& Various bugfixes, review and apply numerous patches. +.Ve +.PP +Manuel Novoa \s-1III\s0 +.PP +.Vb 3 +\& cat, head, mkfifo, mknod, rmdir, sleep, tee, tty, uniq, usleep, wc, yes, +\& mesg, vconfig, make_directory, parse_mode, dirname, mode_string, +\& get_last_path_component, simplify_path, and a number trivial libbb routines +\& +\& also bug fixes, partial rewrites, and size optimizations in +\& ash, basename, cal, cmp, cp, df, du, echo, env, ln, logname, md5sum, mkdir, +\& mv, realpath, rm, sort, tail, touch, uname, watch, arith, human_readable, +\& interface, dutmp, ifconfig, route +.Ve +.PP +Vladimir Oleynik +.PP +.Vb 4 +\& cmdedit; xargs(current), httpd(current); +\& ports: ash, crond, fdisk, inetd, stty, traceroute, top; +\& locale, various fixes +\& and irreconcilable critic of everything not perfect. +.Ve +.PP +Bruce Perens +.PP +.Vb 2 +\& Original author of BusyBox in 1995, 1996. Some of his code can +\& still be found hiding here and there... +.Ve +.PP +Tim Riker +.PP +.Vb 1 +\& bug fixes, member of fan club +.Ve +.PP +Kent Robotti +.PP +.Vb 1 +\& reset, tons and tons of bug reports and patches. +.Ve +.PP +Chip Rosenthal , +.PP +.Vb 1 +\& wget \- Contributed by permission of Covad Communications +.Ve +.PP +Pavel Roskin +.PP +.Vb 1 +\& Lots of bugs fixes and patches. +.Ve +.PP +Gyepi Sam +.PP +.Vb 1 +\& Remote logging feature for syslogd +.Ve +.PP +Linus Torvalds +.PP +.Vb 1 +\& mkswap, fsck.minix, mkfs.minix +.Ve +.PP +Mark Whitley +.PP +.Vb 2 +\& grep, sed, cut, xargs(previous), +\& style\-guide, new\-applet\-HOWTO, bug fixes, etc. +.Ve +.PP +Charles P. Wright +.PP +.Vb 1 +\& gzip, mini\-netcat(nc) +.Ve +.PP +Enrique Zanardi +.PP +.Vb 1 +\& tarcat (since removed), loadkmap, various fixes, Debian maintenance +.Ve +.PP +Tito Ragusa +.PP +.Vb 1 +\& devfsd and size optimizations in strings, openvt and deallocvt. +.Ve +.PP +Paul Fox +.PP +.Vb 1 +\& vi editing mode for ash, various other patches/fixes +.Ve +.PP +Roberto A. Foglietta +.PP +.Vb 1 +\& port: dnsd +.Ve +.PP +Bernhard Reutner-Fischer +.PP +.Vb 1 +\& misc +.Ve +.PP +Mike Frysinger +.PP +.Vb 1 +\& initial e2fsprogs, printenv, setarch, sum, misc +.Ve +.PP +Jie Zhang +.PP +.Vb 1 +\& fixed two bugs in msh and hush (exitcode of killed processes) +.Ve diff -Naur busybox-1.20.2/docs/BusyBox.html busybox-1.20.2_mod/docs/BusyBox.html --- busybox-1.20.2/docs/BusyBox.html 1970-01-01 08:00:00.000000000 +0800 +++ busybox-1.20.2_mod/docs/BusyBox.html 2024-04-16 14:07:15.946734047 +0800 @@ -0,0 +1,4903 @@ + + + + + + + + + + + + + +

NAME

+ +

BusyBox - The Swiss Army Knife of Embedded Linux

+ +

SYNTAX

+ +
 busybox <applet> [arguments...]  # or
+
+ <applet> [arguments...]          # if symlinked
+ +

DESCRIPTION

+ +

BusyBox combines tiny versions of many common UNIX utilities into a single small executable. It provides minimalist replacements for most of the utilities you usually find in GNU coreutils, util-linux, etc. The utilities in BusyBox generally have fewer options than their full-featured GNU cousins; however, the options that are included provide the expected functionality and behave very much like their GNU counterparts.

+ +

BusyBox has been written with size-optimization and limited resources in mind. It is also extremely modular so you can easily include or exclude commands (or features) at compile time. This makes it easy to customize your embedded systems. To create a working system, just add /dev, /etc, and a Linux kernel. BusyBox provides a fairly complete POSIX environment for any small or embedded system.

+ +

BusyBox is extremely configurable. This allows you to include only the components you need, thereby reducing binary size. Run 'make config' or 'make menuconfig' to select the functionality that you wish to enable. Then run 'make' to compile BusyBox using your configuration.

+ +

After the compile has finished, you should use 'make install' to install BusyBox. This will install the 'bin/busybox' binary, in the target directory specified by CONFIG_PREFIX. CONFIG_PREFIX can be set when configuring BusyBox, or you can specify an alternative location at install time (i.e., with a command line like 'make CONFIG_PREFIX=/tmp/foo install'). If you enabled any applet installation scheme (either as symlinks or hardlinks), these will also be installed in the location pointed to by CONFIG_PREFIX.

+ +

USAGE

+ +

BusyBox is a multi-call binary. A multi-call binary is an executable program that performs the same job as more than one utility program. That means there is just a single BusyBox binary, but that single binary acts like a large number of utilities. This allows BusyBox to be smaller since all the built-in utility programs (we call them applets) can share code for many common operations.

+ +

You can also invoke BusyBox by issuing a command as an argument on the command line. For example, entering

+ +
        /bin/busybox ls
+ +

will also cause BusyBox to behave as 'ls'.

+ +

Of course, adding '/bin/busybox' into every command would be painful. So most people will invoke BusyBox using links to the BusyBox binary.

+ +

For example, entering

+ +
        ln -s /bin/busybox ls
+        ./ls
+ +

will cause BusyBox to behave as 'ls' (if the 'ls' command has been compiled into BusyBox). Generally speaking, you should never need to make all these links yourself, as the BusyBox build system will do this for you when you run the 'make install' command.

+ +

If you invoke BusyBox with no arguments, it will provide you with a list of the applets that have been compiled into your BusyBox binary.

+ +

COMMON OPTIONS

+ +

Most BusyBox applets support the --help argument to provide a terse runtime description of their behavior. If the CONFIG_FEATURE_VERBOSE_USAGE option has been enabled, more detailed usage information will also be available.

+ +

COMMANDS

+ +

Currently available applets include:

+ +
        [, [[, acpid, add-shell, addgroup, adduser, adjtimex, arp, arping,
+        ash, awk, base64, basename, beep, blkid, blockdev, bootchartd,
+        brctl, bunzip2, bzcat, bzip2, cal, cat, catv, chat, chattr, chgrp,
+        chmod, chown, chpasswd, chpst, chroot, chrt, chvt, cksum, clear,
+        cmp, comm, conspy, cp, cpio, crond, crontab, cryptpw, cttyhack, cut,
+        date, dc, dd, deallocvt, delgroup, deluser, depmod, devmem, df,
+        dhcprelay, diff, dirname, dmesg, dnsd, dnsdomainname, dos2unix, du,
+        dumpkmap, dumpleases, echo, ed, egrep, eject, env, envdir,
+        envuidgid, ether-wake, expand, expr, fakeidentd, false, fbset,
+        fbsplash, fdflush, fdformat, fdisk, fgconsole, fgrep, find, findfs,
+        flash_eraseall, flock, fold, free, freeramdisk, fsck, fsck.minix,
+        fsync, ftpd, ftpget, ftpput, fuser, getopt, getty, grep, groups,
+        gunzip, gzip, halt, hd, hdparm, head, hexdump, hostid, hostname,
+        httpd, hush, hwclock, id, ifconfig, ifdown, ifenslave, ifplugd,
+        ifup, inetd, init, insmod, install, ionice, iostat, ip, ipaddr,
+        ipcalc, ipcrm, ipcs, iplink, iproute, iprule, iptunnel, kbd_mode,
+        kill, killall, killall5, klogd, last, less, linux32, linux64,
+        linuxrc, ln, loadfont, loadkmap, logger, login, logname, logread,
+        losetup, lpd, lpq, lpr, ls, lsattr, lsmod, lsof, lspci, lsusb,
+        lzcat, lzma, lzop, lzopcat, makedevs, makemime, man, md5sum, mdev,
+        mesg, microcom, mkdir, mkdosfs, mke2fs, mkfifo, mkfs.ext2,
+        mkfs.minix, mkfs.vfat, mknod, mkpasswd, mkswap, mktemp, modinfo,
+        modprobe, more, mount, mountpoint, mpstat, mt, mv, nameif, nanddump,
+        nandwrite, nbd-client, nc, netstat, nice, nmeter, nohup, nslookup,
+        ntpd, od, openvt, passwd, patch, pgrep, pidof, ping, ping6,
+        pipe_progress, pivot_root, pkill, pmap, popmaildir, poweroff,
+        powertop, printenv, printf, ps, pscan, pstree, pwd, pwdx,
+        raidautorun, rdate, rdev, readahead, readlink, readprofile,
+        realpath, reboot, reformime, remove-shell, renice, reset, resize,
+        rev, rm, rmdir, rmmod, route, rpm, rpm2cpio, rtcwake, run-parts,
+        runlevel, runsv, runsvdir, rx, script, scriptreplay, sed, sendmail,
+        seq, setarch, setconsole, setfont, setkeycodes, setlogcons,
+        setserial, setsid, setuidgid, sh, sha1sum, sha256sum, sha512sum,
+        showkey, slattach, sleep, smemcap, softlimit, sort, split,
+        start-stop-daemon, stat, strings, stty, su, sulogin, sum, sv,
+        svlogd, swapoff, swapon, switch_root, sync, sysctl, syslogd, tac,
+        tail, tar, tcpsvd, tee, telnet, telnetd, test, tftp, tftpd, time,
+        timeout, top, touch, tr, traceroute, traceroute6, true, tty,
+        ttysize, tunctl, ubiattach, ubidetach, ubimkvol, ubirmvol, ubirsvol,
+        ubiupdatevol, udhcpc, udhcpd, udpsvd, umount, uname, unexpand, uniq,
+        unix2dos, unlzma, unlzop, unxz, unzip, uptime, users, usleep,
+        uudecode, uuencode, vconfig, vi, vlock, volname, wall, watch,
+        watchdog, wc, wget, which, who, whoami, whois, xargs, xz, xzcat,
+        yes, zcat, zcip
+ +

COMMAND DESCRIPTIONS

+ +
+ +
acpid
+
+ +

acpid [-df] [-c CONFDIR] [-l LOGFILE] [-a ACTIONFILE] [-M MAPFILE] [-e PROC_EVENT_FILE] [-p PIDFILE]

+ +

Listen to ACPI events and spawn specific helpers on event arrival

+ +
        -d      Log to stderr, not log file (implies -f)
+        -f      Run in foreground
+        -c DIR  Config directory [/etc/acpi]
+        -e FILE /proc event file [/proc/acpi/event]
+        -l FILE Log file [/var/log/acpid.log]
+        -p FILE Pid file [/var/run/acpid.pid]
+        -a FILE Action file [/etc/acpid.conf]
+        -M FILE Map file [/etc/acpi.map]
+ +

Accept and ignore compatibility options -g -m -s -S -v

+ +
+
add-shell
+
+ +

add-shell SHELL...

+ +

Add SHELLs to /etc/shells

+ +
+
addgroup
+
+ +

addgroup [-g GID] [USER] GROUP

+ +

Add a group or add a user to a group

+ +
        -g GID  Group id
+        -S      Create a system group
+ +
+
adduser
+
+ +

adduser [OPTIONS] USER

+ +

Add a user

+ +
        -h DIR          Home directory
+        -g GECOS        GECOS field
+        -s SHELL        Login shell
+        -G GRP          Add user to existing group
+        -S              Create a system user
+        -D              Don't assign a password
+        -H              Don't create home directory
+        -u UID          User id
+ +
+
adjtimex
+
+ +

adjtimex [-q] [-o OFF] [-f FREQ] [-p TCONST] [-t TICK]

+ +

Read and optionally set system timebase parameters. See adjtimex(2)

+ +
        -q      Quiet
+        -o OFF  Time offset, microseconds
+        -f FREQ Frequency adjust, integer kernel units (65536 is 1ppm)
+                (positive values make clock run faster)
+        -t TICK Microseconds per tick, usually 10000
+        -p TCONST
+ +
+
arp
+
+ +

arp [-vn] [-H HWTYPE] [-i IF] -a [HOSTNAME] [-v] [-i IF] -d HOSTNAME [pub] [-v] [-H HWTYPE] [-i IF] -s HOSTNAME HWADDR [temp] [-v] [-H HWTYPE] [-i IF] -s HOSTNAME HWADDR [netmask MASK] pub [-v] [-H HWTYPE] [-i IF] -Ds HOSTNAME IFACE [netmask MASK] pub

+ +

Manipulate ARP cache

+ +
        -a              Display (all) hosts
+        -s              Set new ARP entry
+        -d              Delete a specified entry
+        -v              Verbose
+        -n              Don't resolve names
+        -i IF           Network interface
+        -D              Read <hwaddr> from given device
+        -A,-p AF        Protocol family
+        -H HWTYPE       Hardware address type
+ +
+
arping
+
+ +

arping [-fqbDUA] [-c CNT] [-w TIMEOUT] [-I IFACE] [-s SRC_IP] DST_IP

+ +

Send ARP requests/replies

+ +
        -f              Quit on first ARP reply
+        -q              Quiet
+        -b              Keep broadcasting, don't go unicast
+        -D              Duplicated address detection mode
+        -U              Unsolicited ARP mode, update your neighbors
+        -A              ARP answer mode, update your neighbors
+        -c N            Stop after sending N ARP requests
+        -w TIMEOUT      Time to wait for ARP reply, seconds
+        -I IFACE        Interface to use (default eth0)
+        -s SRC_IP       Sender IP address
+        DST_IP          Target IP address
+ +
+
ash
+
+ +

ash [-/+OPTIONS] [-/+o OPT]... [-c 'SCRIPT' [ARG0 [ARGS]] / FILE [ARGS]]

+ +

Unix shell interpreter

+ +
+
awk
+
+ +

awk [OPTIONS] [AWK_PROGRAM] [FILE]...

+ +
        -v VAR=VAL      Set variable
+        -F SEP          Use SEP as field separator
+        -f FILE         Read program from FILE
+ +
+
base64
+
+ +

base64 [-d] [FILE]

+ +

Base64 encode or decode FILE to standard output -d Decode data

+ +
+
basename
+
+ +

basename FILE [SUFFIX]

+ +

Strip directory path and .SUFFIX from FILE

+ +
+
beep
+
+ +

beep -f FREQ -l LEN -d DELAY -r COUNT -n

+ +
        -f      Frequency in Hz
+        -l      Length in ms
+        -d      Delay in ms
+        -r      Repetitions
+        -n      Start new tone
+ +
+
blkid
+
+ +

blkid [BLOCKDEV]...

+ +

Print UUIDs of all filesystems

+ +
+
blockdev
+
+ +

blockdev OPTION BLOCKDEV

+ +
        --setro         Set ro
+        --setrw         Set rw
+        --getro         Get ro
+        --getss         Get sector size
+        --getbsz        Get block size
+        --setbsz BYTES  Set block size
+        --getsz         Get device size in 512-byte sectors
+        --getsize64     Get device size in bytes
+        --flushbufs     Flush buffers
+        --rereadpt      Reread partition table
+ +
+
bootchartd
+
+ +

bootchartd start [PROG ARGS]|stop|init

+ +

Create /var/log/bootchart.tgz with boot chart data

+ +

start: start background logging; with PROG, run PROG, then kill logging with USR1 stop: send USR1 to all bootchartd processes init: start background logging; stop when getty/xdm is seen (for init scripts) Under PID 1: as init, then exec $bootchart_init, /init, /sbin/init

+ +
+
brctl
+
+ +

brctl COMMAND [BRIDGE [INTERFACE]]

+ +

Manage ethernet bridges

+ +

Commands:

+ +
        show                    Show a list of bridges
+        addbr BRIDGE            Create BRIDGE
+        delbr BRIDGE            Delete BRIDGE
+        addif BRIDGE IFACE      Add IFACE to BRIDGE
+        delif BRIDGE IFACE      Delete IFACE from BRIDGE
+        setageing BRIDGE TIME           Set ageing time
+        setfd BRIDGE TIME               Set bridge forward delay
+        sethello BRIDGE TIME            Set hello time
+        setmaxage BRIDGE TIME           Set max message age
+        setpathcost BRIDGE COST         Set path cost
+        setportprio BRIDGE PRIO         Set port priority
+        setbridgeprio BRIDGE PRIO       Set bridge priority
+        stp BRIDGE [1/yes/on|0/no/off]  STP on/off
+ +
+
bunzip2
+
+ +

bunzip2 [-cf] [FILE]...

+ +

Decompress FILEs (or stdin)

+ +
        -c      Write to stdout
+        -f      Force
+ +
+
bzcat
+
+ +

bzcat FILE

+ +

Decompress to stdout

+ +
+
bzip2
+
+ +

bzip2 [OPTIONS] [FILE]...

+ +

Compress FILEs (or stdin) with bzip2 algorithm

+ +
        -1..9   Compression level
+        -d      Decompress
+        -c      Write to stdout
+        -f      Force
+ +
+
cal
+
+ +

cal [-jy] [[MONTH] YEAR]

+ +

Display a calendar

+ +
        -j      Use julian dates
+        -y      Display the entire year
+ +
+
cat
+
+ +

cat [FILE]...

+ +

Concatenate FILEs and print them to stdout

+ +
+
catv
+
+ +

catv [-etv] [FILE]...

+ +

Display nonprinting characters as ^x or M-x

+ +
        -e      End each line with $
+        -t      Show tabs as ^I
+        -v      Don't use ^x or M-x escapes
+ +
+
chat
+
+ +

chat EXPECT [SEND [EXPECT [SEND...]]]

+ +

Useful for interacting with a modem connected to stdin/stdout. A script consists of one or more "expect-send" pairs of strings, each pair is a pair of arguments. Example: chat '' ATZ OK ATD123456 CONNECT '' ogin: pppuser word: ppppass '~'

+ +
+
chattr
+
+ +

chattr [-R] [-+=AacDdijsStTu] [-v VERSION] [FILE]...

+ +

Change file attributes on an ext2 fs

+ +

Modifiers:

+ +
        -       Remove attributes
+        +       Add attributes
+        =       Set attributes
+Attributes:
+
+        A       Don't track atime
+        a       Append mode only
+        c       Enable compress
+        D       Write dir contents synchronously
+        d       Don't backup with dump
+        i       Cannot be modified (immutable)
+        j       Write all data to journal first
+        s       Zero disk storage when deleted
+        S       Write file contents synchronously
+        t       Disable tail-merging of partial blocks with other files
+        u       Allow file to be undeleted
+        -R      Recurse
+        -v      Set the file's version/generation number
+ +
+
chgrp
+
+ +

chgrp [-RhLHPcvf]... GROUP FILE...

+ +

Change the group membership of each FILE to GROUP

+ +
        -R      Recurse
+        -h      Affect symlinks instead of symlink targets
+        -L      Traverse all symlinks to directories
+        -H      Traverse symlinks on command line only
+        -P      Don't traverse symlinks (default)
+        -c      List changed files
+        -v      Verbose
+        -f      Hide errors
+ +
+
chmod
+
+ +

chmod [-Rcvf] MODE[,MODE]... FILE...

+ +

Each MODE is one or more of the letters ugoa, one of the symbols +-= and one or more of the letters rwxst

+ +
        -R      Recurse
+        -c      List changed files
+        -v      List all files
+        -f      Hide errors
+ +
+
chown
+
+ +

chown [-RhLHPcvf]... OWNER[<.|:>[GROUP]] FILE...

+ +

Change the owner and/or group of each FILE to OWNER and/or GROUP

+ +
        -R      Recurse
+        -h      Affect symlinks instead of symlink targets
+        -L      Traverse all symlinks to directories
+        -H      Traverse symlinks on command line only
+        -P      Don't traverse symlinks (default)
+        -c      List changed files
+        -v      List all files
+        -f      Hide errors
+ +
+
chpasswd
+
+ +

chpasswd [--md5|--encrypted]

+ +

Read user:password from stdin and update /etc/passwd

+ +
        -e,--encrypted  Supplied passwords are in encrypted form
+        -m,--md5        Use MD5 encryption instead of DES
+ +
+
chpst
+
+ +

chpst [-vP012] [-u USER[:GRP]] [-U USER[:GRP]] [-e DIR] [-/ DIR] [-n NICE] [-m BYTES] [-d BYTES] [-o N] [-p N] [-f BYTES] [-c BYTES] PROG ARGS

+ +

Change the process state, run PROG

+ +
        -u USER[:GRP]   Set uid and gid
+        -U USER[:GRP]   Set $UID and $GID in environment
+        -e DIR          Set environment variables as specified by files
+                        in DIR: file=1st_line_of_file
+        -/ DIR          Chroot to DIR
+        -n NICE         Add NICE to nice value
+        -m BYTES        Same as -d BYTES -s BYTES -l BYTES
+        -d BYTES        Limit data segment
+        -o N            Limit number of open files per process
+        -p N            Limit number of processes per uid
+        -f BYTES        Limit output file sizes
+        -c BYTES        Limit core file size
+        -v              Verbose
+        -P              Create new process group
+        -0              Close stdin
+        -1              Close stdout
+        -2              Close stderr
+ +
+
chroot
+
+ +

chroot NEWROOT [PROG ARGS]

+ +

Run PROG with root directory set to NEWROOT

+ +
+
chrt
+
+ +

chrt [-prfom] [PRIO] [PID | PROG ARGS]

+ +

Change scheduling priority and class for a process

+ +
        -p      Operate on PID
+        -r      Set SCHED_RR class
+        -f      Set SCHED_FIFO class
+        -o      Set SCHED_OTHER class
+        -m      Show min/max priorities
+ +
+
chvt
+
+ +

chvt N

+ +

Change the foreground virtual terminal to /dev/ttyN

+ +
+
cksum
+
+ +

cksum FILES...

+ +

Calculate the CRC32 checksums of FILES

+ +
+
clear
+
+ +

clear

+ +

Clear screen

+ +
+
cmp
+
+ +

cmp [-l] [-s] FILE1 [FILE2 [SKIP1 [SKIP2]]]

+ +

Compare FILE1 with FILE2 (or stdin)

+ +
        -l      Write the byte numbers (decimal) and values (octal)
+                for all differing bytes
+        -s      Quiet
+ +
+
comm
+
+ +

comm [-123] FILE1 FILE2

+ +

Compare FILE1 with FILE2

+ +
        -1      Suppress lines unique to FILE1
+        -2      Suppress lines unique to FILE2
+        -3      Suppress lines common to both files
+ +
+
conspy
+
+ +

conspy [-vcsndfFQ] [-x COL] [-y LINE] [CONSOLE_NO]

+ +

A text-mode VNC like program for Linux virtual consoles. To exit, quickly press ESC 3 times.

+ +
        -v      Don't send keystrokes to the console
+        -c      Create missing /dev/{tty,vcsa}N
+        -s      Open a SHELL session
+        -n      Black & white
+        -d      Dump console to stdout
+        -f      Follow cursor
+        -F      Assume console is on a framebuffer device
+        -Q      Disable exit on ESC-ESC-ESC
+        -x COL  Starting column
+        -y LINE Starting line
+ +
+
cp
+
+ +

cp [OPTIONS] SOURCE... DEST

+ +

Copy SOURCE(s) to DEST

+ +
        -a      Same as -dpR
+        -R,-r   Recurse
+        -d,-P   Preserve symlinks (default if -R)
+        -L      Follow all symlinks
+        -H      Follow symlinks on command line
+        -p      Preserve file attributes if possible
+        -f      Overwrite
+        -i      Prompt before overwrite
+        -l,-s   Create (sym)links
+ +
+
cpio
+
+ +

cpio [-dmvu] [-F FILE] [-H newc] [-tio] [-p DIR] [EXTR_FILE]...

+ +

Extract or list files from a cpio archive, or create an archive (-o) or copy files (-p) using file list on stdin

+ +

Main operation mode:

+ +
        -t      List
+        -i      Extract EXTR_FILEs (or all)
+        -o      Create (requires -H newc)
+        -p DIR  Copy files to DIR
+        -d      Make leading directories
+        -m      Preserve mtime
+        -v      Verbose
+        -u      Overwrite
+        -F FILE Input (-t,-i,-p) or output (-o) file
+        -H newc Archive format
+ +
+
crond
+
+ +

crond -fbS -l N -d N -L LOGFILE -c DIR

+ +
        -f      Foreground
+        -b      Background (default)
+        -S      Log to syslog (default)
+        -l      Set log level. 0 is the most verbose, default 8
+        -d      Set log level, log to stderr
+        -L      Log to file
+        -c      Working dir
+ +
+
crontab
+
+ +

crontab [-c DIR] [-u USER] [-ler]|[FILE]

+ +
        -c      Crontab directory
+        -u      User
+        -l      List crontab
+        -e      Edit crontab
+        -r      Delete crontab
+        FILE    Replace crontab by FILE ('-': stdin)
+ +
+
cryptpw
+
+ +

cryptpw [OPTIONS] [PASSWORD] [SALT]

+ +

Crypt PASSWORD using crypt(3)

+ +
        -P,--password-fd=N      Read password from fd N
+        -m,--method=TYPE        Encryption method
+        -S,--salt=SALT
+ +
+
cttyhack
+
+ +

cttyhack [PROG ARGS]

+ +

Give PROG a controlling tty if possible. Example for /etc/inittab (for busybox init): ::respawn:/bin/cttyhack /bin/sh Giving controlling tty to shell running with PID 1: $ exec cttyhack sh Starting interactive shell from boot shell script:

+ +
        setsid cttyhack sh
+ +
+
cut
+
+ +

cut [OPTIONS] [FILE]...

+ +

Print selected fields from each input FILE to stdout

+ +
        -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      Output only the lines containing delimiter
+        -f N    Print only these fields
+        -n      Ignored
+ +
+
date
+
+ +

date [OPTIONS] [+FMT] [TIME]

+ +

Display time (using +FMT), or set time

+ +
        [-s,--set] TIME Set time to TIME
+        -u,--utc        Work in UTC (don't convert to local time)
+        -R,--rfc-2822   Output RFC-2822 compliant date string
+        -I[SPEC]        Output ISO-8601 compliant date string
+                        SPEC='date' (default) for date only,
+                        'hours', 'minutes', or 'seconds' for date and
+                        time to the indicated precision
+        -r,--reference FILE     Display last modification time of FILE
+        -d,--date TIME  Display TIME, not 'now'
+        -D FMT          Use FMT for -d TIME conversion
+ +

Recognized TIME formats:

+ +
        hh:mm[:ss]
+        [YYYY.]MM.DD-hh:mm[:ss]
+        YYYY-MM-DD hh:mm[:ss]
+        [[[[[YY]YY]MM]DD]hh]mm[.ss]
+        'date TIME' form accepts MMDDhhmm[[YY]YY][.ss] instead
+ +
+
dc
+
+ +

dc EXPRESSION...

+ +

Tiny RPN calculator. Operations: +, add, -, sub, *, mul, /, div, %, mod, **, exp, and, or, not, eor, p - print top of the stack (without popping), f - print entire stack, o - pop the value and set output radix (must be 10, 16, 8 or 2). Examples: 'dc 2 2 add p' -> 4, 'dc 8 8 * 2 2 + / p' -> 16

+ +
+
dd
+
+ +

dd [if=FILE] [of=FILE] [ibs=N] [obs=N] [bs=N] [count=N] [skip=N] [seek=N] [conv=notrunc|noerror|sync|fsync]

+ +

Copy a file with converting and formatting

+ +
        if=FILE         Read from FILE instead of stdin
+        of=FILE         Write to FILE instead of stdout
+        bs=N            Read and write N bytes at a time
+        ibs=N           Read N bytes at a time
+        obs=N           Write N bytes at a time
+        count=N         Copy only N input blocks
+        skip=N          Skip N input blocks
+        seek=N          Skip N output blocks
+        conv=notrunc    Don't truncate output file
+        conv=noerror    Continue after read errors
+        conv=sync       Pad blocks with zeros
+        conv=fsync      Physically write data out before finishing
+ +

Numbers may be suffixed by c (x1), w (x2), b (x512), kD (x1000), k (x1024), MD (x1000000), M (x1048576), GD (x1000000000) or G (x1073741824)

+ +
+
deallocvt
+
+ +

deallocvt [N]

+ +

Deallocate unused virtual terminal /dev/ttyN

+ +
+
delgroup
+
+ +

delgroup [USER] GROUP

+ +

Delete group GROUP from the system or user USER from group GROUP

+ +
+
deluser
+
+ +

deluser USER

+ +

Delete USER from the system

+ +
+
depmod
+
+ +

depmod [-qfwrsv] MODULE [symbol=value]...

+ +
        -r      Remove MODULE (stacks) or do autoclean
+        -q      Quiet
+        -v      Verbose
+        -f      Force
+        -w      Wait for unload
+        -s      Report via syslog instead of stderr
+ +
+
devmem
+
+ +

devmem ADDRESS [WIDTH [VALUE]]

+ +

Read/write from physical address

+ +
        ADDRESS Address to act upon
+        WIDTH   Width (8/16/...)
+        VALUE   Data to be written
+ +
+
df
+
+ +

df [-Pkmhai] [-B SIZE] [FILESYSTEM]...

+ +

Print filesystem usage statistics

+ +
        -P      POSIX output format
+        -k      1024-byte blocks (default)
+        -m      1M-byte blocks
+        -h      Human readable (e.g. 1K 243M 2G)
+        -a      Show all filesystems
+        -i      Inodes
+        -B SIZE Blocksize
+ +
+
dhcprelay
+
+ +

dhcprelay CLIENT_IFACE[,CLIENT_IFACE2]... SERVER_IFACE [SERVER_IP]

+ +

Relay DHCP requests between clients and server

+ +
+
diff
+
+ +

diff [-abBdiNqrTstw] [-L LABEL] [-S FILE] [-U LINES] FILE1 FILE2

+ +

Compare files line by line and output the differences between them. This implementation supports unified diffs only.

+ +
        -a      Treat all files as text
+        -b      Ignore changes in the amount of whitespace
+        -B      Ignore changes whose lines are all blank
+        -d      Try hard to find a smaller set of changes
+        -i      Ignore case differences
+        -L      Use LABEL instead of the filename in the unified header
+        -N      Treat absent files as empty
+        -q      Output only whether files differ
+        -r      Recurse
+        -S      Start with FILE when comparing directories
+        -T      Make tabs line up by prefixing a tab when necessary
+        -s      Report when two files are the same
+        -t      Expand tabs to spaces in output
+        -U      Output LINES lines of context
+        -w      Ignore all whitespace
+ +
+
dirname
+
+ +

dirname FILENAME

+ +

Strip non-directory suffix from FILENAME

+ +
+
dmesg
+
+ +

dmesg [-c] [-n LEVEL] [-s SIZE]

+ +

Print or control the kernel ring buffer

+ +
        -c              Clear ring buffer after printing
+        -n LEVEL        Set console logging level
+        -s SIZE         Buffer size
+ +
+
dnsd
+
+ +

dnsd [-dvs] [-c CONFFILE] [-t TTL_SEC] [-p PORT] [-i ADDR]

+ +

Small static DNS server daemon

+ +
        -c FILE Config file
+        -t SEC  TTL
+        -p PORT Listen on PORT
+        -i ADDR Listen on ADDR
+        -d      Daemonize
+        -v      Verbose
+        -s      Send successful replies only. Use this if you want
+                to use /etc/resolv.conf with two nameserver lines:
+                        nameserver DNSD_SERVER
+                        nameserver NORMAL_DNS_SERVER
+ +
+
dos2unix
+
+ +

dos2unix [-ud] [FILE]

+ +

Convert FILE in-place from DOS to Unix format. When no file is given, use stdin/stdout.

+ +
        -u      dos2unix
+        -d      unix2dos
+ +
+
du
+
+ +

du [-aHLdclsxhmk] [FILE]...

+ +

Summarize disk space used for each FILE and/or directory

+ +
        -a      Show file sizes too
+        -L      Follow all symlinks
+        -H      Follow symlinks on command line
+        -d N    Limit output to directories (and files with -a) of depth < N
+        -c      Show grand total
+        -l      Count sizes many times if hard linked
+        -s      Display only a total for each argument
+        -x      Skip directories on different filesystems
+        -h      Sizes in human readable format (e.g., 1K 243M 2G)
+        -m      Sizes in megabytes
+        -k      Sizes in kilobytes (default)
+ +
+
dumpkmap
+
+ +

dumpkmap > keymap

+ +

Print a binary keyboard translation table to stdout

+ +
+
dumpleases
+
+ +

dumpleases [-r|-a] [-f LEASEFILE]

+ +

Display DHCP leases granted by udhcpd

+ +
        -f,--file=FILE  Lease file
+        -r,--remaining  Show remaining time
+        -a,--absolute   Show expiration time
+ +
+
echo
+
+ +

echo [-neE] [ARG]...

+ +

Print the specified ARGs to stdout

+ +
        -n      Suppress trailing newline
+        -e      Interpret backslash escapes (i.e., \t=tab)
+        -E      Don't interpret backslash escapes (default)
+ +
+
ed
+
+ +

ed

+ +
+
eject
+
+ +

eject [-t] [-T] [DEVICE]

+ +

Eject DEVICE or default /dev/cdrom

+ +
        -s      SCSI device
+        -t      Close tray
+        -T      Open/close tray (toggle)
+ +
+
env
+
+ +

env [-iu] [-] [name=value]... [PROG ARGS]

+ +

Print the current environment or run PROG after setting up the specified environment

+ +
        -, -i   Start with an empty environment
+        -u      Remove variable from the environment
+ +
+
envdir
+
+ +

envdir DIR PROG ARGS

+ +

Set various environment variables as specified by files in the directory DIR, run PROG

+ +
+
envuidgid
+
+ +

envuidgid USER PROG ARGS

+ +

Set $UID to USER's uid and $GID to USER's gid, run PROG

+ +
+
ether-wake
+
+ +

ether-wake [-b] [-i iface] [-p aa:bb:cc:dd[:ee:ff]] MAC

+ +

Send a magic packet to wake up sleeping machines. MAC must be a station address (00:11:22:33:44:55) or a hostname with a known 'ethers' entry.

+ +
        -b              Send wake-up packet to the broadcast address
+        -i iface        Interface to use (default eth0)
+        -p pass         Append four or six byte password PW to the packet
+ +
+
expand
+
+ +

expand [-i] [-t N] [FILE]...

+ +

Convert tabs to spaces, writing to stdout

+ +
        -i,--initial    Don't convert tabs after non blanks
+        -t,--tabs=N     Tabstops every N chars
+ +
+
expr
+
+ +

expr EXPRESSION

+ +

Print the value of EXPRESSION to stdout

+ +

EXPRESSION may be:

+ +
        ARG1 | ARG2     ARG1 if it is neither null nor 0, otherwise ARG2
+        ARG1 & ARG2     ARG1 if neither argument is null or 0, otherwise 0
+        ARG1 < ARG2     1 if ARG1 is less than ARG2, else 0. Similarly:
+        ARG1 <= ARG2
+        ARG1 = ARG2
+        ARG1 != ARG2
+        ARG1 >= ARG2
+        ARG1 > ARG2
+        ARG1 + ARG2     Sum of ARG1 and ARG2. Similarly:
+        ARG1 - ARG2
+        ARG1 * ARG2
+        ARG1 / ARG2
+        ARG1 % ARG2
+        STRING : REGEXP         Anchored pattern match of REGEXP in STRING
+        match STRING REGEXP     Same as STRING : REGEXP
+        substr STRING POS LENGTH Substring of STRING, POS counted from 1
+        index STRING CHARS      Index in STRING where any CHARS is found, or 0
+        length STRING           Length of STRING
+        quote TOKEN             Interpret TOKEN as a string, even if
+                                it is a keyword like 'match' or an
+                                operator like '/'
+        (EXPRESSION)            Value of EXPRESSION
+ +

Beware that many operators need to be escaped or quoted for shells. Comparisons are arithmetic if both ARGs are numbers, else lexicographical. Pattern matches return the string matched between \( and \) or null; if \( and \) are not used, they return the number of characters matched or 0.

+ +
+
fakeidentd
+
+ +

fakeidentd [-fiw] [-b ADDR] [STRING]

+ +

Provide fake ident (auth) service

+ +
        -f      Run in foreground
+        -i      Inetd mode
+        -w      Inetd 'wait' mode
+        -b ADDR Bind to specified address
+        STRING  Ident answer string (default: nobody)
+ +
+
false
+
+ +

false

+ +

Return an exit code of FALSE (1)

+ +
+
fbset
+
+ +

fbset [OPTIONS] [MODE]

+ +

Show and modify frame buffer settings

+ +
+
fbsplash
+
+ +

fbsplash -s IMGFILE [-c] [-d DEV] [-i INIFILE] [-f CMD]

+ +
        -s      Image
+        -c      Hide cursor
+        -d      Framebuffer device (default /dev/fb0)
+        -i      Config file (var=value):
+                        BAR_LEFT,BAR_TOP,BAR_WIDTH,BAR_HEIGHT
+                        BAR_R,BAR_G,BAR_B
+        -f      Control pipe (else exit after drawing image)
+                        commands: 'NN' (% for progress bar) or 'exit'
+ +
+
fdflush
+
+ +

fdflush DEVICE

+ +

Force floppy disk drive to detect disk change

+ +
+
fdformat
+
+ +

fdformat [-n] DEVICE

+ +

Format floppy disk

+ +
        -n      Don't verify after format
+ +
+
fdisk
+
+ +

fdisk [-ul] [-C CYLINDERS] [-H HEADS] [-S SECTORS] [-b SSZ] DISK

+ +

Change partition table

+ +
        -u              Start and End are in sectors (instead of cylinders)
+        -l              Show partition table for each DISK, then exit
+        -b 2048         (for certain MO disks) use 2048-byte sectors
+        -C CYLINDERS    Set number of cylinders/heads/sectors
+        -H HEADS
+        -S SECTORS
+ +
+
fgconsole
+
+ +

fgconsole

+ +

Get active console

+ +
+
find
+
+ +

find [PATH]... [OPTIONS] [ACTIONS]

+ +

Search for files and perform actions on them. First failed action stops processing of current file. Defaults: PATH is current directory, action is '-print'

+ +
        -follow         Follow symlinks
+        -xdev           Don't descend directories on other filesystems
+        -maxdepth N     Descend at most N levels. -maxdepth 0 applies
+                        actions to command line arguments only
+        -mindepth N     Don't act on first N levels
+        -depth          Act on directory *after* traversing it
+ +

Actions:

+ +
        ( ACTIONS )     Group actions for -o / -a
+        ! ACT           Invert ACT's success/failure
+        ACT1 [-a] ACT2  If ACT1 fails, stop, else do ACT2
+        ACT1 -o ACT2    If ACT1 succeeds, stop, else do ACT2
+                        Note: -a has higher priority than -o
+        -name PATTERN   Match file name (w/o directory name) to PATTERN
+        -iname PATTERN  Case insensitive -name
+        -path PATTERN   Match path to PATTERN
+        -ipath PATTERN  Case insensitive -path
+        -regex PATTERN  Match path to regex PATTERN
+        -type X         File type is X (one of: f,d,l,b,c,...)
+        -perm MASK      At least one mask bit (+MASK), all bits (-MASK),
+                        or exactly MASK bits are set in file's mode
+        -mtime DAYS     mtime is greater than (+N), less than (-N),
+                        or exactly N days in the past
+        -mmin MINS      mtime is greater than (+N), less than (-N),
+                        or exactly N minutes in the past
+        -newer FILE     mtime is more recent than FILE's
+        -inum N         File has inode number N
+        -user NAME/ID   File is owned by given user
+        -group NAME/ID  File is owned by given group
+        -size N[bck]    File size is N (c:bytes,k:kbytes,b:512 bytes(def.))
+                        +/-N: file size is bigger/smaller than N
+        -links N        Number of links is greater than (+N), less than (-N),
+                        or exactly N
+        -prune          If current file is directory, don't descend into it
+If none of the following actions is specified, -print is assumed
+        -print          Print file name
+        -print0         Print file name, NUL terminated
+        -exec CMD ARG ; Run CMD with all instances of {} replaced by
+                        file name. Fails if CMD exits with nonzero
+        -delete         Delete current file/directory. Turns on -depth option
+ +
+
findfs
+
+ +

findfs LABEL=label or UUID=uuid

+ +

Find a filesystem device based on a label or UUID

+ +
+
flash_eraseall
+
+ +

flash_eraseall [-jq] MTD_DEVICE

+ +

Erase an MTD device

+ +
        -j      Format the device for jffs2
+        -q      Don't display progress messages
+ +
+
flock
+
+ +

flock [-sxun] FD|{FILE [-c] PROG ARGS}

+ +

[Un]lock file descriptor, or lock FILE, run PROG

+ +
        -s      Shared lock
+        -x      Exclusive lock (default)
+        -u      Unlock FD
+        -n      Fail rather than wait
+ +
+
fold
+
+ +

fold [-bs] [-w WIDTH] [FILE]...

+ +

Wrap input lines in each FILE (or stdin), writing to stdout

+ +
        -b      Count bytes rather than columns
+        -s      Break at spaces
+        -w      Use WIDTH columns instead of 80
+ +
+
free
+
+ +

free [-b/k/m/g]

+ +

Display the amount of free and used system memory

+ +
+
freeramdisk
+
+ +

freeramdisk DEVICE

+ +

Free all memory used by the specified ramdisk

+ +
+
fsck
+
+ +

fsck [-ANPRTV] [-C FD] [-t FSTYPE] [FS_OPTS] [BLOCKDEV]...

+ +

Check and repair filesystems

+ +
        -A      Walk /etc/fstab and check all filesystems
+        -N      Don't execute, just show what would be done
+        -P      With -A, check filesystems in parallel
+        -R      With -A, skip the root filesystem
+        -T      Don't show title on startup
+        -V      Verbose
+        -C n    Write status information to specified filedescriptor
+        -t TYPE List of filesystem types to check
+ +
+
fsck.minix
+
+ +

fsck.minix [-larvsmf] BLOCKDEV

+ +

Check MINIX filesystem

+ +
        -l      List all filenames
+        -r      Perform interactive repairs
+        -a      Perform automatic repairs
+        -v      Verbose
+        -s      Output superblock information
+        -m      Show "mode not cleared" warnings
+        -f      Force file system check
+ +
+
fsync
+
+ +

fsync [-d] FILE...

+ +

Write files' buffered blocks to disk

+ +
        -d      Avoid syncing metadata
+ +
+
ftpd
+
+ +

ftpd [-wvS] [-t N] [-T N] [DIR]

+ +

Anonymous FTP server

+ +

ftpd should be used as an inetd service. ftpd's line for inetd.conf: 21 stream tcp nowait root ftpd ftpd /files/to/serve It also can be ran from tcpsvd:

+ +
        tcpsvd -vE 0.0.0.0 21 ftpd /files/to/serve
+
+        -w      Allow upload
+        -v      Log errors to stderr. -vv: verbose log
+        -S      Log errors to syslog. -SS: verbose log
+        -t,-T   Idle and absolute timeouts
+        DIR     Change root to this directory
+ +
+
ftpget
+
+ +

ftpget [OPTIONS] HOST [LOCAL_FILE] REMOTE_FILE

+ +

Download a file via FTP

+ +
        -c,--continue           Continue previous transfer
+        -v,--verbose            Verbose
+        -u,--username USER      Username
+        -p,--password PASS      Password
+        -P,--port NUM           Port
+ +
+
ftpput
+
+ +

ftpput [OPTIONS] HOST [REMOTE_FILE] LOCAL_FILE

+ +

Upload a file to a FTP server

+ +
        -v,--verbose            Verbose
+        -u,--username USER      Username
+        -p,--password PASS      Password
+        -P,--port NUM           Port
+ +
+
fuser
+
+ +

fuser [OPTIONS] FILE or PORT/PROTO

+ +

Find processes which use FILEs or PORTs

+ +
        -m      Find processes which use same fs as FILEs
+        -4,-6   Search only IPv4/IPv6 space
+        -s      Don't display PIDs
+        -k      Kill found processes
+        -SIGNAL Signal to send (default: KILL)
+ +
+
getopt
+
+ +

getopt [OPTIONS] [--] OPTSTRING PARAMS

+ +
        -a,--alternative                Allow long options starting with single -
+        -l,--longoptions=LOPT[,...]     Long options to be recognized
+        -n,--name=PROGNAME              The name under which errors are reported
+        -o,--options=OPTSTRING          Short options to be recognized
+        -q,--quiet                      Disable error reporting by getopt(3)
+        -Q,--quiet-output               No normal output
+        -s,--shell=SHELL                Set shell quoting conventions
+        -T,--test                       Test for getopt(1) version
+        -u,--unquoted                   Don't quote the output
+ +

Example:

+ +

O=`getopt -l bb: -- ab:c:: "$@"` || exit 1 eval set -- "$O" while true; do case "$1" in -a) echo A; shift;; -b|--bb) echo "B:'$2'"; shift 2;; -c) case "$2" in "") echo C; shift 2;; *) echo "C:'$2'"; shift 2;; esac;; --) shift; break;; *) echo Error; exit 1;; esac done

+ +
+
getty
+
+ +

getty [OPTIONS] BAUD_RATE[,BAUD_RATE]... TTY [TERMTYPE]

+ +

Open TTY, prompt for login name, then invoke /bin/login

+ +
        -h              Enable hardware RTS/CTS flow control
+        -L              Set CLOCAL (ignore Carrier Detect state)
+        -m              Get baud rate from modem's CONNECT status message
+        -n              Don't prompt for login name
+        -w              Wait for CR or LF before sending /etc/issue
+        -i              Don't display /etc/issue
+        -f ISSUE_FILE   Display ISSUE_FILE instead of /etc/issue
+        -l LOGIN        Invoke LOGIN instead of /bin/login
+        -t SEC          Terminate after SEC if no login name is read
+        -I INITSTR      Send INITSTR before anything else
+        -H HOST         Log HOST into the utmp file as the hostname
+ +

BAUD_RATE of 0 leaves it unchanged

+ +
+
grep
+
+ +

grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]...

+ +

Search for PATTERN in FILEs (or stdin)

+ +
        -H      Add 'filename:' prefix
+        -h      Do not add 'filename:' prefix
+        -n      Add 'line_no:' prefix
+        -l      Show only names of files that match
+        -L      Show only names of files that don't match
+        -c      Show only count of matching lines
+        -o      Show only the matching part of line
+        -q      Quiet. Return 0 if PATTERN is found, 1 otherwise
+        -v      Select non-matching lines
+        -s      Suppress open and read errors
+        -r      Recurse
+        -i      Ignore case
+        -w      Match whole words only
+        -x      Match whole lines only
+        -F      PATTERN is a literal (not regexp)
+        -E      PATTERN is an extended regexp
+        -m N    Match up to N times per file
+        -A N    Print N lines of trailing context
+        -B N    Print N lines of leading context
+        -C N    Same as '-A N -B N'
+        -e PTRN Pattern to match
+        -f FILE Read pattern from file
+ +
+
groups
+
+ +

groups [USER]

+ +

Print the group memberships of USER or for the current process

+ +
+
gunzip
+
+ +

gunzip [-cft] [FILE]...

+ +

Decompress FILEs (or stdin)

+ +
        -c      Write to stdout
+        -f      Force
+        -t      Test file integrity
+ +
+
gzip
+
+ +

gzip [-cfd] [FILE]...

+ +

Compress FILEs (or stdin)

+ +
        -d      Decompress
+        -c      Write to stdout
+        -f      Force
+ +
+
halt
+
+ +

halt [-d DELAY] [-n] [-f] [-w]

+ +

Halt the system

+ +
        -d SEC  Delay interval
+        -n      Do not sync
+        -f      Force (don't go through init)
+        -w      Only write a wtmp record
+ +
+
hd
+
+ +

hd FILE...

+ +

hd is an alias for hexdump -C

+ +
+
hdparm
+
+ +

hdparm [OPTIONS] [DEVICE]

+ +
        -a      Get/set fs readahead
+        -A      Set drive read-lookahead flag (0/1)
+        -b      Get/set bus state (0 == off, 1 == on, 2 == tristate)
+        -B      Set Advanced Power Management setting (1-255)
+        -c      Get/set IDE 32-bit IO setting
+        -C      Check IDE power mode status
+        -d      Get/set using_dma flag
+        -D      Enable/disable drive defect-mgmt
+        -f      Flush buffer cache for device on exit
+        -g      Display drive geometry
+        -h      Display terse usage information
+        -i      Display drive identification
+        -I      Detailed/current information directly from drive
+        -k      Get/set keep_settings_over_reset flag (0/1)
+        -K      Set drive keep_features_over_reset flag (0/1)
+        -L      Set drive doorlock (0/1) (removable harddisks only)
+        -m      Get/set multiple sector count
+        -n      Get/set ignore-write-errors flag (0/1)
+        -p      Set PIO mode on IDE interface chipset (0,1,2,3,4,...)
+        -P      Set drive prefetch count
+        -Q      Get/set DMA tagged-queuing depth (if supported)
+        -r      Get/set readonly flag (DANGEROUS to set)
+        -R      Register an IDE interface (DANGEROUS)
+        -S      Set standby (spindown) timeout
+        -t      Perform device read timings
+        -T      Perform cache read timings
+        -u      Get/set unmaskirq flag (0/1)
+        -U      Unregister an IDE interface (DANGEROUS)
+        -v      Defaults; same as -mcudkrag for IDE drives
+        -V      Display program version and exit immediately
+        -w      Perform device reset (DANGEROUS)
+        -W      Set drive write-caching flag (0/1) (DANGEROUS)
+        -x      Tristate device for hotswap (0/1) (DANGEROUS)
+        -X      Set IDE xfer mode (DANGEROUS)
+        -y      Put IDE drive in standby mode
+        -Y      Put IDE drive to sleep
+        -Z      Disable Seagate auto-powersaving mode
+        -z      Reread partition table
+ +
+ +
+ +

head [OPTIONS] [FILE]...

+ +

Print first 10 lines of each FILE (or stdin) to stdout. With more than one FILE, precede each with a filename header.

+ +
        -n N[kbm]       Print first N lines
+        -c N[kbm]       Print first N bytes
+        -q              Never print headers
+        -v              Always print headers
+ +

N may be suffixed by k (x1024), b (x512), or m (x1024^2).

+ +
+
hexdump
+
+ +

hexdump [-bcCdefnosvxR] [FILE]...

+ +

Display FILEs (or stdin) in a user specified format

+ +
        -b              One-byte octal display
+        -c              One-byte character display
+        -C              Canonical hex+ASCII, 16 bytes per line
+        -d              Two-byte decimal display
+        -e FORMAT_STRING
+        -f FORMAT_FILE
+        -n LENGTH       Interpret only LENGTH bytes of input
+        -o              Two-byte octal display
+        -s OFFSET       Skip OFFSET bytes
+        -v              Display all input data
+        -x              Two-byte hexadecimal display
+        -R              Reverse of 'hexdump -Cv'
+ +
+
hostid
+
+ +

hostid

+ +

Print out a unique 32-bit identifier for the machine

+ +
+
hostname
+
+ +

hostname [OPTIONS] [HOSTNAME | -F FILE]

+ +

Get or set hostname or DNS domain name

+ +
        -s      Short
+        -i      Addresses for the hostname
+        -d      DNS domain name
+        -f      Fully qualified domain name
+        -F FILE Use FILE's content as hostname
+ +
+
httpd
+
+ +

httpd [-ifv[v]] [-c CONFFILE] [-p [IP:]PORT] [-u USER[:GRP]] [-r REALM] [-h HOME] or httpd -d/-e/-m STRING

+ +

Listen for incoming HTTP requests

+ +
        -i              Inetd mode
+        -f              Don't daemonize
+        -v[v]           Verbose
+        -p [IP:]PORT    Bind to IP:PORT (default *:80)
+        -u USER[:GRP]   Set uid/gid after binding to port
+        -r REALM        Authentication Realm for Basic Authentication
+        -h HOME         Home directory (default .)
+        -c FILE         Configuration file (default {/etc,HOME}/httpd.conf)
+        -m STRING       MD5 crypt STRING
+        -e STRING       HTML encode STRING
+        -d STRING       URL decode STRING
+ +
+
hush
+
+ +

hush [-nxl] [-c 'SCRIPT' [ARG0 [ARGS]] / FILE [ARGS]]

+ +

Unix shell interpreter

+ +
+
hwclock
+
+ +

hwclock [-r|--show] [-s|--hctosys] [-w|--systohc] [-t|--systz] [-l|--localtime] [-u|--utc] [-f|--rtc FILE]

+ +

Query and set hardware clock (RTC)

+ +
        -r      Show hardware clock time
+        -s      Set system time from hardware clock
+        -w      Set hardware clock from system time
+        -t      Set in-kernel timezone, correct system time
+                if hardware clock is in local time
+        -u      Assume hardware clock is kept in UTC
+        -l      Assume hardware clock is kept in local time
+        -f FILE Use specified device (e.g. /dev/rtc2)
+ +
+
id
+
+ +

id [OPTIONS] [USER]

+ +

Print information about USER or the current user

+ +
        -u      User ID
+        -g      Group ID
+        -G      Supplementary group IDs
+        -n      Print names instead of numbers
+        -r      Print real ID instead of effective ID
+ +
+
ifconfig
+
+ +

ifconfig [-a] interface [address]

+ +

Configure a network interface

+ +
        [add ADDRESS[/PREFIXLEN]]
+        [del ADDRESS[/PREFIXLEN]]
+        [[-]broadcast [ADDRESS]] [[-]pointopoint [ADDRESS]]
+        [netmask ADDRESS] [dstaddr ADDRESS]
+        [outfill NN] [keepalive NN]
+        [hw ether|infiniband ADDRESS] [metric NN] [mtu NN]
+        [[-]trailers] [[-]arp] [[-]allmulti]
+        [multicast] [[-]promisc] [txqueuelen NN] [[-]dynamic]
+        [mem_start NN] [io_addr NN] [irq NN]
+        [up|down] ...
+ +
+
ifdown
+
+ +

ifdown [-anmvf] [-i FILE] IFACE...

+ +
        -a      De/configure all interfaces automatically
+        -i FILE Use FILE for interface definitions
+        -n      Print out what would happen, but don't do it
+                (note: doesn't disable mappings)
+        -m      Don't run any mappings
+        -v      Print out what would happen before doing it
+        -f      Force de/configuration
+ +
+
ifenslave
+
+ +

ifenslave [-cdf] MASTER_IFACE SLAVE_IFACE...

+ +

Configure network interfaces for parallel routing

+ +
        -c,--change-active      Change active slave
+        -d,--detach             Remove slave interface from bonding device
+        -f,--force              Force, even if interface is not Ethernet
+ +
+
ifplugd
+
+ +

ifplugd [OPTIONS]

+ +

Network interface plug detection daemon

+ +
        -n              Don't daemonize
+        -s              Don't log to syslog
+        -i IFACE        Interface
+        -f/-F           Treat link detection error as link down/link up
+                        (otherwise exit on error)
+        -a              Don't up interface at each link probe
+        -M              Monitor creation/destruction of interface
+                        (otherwise it must exist)
+        -r PROG         Script to run
+        -x ARG          Extra argument for script
+        -I              Don't exit on nonzero exit code from script
+        -p              Don't run script on daemon startup
+        -q              Don't run script on daemon quit
+        -l              Run script on startup even if no cable is detected
+        -t SECS         Poll time in seconds
+        -u SECS         Delay before running script after link up
+        -d SECS         Delay after link down
+        -m MODE         API mode (mii, priv, ethtool, wlan, iff, auto)
+        -k              Kill running daemon
+ +
+
ifup
+
+ +

ifup [-anmvf] [-i FILE] IFACE...

+ +
        -a      De/configure all interfaces automatically
+        -i FILE Use FILE for interface definitions
+        -n      Print out what would happen, but don't do it
+                (note: doesn't disable mappings)
+        -m      Don't run any mappings
+        -v      Print out what would happen before doing it
+        -f      Force de/configuration
+ +
+
inetd
+
+ +

inetd [-fe] [-q N] [-R N] [CONFFILE]

+ +

Listen for network connections and launch programs

+ +
        -f      Run in foreground
+        -e      Log to stderr
+        -q N    Socket listen queue (default: 128)
+        -R N    Pause services after N connects/min
+                (default: 0 - disabled)
+ +
+
init
+
+ +

init

+ +

Init is the parent of all processes

+ +
+
insmod
+
+ +

insmod [-qfwrsv] MODULE [symbol=value]...

+ +
        -r      Remove MODULE (stacks) or do autoclean
+        -q      Quiet
+        -v      Verbose
+        -f      Force
+        -w      Wait for unload
+        -s      Report via syslog instead of stderr
+ +
+
install
+
+ +

install [-cdDsp] [-o USER] [-g GRP] [-m MODE] [SOURCE]... DEST

+ +

Copy files and set attributes

+ +
        -c      Just copy (default)
+        -d      Create directories
+        -D      Create leading target directories
+        -s      Strip symbol table
+        -p      Preserve date
+        -o USER Set ownership
+        -g GRP  Set group ownership
+        -m MODE Set permissions
+ +
+
ionice
+
+ +

ionice [-c 1-3] [-n 0-7] [-p PID] [PROG]

+ +

Change I/O priority and class

+ +
        -c      Class. 1:realtime 2:best-effort 3:idle
+        -n      Priority
+ +
+
iostat
+
+ +

iostat [-c] [-d] [-t] [-z] [-k|-m] [ALL|BLOCKDEV...] [INTERVAL [COUNT]]

+ +

Report CPU and I/O statistics

+ +
        -c      Show CPU utilization
+        -d      Show device utilization
+        -t      Print current time
+        -z      Omit devices with no activity
+        -k      Use kb/s
+        -m      Use Mb/s
+ +
+
ip
+
+ +

ip [OPTIONS] {address | route | link | tunnel | rule} {COMMAND}

+ +

ip [OPTIONS] OBJECT {COMMAND} where OBJECT := {address | route | link | tunnel | rule} OPTIONS := { -f[amily] { inet | inet6 | link } | -o[neline] }

+ +
+
ipaddr
+
+ +

ipaddr { {add|del} IFADDR dev STRING | {show|flush} [dev STRING] [to PREFIX] }

+ +

ipaddr {add|delete} IFADDR dev STRING ipaddr {show|flush} [dev STRING] [scope SCOPE-ID] [to PREFIX] [label PATTERN] IFADDR := PREFIX | ADDR peer PREFIX [broadcast ADDR] [anycast ADDR] [label STRING] [scope SCOPE-ID] SCOPE-ID := [host | link | global | NUMBER]

+ +
+
ipcalc
+
+ +

ipcalc [OPTIONS] ADDRESS[[/]NETMASK] [NETMASK]

+ +

Calculate IP network settings from a IP address

+ +
        -b,--broadcast  Display calculated broadcast address
+        -n,--network    Display calculated network address
+        -m,--netmask    Display default netmask for IP
+        -p,--prefix     Display the prefix for IP/NETMASK
+        -h,--hostname   Display first resolved host name
+        -s,--silent     Don't ever display error messages
+ +
+
ipcrm
+
+ +

ipcrm [-MQS key] [-mqs id]

+ +

Upper-case options MQS remove an object by shmkey value. Lower-case options remove an object by shmid value.

+ +
        -mM     Remove memory segment after last detach
+        -qQ     Remove message queue
+        -sS     Remove semaphore
+ +
+
ipcs
+
+ +

ipcs [[-smq] -i shmid] | [[-asmq] [-tcplu]]

+ +
        -i      Show specific resource
+Resource specification:
+
+        -m      Shared memory segments
+        -q      Message queues
+        -s      Semaphore arrays
+        -a      All (default)
+Output format:
+
+        -t      Time
+        -c      Creator
+        -p      Pid
+        -l      Limits
+        -u      Summary
+ +
+ +
+ +

iplink { set DEVICE { up | down | arp { on | off } | show [DEVICE] }

+ +

iplink set DEVICE { up | down | arp | multicast { on | off } | dynamic { on | off } | mtu MTU } iplink show [DEVICE]

+ +
+
iproute
+
+ +

iproute { list | flush | add | del | change | append | replace | test } ROUTE

+ +

iproute { list | flush } SELECTOR iproute get ADDRESS [from ADDRESS iif STRING] [oif STRING] [tos TOS] iproute { add | del | change | append | replace | test } ROUTE SELECTOR := [root PREFIX] [match PREFIX] [proto RTPROTO] ROUTE := [TYPE] PREFIX [tos TOS] [proto RTPROTO] [metric METRIC]

+ +
+
iprule
+
+ +

iprule {[list | add | del] RULE}

+ +

iprule [list | add | del] SELECTOR ACTION SELECTOR := [from PREFIX] [to PREFIX] [tos TOS] [fwmark FWMARK] [dev STRING] [pref NUMBER] ACTION := [table TABLE_ID] [nat ADDRESS] [prohibit | reject | unreachable] [realms [SRCREALM/]DSTREALM] TABLE_ID := [local | main | default | NUMBER]

+ +
+
iptunnel
+
+ +

iptunnel { add | change | del | show } [NAME] [mode { ipip | gre | sit }] [remote ADDR] [local ADDR] [ttl TTL]

+ +

iptunnel { add | change | del | show } [NAME] [mode { ipip | gre | sit }] [remote ADDR] [local ADDR] [[i|o]seq] [[i|o]key KEY] [[i|o]csum] [ttl TTL] [tos TOS] [[no]pmtudisc] [dev PHYS_DEV]

+ +
+
kbd_mode
+
+ +

kbd_mode [-a|k|s|u] [-C TTY]

+ +

Report or set the keyboard mode

+ +
        -a      Default (ASCII)
+        -k      Medium-raw (keyboard)
+        -s      Raw (scancode)
+        -u      Unicode (utf-8)
+        -C TTY  Affect TTY instead of /dev/tty
+ +
+
kill
+
+ +

kill [-l] [-SIG] PID...

+ +

Send a signal (default: TERM) to given PIDs

+ +
        -l      List all signal names and numbers
+ +
+
killall
+
+ +

killall [-l] [-q] [-SIG] PROCESS_NAME...

+ +

Send a signal (default: TERM) to given processes

+ +
        -l      List all signal names and numbers
+        -q      Don't complain if no processes were killed
+ +
+
killall5
+
+ +

killall5 [-l] [-SIG] [-o PID]...

+ +

Send a signal (default: TERM) to all processes outside current session

+ +
        -l      List all signal names and numbers
+        -o PID  Don't signal this PID
+ +
+
klogd
+
+ +

klogd [-c N] [-n]

+ +

Kernel logger

+ +
        -c N    Print to console messages more urgent than prio N (1-8)
+        -n      Run in foreground
+ +
+
last
+
+ +

last [-HW] [-f FILE]

+ +

Show listing of the last users that logged into the system

+ +
        -W      Display with no host column truncation
+        -f FILE Read from FILE instead of /var/log/wtmp
+ +
+
less
+
+ +

less [-EMmNh~I?] [FILE]...

+ +

View FILE (or stdin) one screenful at a time

+ +
        -E      Quit once the end of a file is reached
+        -M,-m   Display status line with line numbers
+                and percentage through the file
+        -N      Prefix line number to each line
+        -I      Ignore case in all searches
+        -~      Suppress ~s displayed past EOF
+ +
+
ln
+
+ +

ln [OPTIONS] TARGET... LINK|DIR

+ +

Create a link LINK or DIR/TARGET to the specified TARGET(s)

+ +
        -s      Make symlinks instead of hardlinks
+        -f      Remove existing destinations
+        -n      Don't dereference symlinks - treat like normal file
+        -b      Make a backup of the target (if exists) before link operation
+        -S suf  Use suffix instead of ~ when making backup files
+ +
+
loadfont
+
+ +

loadfont < font

+ +

Load a console font from stdin

+ +
+
loadkmap
+
+ +

loadkmap < keymap

+ +

Load a binary keyboard translation table from stdin

+ +
+
logger
+
+ +

logger [OPTIONS] [MESSAGE]

+ +

Write MESSAGE (or stdin) to syslog

+ +
        -s      Log to stderr as well as the system log
+        -t TAG  Log using the specified tag (defaults to user name)
+        -p PRIO Priority (numeric or facility.level pair)
+ +
+
login
+
+ +

login [-p] [-h HOST] [[-f] USER]

+ +

Begin a new session on the system

+ +
        -f      Don't authenticate (user already authenticated)
+        -h      Name of the remote host
+        -p      Preserve environment
+ +
+
logname
+
+ +

logname

+ +

Print the name of the current user

+ +
+
logread
+
+ +

logread [-f]

+ +

Show messages in syslogd's circular buffer

+ +
        -f      Output data as log grows
+ +
+
losetup
+
+ +

losetup [-r] [-o OFS] LOOPDEV FILE - associate loop devices losetup -d LOOPDEV - disassociate losetup [-f] - show

+ +
        -o OFS  Start OFS bytes into FILE
+        -r      Read-only
+        -f      Show first free loop device
+ +
+
lpd
+
+ +

lpd SPOOLDIR [HELPER [ARGS]]

+ +

SPOOLDIR must contain (symlinks to) device nodes or directories with names matching print queue names. In the first case, jobs are sent directly to the device. Otherwise each job is stored in queue directory and HELPER program is called. Name of file to print is passed in $DATAFILE variable. Example:

+ +
        tcpsvd -E 0 515 softlimit -m 999999 lpd /var/spool ./print
+ +
+
lpq
+
+ +

lpq [-P queue[@host[:port]]] [-U USERNAME] [-d JOBID]... [-fs]

+ +
        -P      lp service to connect to (else uses $PRINTER)
+        -d      Delete jobs
+        -f      Force any waiting job to be printed
+        -s      Short display
+ +
+
lpr
+
+ +

lpr -P queue[@host[:port]] -U USERNAME -J TITLE -Vmh [FILE]...

+ +
        -P      lp service to connect to (else uses $PRINTER)
+        -m      Send mail on completion
+        -h      Print banner page too
+        -V      Verbose
+ +
+
ls
+
+ +

ls [-1AaCxdLHRFplinsehrSXvctu] [-w WIDTH] [FILE]...

+ +

List directory contents

+ +
        -1      One column output
+        -a      Include entries which start with .
+        -A      Like -a, but exclude . and ..
+        -C      List by columns
+        -x      List by lines
+        -d      List directory entries instead of contents
+        -L      Follow symlinks
+        -H      Follow symlinks on command line
+        -R      Recurse
+        -p      Append / to dir entries
+        -F      Append indicator (one of */=@|) to entries
+        -l      Long listing format
+        -i      List inode numbers
+        -n      List numeric UIDs and GIDs instead of names
+        -s      List allocated blocks
+        -e      List full date and time
+        -h      List sizes in human readable format (1K 243M 2G)
+        -r      Sort in reverse order
+        -S      Sort by size
+        -X      Sort by extension
+        -v      Sort by version
+        -c      With -l: sort by ctime
+        -t      With -l: sort by mtime
+        -u      With -l: sort by atime
+        -w N    Assume the terminal is N columns wide
+        --color[={always,never,auto}]   Control coloring
+ +
+
lsattr
+
+ +

lsattr [-Radlv] [FILE]...

+ +

List file attributes on an ext2 fs

+ +
        -R      Recurse
+        -a      Don't hide entries starting with .
+        -d      List directory entries instead of contents
+        -l      List long flag names
+        -v      List the file's version/generation number
+ +
+
lsmod
+
+ +

lsmod [-qfwrsv] MODULE [symbol=value]...

+ +
        -r      Remove MODULE (stacks) or do autoclean
+        -q      Quiet
+        -v      Verbose
+        -f      Force
+        -w      Wait for unload
+        -s      Report via syslog instead of stderr
+ +
+
lsof
+
+ +

lsof

+ +

Show all open files

+ +
+
lspci
+
+ +

lspci [-mk]

+ +

List all PCI devices

+ +
        -m      Parsable output
+        -k      Show driver
+ +
+
lzcat
+
+ +

lzcat FILE

+ +

Decompress to stdout

+ +
+
lzma
+
+ +

lzma -d [-cf] [FILE]...

+ +

Decompress FILE (or stdin)

+ +
        -d      Decompress
+        -c      Write to stdout
+        -f      Force
+ +
+
lzop
+
+ +

lzop [-cfvd123456789CF] [FILE]...

+ +
        -1..9   Compression level
+        -d      Decompress
+        -c      Write to stdout
+        -f      Force
+        -v      Verbose
+        -F      Don't store or verify checksum
+        -C      Also write checksum of compressed block
+ +
+
lzopcat
+
+ +

lzopcat [-vCF] [FILE]...

+ +
        -v      Verbose
+        -F      Don't store or verify checksum
+ +
+
makedevs
+
+ +

makedevs [-d device_table] rootdir

+ +

Create a range of special files as specified in a device table. Device table entries take the form of:

+ +

<name> <type> <mode> <uid> <gid> <major> <minor> <start> <inc> <count> Where name is the file name, type can be one of: f Regular file d Directory c Character device b Block device p Fifo (named pipe) uid is the user id for the target file, gid is the group id for the target file. The rest of the entries (major, minor, etc) apply to to device special files. A '-' may be used for blank entries.

+ +
+
makemime
+
+ +

makemime [OPTIONS] [FILE]...

+ +

Create multipart MIME-encoded message from FILEs

+ +
        -o FILE Output. Default: stdout
+        -a HDR  Add header(s). Examples:
+                "From: user@host.org", "Date: `date -R`"
+        -c CT   Content type. Default: application/octet-stream
+        -C CS   Charset. Default: us-ascii
+ +

Other options are silently ignored

+ +
+
man
+
+ +

man [-aw] [MANPAGE]...

+ +

Format and display manual page

+ +
        -a      Display all pages
+        -w      Show page locations
+ +
+
md5sum
+
+ +

md5sum [-c[sw]] [FILE]...

+ +

Print or check MD5 checksums

+ +
        -c      Check sums against list in FILEs
+        -s      Don't output anything, status code shows success
+        -w      Warn about improperly formatted checksum lines
+ +
+
mdev
+
+ +

mdev [-s]

+ +

mdev -s is to be run during boot to scan /sys and populate /dev.

+ +

Bare mdev is a kernel hotplug helper. To activate it: echo /sbin/mdev >/proc/sys/kernel/hotplug

+ +

It uses /etc/mdev.conf with lines [-]DEVNAME UID:GID PERM [>|=PATH]|[!] [@|$|*PROG] where DEVNAME is device name regex, @major,minor[-minor2], or environment variable regex. A common use of the latter is to load modules for hotplugged devices:

+ +
        $MODALIAS=.* 0:0 660 @modprobe "$MODALIAS"
+ +

If /dev/mdev.seq file exists, mdev will wait for its value to match $SEQNUM variable. This prevents plug/unplug races. To activate this feature, create empty /dev/mdev.seq at boot.

+ +
+
mesg
+
+ +

mesg [y|n]

+ +

Control write access to your terminal y Allow write access to your terminal n Disallow write access to your terminal

+ +
+
microcom
+
+ +

microcom [-d DELAY] [-t TIMEOUT] [-s SPEED] [-X] TTY

+ +

Copy bytes for stdin to TTY and from TTY to stdout

+ +
        -d      Wait up to DELAY ms for TTY output before sending every
+                next byte to it
+        -t      Exit if both stdin and TTY are silent for TIMEOUT ms
+        -s      Set serial line to SPEED
+        -X      Disable special meaning of NUL and Ctrl-X from stdin
+ +
+
mkdir
+
+ +

mkdir [OPTIONS] DIRECTORY...

+ +

Create DIRECTORY

+ +
        -m MODE Mode
+        -p      No error if exists; make parent directories as needed
+ +
+
mkdosfs
+
+ +

mkdosfs [-v] [-n LABEL] BLOCKDEV [KBYTES]

+ +

Make a FAT32 filesystem

+ +
        -v      Verbose
+        -n LBL  Volume label
+ +
+
mke2fs
+
+ +

mke2fs [-Fn] [-b BLK_SIZE] [-i INODE_RATIO] [-I INODE_SIZE] [-m RESERVED_PERCENT] [-L LABEL] BLOCKDEV [KBYTES]

+ +
        -b BLK_SIZE     Block size, bytes
+        -F              Force
+        -i RATIO        Max number of files is filesystem_size / RATIO
+        -I BYTES        Inode size (min 128)
+        -L LBL          Volume label
+        -m PERCENT      Percent of blocks to reserve for admin
+        -n              Dry run
+ +
+
mkfifo
+
+ +

mkfifo [-m MODE] NAME

+ +

Create named pipe

+ +
        -m MODE Mode (default a=rw)
+ +
+
mkfs.ext2
+
+ +

mkfs.ext2 [-Fn] [-b BLK_SIZE] [-i INODE_RATIO] [-I INODE_SIZE] [-m RESERVED_PERCENT] [-L LABEL] BLOCKDEV [KBYTES]

+ +
        -b BLK_SIZE     Block size, bytes
+        -F              Force
+        -i RATIO        Max number of files is filesystem_size / RATIO
+        -I BYTES        Inode size (min 128)
+        -L LBL          Volume label
+        -m PERCENT      Percent of blocks to reserve for admin
+        -n              Dry run
+ +
+
mkfs.minix
+
+ +

mkfs.minix [-c | -l FILE] [-nXX] [-iXX] BLOCKDEV [KBYTES]

+ +

Make a MINIX filesystem

+ +
        -c              Check device for bad blocks
+        -n [14|30]      Maximum length of filenames
+        -i INODES       Number of inodes for the filesystem
+        -l FILE         Read bad blocks list from FILE
+        -v              Make version 2 filesystem
+ +
+
mkfs.vfat
+
+ +

mkfs.vfat [-v] [-n LABEL] BLOCKDEV [KBYTES]

+ +

Make a FAT32 filesystem

+ +
        -v      Verbose
+        -n LBL  Volume label
+ +
+
mknod
+
+ +

mknod [-m MODE] NAME TYPE MAJOR MINOR

+ +

Create a special file (block, character, or pipe)

+ +
        -m MODE Creation mode (default a=rw)
+TYPE:
+        b       Block device
+        c or u  Character device
+        p       Named pipe (MAJOR and MINOR are ignored)
+ +
+
mkpasswd
+
+ +

mkpasswd [OPTIONS] [PASSWORD] [SALT]

+ +

Crypt PASSWORD using crypt(3)

+ +
        -P,--password-fd=N      Read password from fd N
+        -m,--method=TYPE        Encryption method
+        -S,--salt=SALT
+ +
+
mkswap
+
+ +

mkswap [-L LBL] BLOCKDEV [KBYTES]

+ +

Prepare BLOCKDEV to be used as swap partition

+ +
        -L LBL  Label
+ +
+
mktemp
+
+ +

mktemp [-dt] [-p DIR] [TEMPLATE]

+ +

Create a temporary file with name based on TEMPLATE and print its name. TEMPLATE must end with XXXXXX (e.g. [/dir/]nameXXXXXX). Without TEMPLATE, -t tmp.XXXXXX is assumed.

+ +
        -d      Make directory, not file
+        -t      Prepend base directory name to TEMPLATE
+        -p DIR  Use DIR as a base directory (implies -t)
+        -u      Do not create anything; print a name
+ +

Base directory is: -p DIR, else $TMPDIR, else /tmp

+ +
+
modinfo
+
+ +

modinfo [-adlp0] [-F keyword] MODULE

+ +
        -a              Shortcut for '-F author'
+        -d              Shortcut for '-F description'
+        -l              Shortcut for '-F license'
+        -p              Shortcut for '-F parm'
+        -F keyword      Keyword to look for
+        -0              Separate output with NULs
+ +
+
modprobe
+
+ +

modprobe [-qfwrsv] MODULE [symbol=value]...

+ +
        -r      Remove MODULE (stacks) or do autoclean
+        -q      Quiet
+        -v      Verbose
+        -f      Force
+        -w      Wait for unload
+        -s      Report via syslog instead of stderr
+ +
+
more
+
+ +

more [FILE]...

+ +

View FILE (or stdin) one screenful at a time

+ +
+
mount
+
+ +

mount [OPTIONS] [-o OPTS] DEVICE NODE

+ +

Mount a filesystem. Filesystem autodetection requires /proc.

+ +
        -a              Mount all filesystems in fstab
+        -f              Dry run
+        -r              Read-only mount
+        -w              Read-write mount (default)
+        -t FSTYPE[,...] Filesystem type(s)
+        -O OPT          Mount only filesystems with option OPT (-a only)
+-o OPT:
+        loop            Ignored (loop devices are autodetected)
+        [a]sync         Writes are [a]synchronous
+        [no]atime       Disable/enable updates to inode access times
+        [no]diratime    Disable/enable atime updates to directories
+        [no]relatime    Disable/enable atime updates relative to modification time
+        [no]dev         (Dis)allow use of special device files
+        [no]exec        (Dis)allow use of executable files
+        [no]suid        (Dis)allow set-user-id-root programs
+        [r]shared       Convert [recursively] to a shared subtree
+        [r]slave        Convert [recursively] to a slave subtree
+        [r]private      Convert [recursively] to a private subtree
+        [un]bindable    Make mount point [un]able to be bind mounted
+        [r]bind         Bind a file or directory [recursively] to another location
+        move            Relocate an existing mount point
+        remount         Remount a mounted filesystem, changing flags
+        ro/rw           Same as -r/-w
+ +

There are filesystem-specific -o flags.

+ +
+
mountpoint
+
+ +

mountpoint [-q] <[-dn] DIR | -x DEVICE>

+ +

Check if the directory is a mountpoint

+ +
        -q      Quiet
+        -d      Print major/minor device number of the filesystem
+        -n      Print device name of the filesystem
+        -x      Print major/minor device number of the blockdevice
+ +
+
mpstat
+
+ +

mpstat [-A] [-I SUM|CPU|ALL|SCPU] [-u] [-P num|ALL] [INTERVAL [COUNT]]

+ +

Per-processor statistics

+ +
        -A                      Same as -I ALL -u -P ALL
+        -I SUM|CPU|ALL|SCPU     Report interrupt statistics
+        -P num|ALL              Processor to monitor
+        -u                      Report CPU utilization
+ +
+
mt
+
+ +

mt [-f device] opcode value

+ +

Control magnetic tape drive operation

+ +

Available Opcodes:

+ +

bsf bsfm bsr bss datacompression drvbuffer eof eom erase fsf fsfm fsr fss load lock mkpart nop offline ras1 ras2 ras3 reset retension rewind rewoffline seek setblk setdensity setpart tell unload unlock weof wset

+ +
+
mv
+
+ +

mv [-fin] SOURCE DEST or: mv [-fin] SOURCE... DIRECTORY

+ +

Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY

+ +
        -f      Don't prompt before overwriting
+        -i      Interactive, prompt before overwrite
+        -n      Don't overwrite an existing file
+ +
+
nameif
+
+ +

nameif [-s] [-c FILE] [IFNAME SELECTOR]...

+ +

Rename network interface while it in the down state. The device matched by SELECTOR is renamed to IFACE. SELECTOR can be a combination of:

+ +
        driver=STRING
+        bus=STRING
+        phy_address=NUM
+        [mac=]XX:XX:XX:XX:XX:XX
+
+        -c FILE Configuration file (default: /etc/mactab)
+        -s      Log to syslog
+ +
+
nanddump
+
+ +

nanddump [-o] [-b] [-s ADDR] [-f FILE] MTD_DEVICE

+ +

Dump the specified MTD device

+ +
        -o      Omit oob data
+        -b      Omit bad block from the dump
+        -s ADDR Start address
+        -l LEN  Length
+        -f FILE Dump to file ('-' for stdout)
+ +
+
nandwrite
+
+ +

nandwrite [-p] [-s ADDR] MTD_DEVICE [FILE]

+ +

Write to the specified MTD device

+ +
        -p      Pad to page size
+        -s ADDR Start address
+ +
+
nbd-client
+
+ +

nbd-client HOST PORT BLOCKDEV

+ +

Connect to HOST and provide a network block device on BLOCKDEV

+ +
+
nc
+
+ +

nc [-iN] [-wN] [-l] [-p PORT] [-f FILE|IPADDR PORT] [-e PROG]

+ +

Open a pipe to IP:PORT or FILE

+ +
        -e PROG Run PROG after connect
+        -l      Listen mode, for inbound connects
+                (use -l twice with -e for persistent server)
+        -p PORT Local port
+        -w SEC  Timeout for connect
+        -i SEC  Delay interval for lines sent
+        -f FILE Use file (ala /dev/ttyS0) instead of network
+ +
+
netstat
+
+ +

netstat [-ral] [-tuwx] [-enWp]

+ +

Display networking information

+ +
        -r      Routing table
+        -a      All sockets
+        -l      Listening sockets
+                Else: connected sockets
+        -t      TCP sockets
+        -u      UDP sockets
+        -w      Raw sockets
+        -x      Unix sockets
+                Else: all socket types
+        -e      Other/more information
+        -n      Don't resolve names
+        -W      Wide display
+        -p      Show PID/program name for sockets
+ +
+
nice
+
+ +

nice [-n ADJUST] [PROG ARGS]

+ +

Change scheduling priority, run PROG

+ +
        -n ADJUST       Adjust priority by ADJUST
+ +
+
nmeter
+
+ +

nmeter [-d MSEC] FORMAT_STRING

+ +

Monitor system in real time

+ +
 -d MSEC        Milliseconds between updates (default:1000)
+ +

Format specifiers:

+ +
 %Nc or %[cN]   CPU. N - bar size (default:10)
+                (displays: S:system U:user N:niced D:iowait I:irq i:softirq)
+ %[nINTERFACE]  Network INTERFACE
+ %m             Allocated memory
+ %[mf]          Free memory
+ %[mt]          Total memory
+ %s             Allocated swap
+ %f             Number of used file descriptors
+ %Ni            Total/specific IRQ rate
+ %x             Context switch rate
+ %p             Forks
+ %[pn]          # of processes
+ %b             Block io
+ %Nt            Time (with N decimal points)
+ %r             Print <cr> instead of <lf> at EOL
+ +
+
nohup
+
+ +

nohup PROG ARGS

+ +

Run PROG immune to hangups, with output to a non-tty

+ +
+
nslookup
+
+ +

nslookup [HOST] [SERVER]

+ +

Query the nameserver for the IP address of the given HOST optionally using a specified DNS server

+ +
+
ntpd
+
+ +

ntpd [-dnqNwl] [-S PROG] [-p PEER]...

+ +

NTP client/server

+ +
        -d      Verbose
+        -n      Do not daemonize
+        -q      Quit after clock is set
+        -N      Run at high priority
+        -w      Do not set time (only query peers), implies -n
+        -l      Run as server on port 123
+        -S PROG Run PROG after stepping time, stratum change, and every 11 mins
+        -p PEER Obtain time from PEER (may be repeated)
+ +
+
od
+
+ +

od [-abcdfhilovxs] [-t TYPE] [-A RADIX] [-N SIZE] [-j SKIP] [-S MINSTR] [-w WIDTH] [FILE...]

+ +

Print FILEs (or stdin) unambiguously, as octal bytes by default

+ +
+
openvt
+
+ +

openvt [-c N] [-sw] [PROG ARGS]

+ +

Start PROG on a new virtual terminal

+ +
        -c N    Use specified VT
+        -s      Switch to the VT
+        -w      Wait for PROG to exit
+ +
+
passwd
+
+ +

passwd [OPTIONS] [USER]

+ +

Change USER's password (default: current user)

+ +
        -a ALG  Encryption method
+        -d      Set password to ''
+        -l      Lock (disable) account
+        -u      Unlock (enable) account
+ +
+
patch
+
+ +

patch [OPTIONS] [ORIGFILE [PATCHFILE]]

+ +
        -p,--strip N            Strip N leading components from file names
+        -i,--input DIFF         Read DIFF instead of stdin
+        -R,--reverse            Reverse patch
+        -N,--forward            Ignore already applied patches
+        -E,--remove-empty-files Remove output files if they become empty
+ +
+
pgrep
+
+ +

pgrep [-flnovx] [-s SID|-P PPID|PATTERN]

+ +

Display process(es) selected by regex PATTERN

+ +
        -l      Show command name too
+        -f      Match against entire command line
+        -n      Show the newest process only
+        -o      Show the oldest process only
+        -v      Negate the match
+        -x      Match whole name (not substring)
+        -s      Match session ID (0 for current)
+        -P      Match parent process ID
+ +
+
pidof
+
+ +

pidof [OPTIONS] [NAME]...

+ +

List PIDs of all processes with names that match NAMEs

+ +
        -s      Show only one PID
+        -o PID  Omit given pid
+                Use %PPID to omit pid of pidof's parent
+ +
+
ping
+
+ +

ping [OPTIONS] HOST

+ +

Send ICMP ECHO_REQUEST packets to network hosts

+ +
        -4,-6           Force IP or IPv6 name resolution
+        -c CNT          Send only CNT pings
+        -s SIZE         Send SIZE data bytes in packets (default:56)
+        -t TTL          Set TTL
+        -I IFACE/IP     Use interface or IP address as source
+        -W SEC          Seconds to wait for the first response (default:10)
+                        (after all -c CNT packets are sent)
+        -w SEC          Seconds until ping exits (default:infinite)
+                        (can exit earlier with -c CNT)
+        -q              Quiet, only displays output at start
+                        and when finished
+ +
+
ping6
+
+ +

ping6 [OPTIONS] HOST

+ +

Send ICMP ECHO_REQUEST packets to network hosts

+ +
        -c CNT          Send only CNT pings
+        -s SIZE         Send SIZE data bytes in packets (default:56)
+        -I IFACE/IP     Use interface or IP address as source
+        -q              Quiet, only displays output at start
+                        and when finished
+ +
+
pivot_root
+
+ +

pivot_root NEW_ROOT PUT_OLD

+ +

Move the current root file system to PUT_OLD and make NEW_ROOT the new root file system

+ +
+
pkill
+
+ +

pkill [-l|-SIGNAL] [-fnovx] [-s SID|-P PPID|PATTERN]

+ +

Send a signal to process(es) selected by regex PATTERN

+ +
        -l      List all signals
+        -f      Match against entire command line
+        -n      Signal the newest process only
+        -o      Signal the oldest process only
+        -v      Negate the match
+        -x      Match whole name (not substring)
+        -s      Match session ID (0 for current)
+        -P      Match parent process ID
+ +
+
pmap
+
+ +

pmap [-xq] PID

+ +

Display detailed process memory usage

+ +
        -x      Show details
+        -q      Quiet
+ +
+
popmaildir
+
+ +

popmaildir [OPTIONS] MAILDIR [CONN_HELPER ARGS]

+ +

Fetch content of remote mailbox to local maildir

+ +
        -s              Skip authorization
+        -T              Get messages with TOP instead of RETR
+        -k              Keep retrieved messages on the server
+        -t SEC          Network timeout
+        -F "PROG ARGS"  Filter program (may be repeated)
+        -M "PROG ARGS"  Delivery program
+ +

Fetch from plain POP3 server: popmaildir -k DIR nc pop3.server.com 110 <user_and_pass.txt Fetch from SSLed POP3 server and delete fetched emails: popmaildir DIR -- openssl s_client -quiet -connect pop3.server.com:995 <user_and_pass.txt

+ +
+
poweroff
+
+ +

poweroff [-d DELAY] [-n] [-f]

+ +

Halt and shut off power

+ +
        -d SEC  Delay interval
+        -n      Do not sync
+        -f      Force (don't go through init)
+ +
+
powertop
+
+ +

powertop

+ +

Analyze power consumption on Intel-based laptops

+ +
+
printenv
+
+ +

printenv [VARIABLE]...

+ +

Print environment VARIABLEs. If no VARIABLE specified, print all.

+ +
+
printf
+
+ +

printf FORMAT [ARG]...

+ +

Format and print ARG(s) according to FORMAT (a-la C printf)

+ +
+
ps
+
+ +

ps [-o COL1,COL2=HEADER] [-T]

+ +

Show list of processes

+ +
        -o COL1,COL2=HEADER     Select columns for display
+        -T                      Show threads
+ +
+
pscan
+
+ +

pscan [-cb] [-p MIN_PORT] [-P MAX_PORT] [-t TIMEOUT] [-T MIN_RTT] HOST

+ +

Scan a host, print all open ports

+ +
        -c      Show closed ports too
+        -b      Show blocked ports too
+        -p      Scan from this port (default 1)
+        -P      Scan up to this port (default 1024)
+        -t      Timeout (default 5000 ms)
+        -T      Minimum rtt (default 5 ms, increase for congested hosts)
+ +
+
pstree
+
+ +

pstree [-p] [PID|USER]

+ +

Display process tree, optionally start from USER or PID

+ +
        -p      Show pids
+ +
+
pwd
+
+ +

pwd

+ +

Print the full filename of the current working directory

+ +
+
pwdx
+
+ +

pwdx PID...

+ +

Show current directory for PIDs

+ +
+
raidautorun
+
+ +

raidautorun DEVICE

+ +

Tell the kernel to automatically search and start RAID arrays

+ +
+
rdate
+
+ +

rdate [-sp] HOST

+ +

Get and possibly set the system date and time from a remote HOST

+ +
        -s      Set the system date and time (default)
+        -p      Print the date and time
+ +
+
rdev
+
+ +

rdev

+ +

Print the device node associated with the filesystem mounted at '/'

+ +
+
readahead
+
+ +

readahead [FILE]...

+ +

Preload FILEs to RAM

+ +
+ +
+ +

readlink [-fnv] FILE

+ +

Display the value of a symlink

+ +
        -f      Canonicalize by following all symlinks
+        -n      Don't add newline
+        -v      Verbose
+ +
+
readprofile
+
+ +

readprofile [OPTIONS]

+ +
        -m mapfile      (Default: /boot/System.map)
+        -p profile      (Default: /proc/profile)
+        -M NUM          Set the profiling multiplier to NUM
+        -i              Print only info about the sampling step
+        -v              Verbose
+        -a              Print all symbols, even if count is 0
+        -b              Print individual histogram-bin counts
+        -s              Print individual counters within functions
+        -r              Reset all the counters (root only)
+        -n              Disable byte order auto-detection
+ +
+
realpath
+
+ +

realpath FILE...

+ +

Return the absolute pathnames of given FILE

+ +
+
reboot
+
+ +

reboot [-d DELAY] [-n] [-f]

+ +

Reboot the system

+ +
        -d SEC  Delay interval
+        -n      Do not sync
+        -f      Force (don't go through init)
+ +
+
reformime
+
+ +

reformime [OPTIONS]

+ +

Parse MIME-encoded message on stdin

+ +
        -x PREFIX       Extract content of MIME sections to files
+        -X PROG ARGS    Filter content of MIME sections through PROG
+                        Must be the last option
+ +

Other options are silently ignored

+ +
+
remove-shell
+
+ +

remove-shell SHELL...

+ +

Remove SHELLs from /etc/shells

+ +
+
renice
+
+ +

renice {{-n INCREMENT} | PRIORITY} [[-p | -g | -u] ID...]

+ +

Change scheduling priority for a running process

+ +
        -n      Adjust current nice value (smaller is faster)
+        -p      Process id(s) (default)
+        -g      Process group id(s)
+        -u      Process user name(s) and/or id(s)
+ +
+
reset
+
+ +

reset

+ +

Reset the screen

+ +
+
resize
+
+ +

resize

+ +

Resize the screen

+ +
+
rev
+
+ +

rev [FILE]...

+ +

Reverse lines of FILE

+ +
+
rm
+
+ +

rm [-irf] FILE...

+ +

Remove (unlink) FILEs

+ +
        -i      Always prompt before removing
+        -f      Never prompt
+        -R,-r   Recurse
+ +
+
rmdir
+
+ +

rmdir [OPTIONS] DIRECTORY...

+ +

Remove DIRECTORY if it is empty

+ +
        -p|--parents    Include parents
+        --ignore-fail-on-non-empty
+ +
+
rmmod
+
+ +

rmmod [-qfwrsv] MODULE [symbol=value]...

+ +
        -r      Remove MODULE (stacks) or do autoclean
+        -q      Quiet
+        -v      Verbose
+        -f      Force
+        -w      Wait for unload
+        -s      Report via syslog instead of stderr
+ +
+
route
+
+ +

route [{add|del|delete}]

+ +

Edit kernel routing tables

+ +
        -n      Don't resolve names
+        -e      Display other/more information
+        -A inet{6}      Select address family
+ +
+
rpm
+
+ +

rpm -i PACKAGE.rpm; rpm -qp[ildc] PACKAGE.rpm

+ +

Manipulate RPM packages

+ +

Commands:

+ +
        -i      Install package
+        -qp     Query package
+        -i      Show information
+        -l      List contents
+        -d      List documents
+        -c      List config files
+ +
+
rpm2cpio
+
+ +

rpm2cpio package.rpm

+ +

Output a cpio archive of the rpm file

+ +
+
rtcwake
+
+ +

rtcwake [-a | -l | -u] [-d DEV] [-m MODE] [-s SEC | -t TIME]

+ +

Enter a system sleep state until specified wakeup time

+ +
        -a,--auto       Read clock mode from adjtime
+        -l,--local      Clock is set to local time
+        -u,--utc        Clock is set to UTC time
+        -d,--device=DEV Specify the RTC device
+        -m,--mode=MODE  Set the sleep state (default: standby)
+        -s,--seconds=SEC Set the timeout in SEC seconds from now
+        -t,--time=TIME  Set the timeout to TIME seconds from epoch
+ +
+
run-parts
+
+ +

run-parts [-t] [-l] [-a ARG] [-u MASK] DIRECTORY

+ +

Run a bunch of scripts in DIRECTORY

+ +
        -t      Print what would be run, but don't actually run anything
+        -a ARG  Pass ARG as argument for every program
+        -u MASK Set the umask to MASK before running every program
+        -l      Print names of all matching files even if they are not executable
+ +
+
runlevel
+
+ +

runlevel [FILE]

+ +

Find the current and previous system runlevel

+ +

If no utmp FILE exists or if no runlevel record can be found, print "unknown"

+ +
+
runsv
+
+ +

runsv DIR

+ +

Start and monitor a service and optionally an appendant log service

+ +
+
runsvdir
+
+ +

runsvdir [-P] [-s SCRIPT] DIR

+ +

Start a runsv process for each subdirectory. If it exits, restart it.

+ +
        -P              Put each runsv in a new session
+        -s SCRIPT       Run SCRIPT <signo> after signal is processed
+ +
+
rx
+
+ +

rx FILE

+ +

Receive a file using the xmodem protocol

+ +
+
script
+
+ +

script [-afqt] [-c PROG] [OUTFILE]

+ +
        -a      Append output
+        -c PROG Run PROG, not shell
+        -f      Flush output after each write
+        -q      Quiet
+        -t      Send timing to stderr
+ +
+
scriptreplay
+
+ +

scriptreplay timingfile [typescript [divisor]]

+ +

Play back typescripts, using timing information

+ +
+
sed
+
+ +

sed [-inr] [-f FILE]... [-e CMD]... [FILE]... or: sed [-inr] CMD [FILE]...

+ +
        -e CMD  Add CMD to sed commands to be executed
+        -f FILE Add FILE contents to sed commands to be executed
+        -i      Edit files in-place (else sends result to stdout)
+        -n      Suppress automatic printing of pattern space
+        -r      Use extended regex syntax
+ +

If no -e or -f, the first non-option argument is the sed command string. Remaining arguments are input files (stdin if none).

+ +
+
sendmail
+
+ +

sendmail [OPTIONS] [RECIPIENT_EMAIL]...

+ +

Read email from stdin and send it

+ +

Standard options:

+ +
        -t              Read additional recipients from message body
+        -f SENDER       Sender (required)
+        -o OPTIONS      Various options. -oi implied, others are ignored
+        -i              -oi synonym. implied and ignored
+ +

Busybox specific options:

+ +
        -v              Verbose
+        -w SECS         Network timeout
+        -H 'PROG ARGS'  Run connection helper
+                        Examples:
+                        -H 'exec openssl s_client -quiet -tls1 -starttls smtp
+                                -connect smtp.gmail.com:25' <email.txt
+                                [4<username_and_passwd.txt | -auUSER -apPASS]
+                        -H 'exec openssl s_client -quiet -tls1
+                                -connect smtp.gmail.com:465' <email.txt
+                                [4<username_and_passwd.txt | -auUSER -apPASS]
+        -S HOST[:PORT]  Server
+        -auUSER         Username for AUTH LOGIN
+        -apPASS         Password for AUTH LOGIN
+ +

Other options are silently ignored; -oi -t is implied Use makemime to create emails with attachments

+ +
+
seq
+
+ +

seq [-w] [-s SEP] [FIRST [INC]] LAST

+ +

Print numbers from FIRST to LAST, in steps of INC. FIRST, INC default to 1.

+ +
        -w      Pad to last with leading zeros
+        -s SEP  String separator
+ +
+
setarch
+
+ +

setarch personality PROG ARGS

+ +

Personality may be:

+ +
        linux32         Set 32bit uname emulation
+        linux64         Set 64bit uname emulation
+ +
+
setconsole
+
+ +

setconsole [-r|--reset] [DEVICE]

+ +

Redirect system console output to DEVICE (default: /dev/tty)

+ +
        -r      Reset output to /dev/console
+ +
+
setfont
+
+ +

setfont FONT [-m MAPFILE] [-C TTY]

+ +

Load a console font

+ +
        -m MAPFILE      Load console screen map
+        -C TTY          Affect TTY instead of /dev/tty
+ +
+
setkeycodes
+
+ +

setkeycodes SCANCODE KEYCODE...

+ +

Set entries into the kernel's scancode-to-keycode map, allowing unusual keyboards to generate usable keycodes.

+ +

SCANCODE may be either xx or e0xx (hexadecimal), and KEYCODE is given in decimal.

+ +
+
setlogcons
+
+ +

setlogcons N

+ +

Redirect the kernel output to console N (0 for current)

+ +
+
setserial
+
+ +

setserial [-gabGvzV] DEVICE [PARAMETER [ARG]]...

+ +

Request or set Linux serial port information

+ +
        -g      Interpret parameters as list of devices for reporting
+        -a      Print all available information
+        -b      Print summary information
+        -G      Print in form which can be fed back
+                to setserial as command line parameters
+        -z      Zero out serial flags before setting
+        -v      Verbose
+ +

Parameters: (* = takes an argument, ^ = can be turned off by preceding ^) *port, *irq, *divisor, *uart, *baund_base, *close_delay, *closing_wait, ^fourport, ^auto_irq, ^skip_test, ^sak, ^session_lockout, ^pgrp_lockout, ^callout_nohup, ^split_termios, ^hup_notify, ^low_latency, autoconfig, spd_normal, spd_hi, spd_vhi, spd_shi, spd_warp, spd_cust

+ +

UART types:

+ +
        unknown, 8250, 16450, 16550, 16550A, Cirrus, 16650, 16650V2, 16750,
+        16950, 16954, 16654, 16850, RSA, NS16550A, XSCALE, RM9000, OCTEON, AR7,
+        U6_16550A
+ +
+
setsid
+
+ +

setsid PROG ARGS

+ +

Run PROG in a new session. PROG will have no controlling terminal and will not be affected by keyboard signals (Ctrl-C etc). See setsid(2) for details.

+ +
+
setuidgid
+
+ +

setuidgid USER PROG ARGS

+ +

Set uid and gid to USER's uid and gid, drop supplementary group ids, run PROG

+ +
+
sh
+
+ +

sh [-/+OPTIONS] [-/+o OPT]... [-c 'SCRIPT' [ARG0 [ARGS]] / FILE [ARGS]]

+ +

Unix shell interpreter

+ +
+
sha1sum
+
+ +

sha1sum [-c[sw]] [FILE]...

+ +

Print or check SHA1 checksums

+ +
        -c      Check sums against list in FILEs
+        -s      Don't output anything, status code shows success
+        -w      Warn about improperly formatted checksum lines
+ +
+
sha256sum
+
+ +

sha256sum [-c[sw]] [FILE]...

+ +

Print or check SHA256 checksums

+ +
        -c      Check sums against list in FILEs
+        -s      Don't output anything, status code shows success
+        -w      Warn about improperly formatted checksum lines
+ +
+
sha512sum
+
+ +

sha512sum [-c[sw]] [FILE]...

+ +

Print or check SHA512 checksums

+ +
        -c      Check sums against list in FILEs
+        -s      Don't output anything, status code shows success
+        -w      Warn about improperly formatted checksum lines
+ +
+
showkey
+
+ +

showkey [-a | -k | -s]

+ +

Show keys pressed

+ +
        -a      Display decimal/octal/hex values of the keys
+        -k      Display interpreted keycodes (default)
+        -s      Display raw scan-codes
+ +
+
slattach
+
+ +

slattach [-cehmLF] [-s SPEED] [-p PROTOCOL] DEVICE

+ +

Attach network interface(s) to serial line(s)

+ +
        -p PROT Set protocol (slip, cslip, slip6, clisp6 or adaptive)
+        -s SPD  Set line speed
+        -e      Exit after initializing device
+        -h      Exit when the carrier is lost
+        -c PROG Run PROG when the line is hung up
+        -m      Do NOT initialize the line in raw 8 bits mode
+        -L      Enable 3-wire operation
+        -F      Disable RTS/CTS flow control
+ +
+
sleep
+
+ +

sleep [N]...

+ +

Pause for a time equal to the total of the args given, where each arg can have an optional suffix of (s)econds, (m)inutes, (h)ours, or (d)ays

+ +
+
smemcap
+
+ +

smemcap >SMEMDATA.TAR

+ +

Collect memory usage data in /proc and write it to stdout

+ +
+
softlimit
+
+ +

softlimit [-a BYTES] [-m BYTES] [-d BYTES] [-s BYTES] [-l BYTES] [-f BYTES] [-c BYTES] [-r BYTES] [-o N] [-p N] [-t N] PROG ARGS

+ +

Set soft resource limits, then run PROG

+ +
        -a BYTES        Limit total size of all segments
+        -m BYTES        Same as -d BYTES -s BYTES -l BYTES -a BYTES
+        -d BYTES        Limit data segment
+        -s BYTES        Limit stack segment
+        -l BYTES        Limit locked memory size
+        -o N            Limit number of open files per process
+        -p N            Limit number of processes per uid
+Options controlling file sizes:
+
+        -f BYTES        Limit output file sizes
+        -c BYTES        Limit core file size
+Efficiency opts:
+
+        -r BYTES        Limit resident set size
+        -t N            Limit CPU time, process receives
+                        a SIGXCPU after N seconds
+ +
+
sort
+
+ +

sort [-nrugMcszbdfimSTokt] [-o FILE] [-k start[.offset][opts][,end[.offset][opts]] [-t CHAR] [FILE]...

+ +

Sort lines of text

+ +
        -b      Ignore leading blanks
+        -c      Check whether input is sorted
+        -d      Dictionary order (blank or alphanumeric only)
+        -f      Ignore case
+        -g      General numerical sort
+        -i      Ignore unprintable characters
+        -k      Sort key
+        -M      Sort month
+        -n      Sort numbers
+        -o      Output to file
+        -k      Sort by key
+        -t CHAR Key separator
+        -r      Reverse sort order
+        -s      Stable (don't sort ties alphabetically)
+        -u      Suppress duplicate lines
+        -z      Lines are terminated by NUL, not newline
+        -mST    Ignored for GNU compatibility
+ +
+
split
+
+ +

split [OPTIONS] [INPUT [PREFIX]]

+ +
        -b N[k|m]       Split by N (kilo|mega)bytes
+        -l N            Split by N lines
+        -a N            Use N letters as suffix
+ +
+
start-stop-daemon
+
+ +

start-stop-daemon [OPTIONS] [-S|-K] ... [-- ARGS...]

+ +

Search for matching processes, and then -K: stop all matching processes. -S: start a process unless a matching process is found.

+ +

Process matching:

+ +
        -u,--user USERNAME|UID  Match only this user's processes
+        -n,--name NAME          Match processes with NAME
+                                in comm field in /proc/PID/stat
+        -x,--exec EXECUTABLE    Match processes with this command
+                                in /proc/PID/{exe,cmdline}
+        -p,--pidfile FILE       Match a process with PID from the file
+        All specified conditions must match
+-S only:
+        -x,--exec EXECUTABLE    Program to run
+        -a,--startas NAME       Zeroth argument
+        -b,--background         Background
+        -N,--nicelevel N        Change nice level
+        -c,--chuid USER[:[GRP]] Change to user/group
+        -m,--make-pidfile       Write PID to the pidfile specified by -p
+-K only:
+        -s,--signal SIG         Signal to send
+        -t,--test               Match only, exit with 0 if a process is found
+Other:
+
+        -o,--oknodo             Exit with status 0 if nothing is done
+        -v,--verbose            Verbose
+        -q,--quiet              Quiet
+ +
+
stat
+
+ +

stat [OPTIONS] FILE...

+ +

Display file (default) or filesystem status

+ +
        -c fmt  Use the specified format
+        -f      Display filesystem status
+        -L      Follow links
+        -t      Display info in terse form
+ +

Valid format sequences for files:

+ +
 %a     Access rights in octal
+ %A     Access rights in human readable form
+ %b     Number of blocks allocated (see %B)
+ %B     The size in bytes of each block reported by %b
+ %d     Device number in decimal
+ %D     Device number in hex
+ %f     Raw mode in hex
+ %F     File type
+ %g     Group ID of owner
+ %G     Group name of owner
+ %h     Number of hard links
+ %i     Inode number
+ %n     File name
+ %N     File name, with -> TARGET if symlink
+ %o     I/O block size
+ %s     Total size, in bytes
+ %t     Major device type in hex
+ %T     Minor device type in hex
+ %u     User ID of owner
+ %U     User name of owner
+ %x     Time of last access
+ %X     Time of last access as seconds since Epoch
+ %y     Time of last modification
+ %Y     Time of last modification as seconds since Epoch
+ %z     Time of last change
+ %Z     Time of last change as seconds since Epoch
+ +

Valid format sequences for file systems:

+ +
 %a     Free blocks available to non-superuser
+ %b     Total data blocks in file system
+ %c     Total file nodes in file system
+ %d     Free file nodes in file system
+ %f     Free blocks in file system
+ %i     File System ID in hex
+ %l     Maximum length of filenames
+ %n     File name
+ %s     Block size (for faster transfer)
+ %S     Fundamental block size (for block counts)
+ %t     Type in hex
+ %T     Type in human readable form
+ +
+
strings
+
+ +

strings [-afo] [-n LEN] [FILE]...

+ +

Display printable strings in a binary file

+ +
        -a      Scan whole file (default)
+        -f      Precede strings with filenames
+        -n LEN  At least LEN characters form a string (default 4)
+        -o      Precede strings with decimal offsets
+ +
+
stty
+
+ +

stty [-a|g] [-F DEVICE] [SETTING]...

+ +

Without arguments, prints baud rate, line discipline, and deviations from stty sane

+ +
        -F DEVICE       Open device instead of stdin
+        -a              Print all current settings in human-readable form
+        -g              Print in stty-readable form
+        [SETTING]       See manpage
+ +
+
su
+
+ +

su [OPTIONS] [-] [USER]

+ +

Run shell under USER (by default, root)

+ +
        -,-l    Clear environment, run shell as login shell
+        -p,-m   Do not set new $HOME, $SHELL, $USER, $LOGNAME
+        -c CMD  Command to pass to 'sh -c'
+        -s SH   Shell to use instead of user's default
+ +
+
sulogin
+
+ +

sulogin [-t N] [TTY]

+ +

Single user login

+ +
        -t N    Timeout
+ +
+
sum
+
+ +

sum [-rs] [FILE]...

+ +

Checksum and count the blocks in a file

+ +
        -r      Use BSD sum algorithm (1K blocks)
+        -s      Use System V sum algorithm (512byte blocks)
+ +
+
sv
+
+ +

sv [-v] [-w SEC] CMD SERVICE_DIR...

+ +

Control services monitored by runsv supervisor. Commands (only first character is enough):

+ +

status: query service status up: if service isn't running, start it. If service stops, restart it once: like 'up', but if service stops, don't restart it down: send TERM and CONT signals. If ./run exits, start ./finish if it exists. After it stops, don't restart service exit: send TERM and CONT signals to service and log service. If they exit, runsv exits too pause, cont, hup, alarm, interrupt, quit, 1, 2, term, kill: send STOP, CONT, HUP, ALRM, INT, QUIT, USR1, USR2, TERM, KILL signal to service

+ +
+
svlogd
+
+ +

svlogd [-ttv] [-r C] [-R CHARS] [-l MATCHLEN] [-b BUFLEN] DIR...

+ +

Continuously read log data from stdin and write to rotated log files in DIRs

+ +

DIR/config file modifies behavior: sSIZE - when to rotate logs nNUM - number of files to retain !PROG - process rotated log with PROG +,-PATTERN - (de)select line for logging E,ePATTERN - (de)select line for stderr

+ +
+
swapoff
+
+ +

swapoff [-a] [DEVICE]

+ +

Stop swapping on DEVICE

+ +
        -a      Stop swapping on all swap devices
+ +
+
swapon
+
+ +

swapon [-a] [-p PRI] [DEVICE]

+ +

Start swapping on DEVICE

+ +
        -a      Start swapping on all swap devices
+        -p PRI  Set swap device priority
+ +
+
switch_root
+
+ +

switch_root [-c /dev/console] NEW_ROOT NEW_INIT [ARGS]

+ +

Free initramfs and switch to another root fs:

+ +

chroot to NEW_ROOT, delete all in /, move NEW_ROOT to /, execute NEW_INIT. PID must be 1. NEW_ROOT must be a mountpoint.

+ +
        -c DEV  Reopen stdio to DEV after switch
+ +
+
sync
+
+ +

sync

+ +

Write all buffered blocks to disk

+ +
+
sysctl
+
+ +

sysctl [OPTIONS] [VALUE]...

+ +

Configure kernel parameters at runtime

+ +
        -n      Don't print key names
+        -e      Don't warn about unknown keys
+        -w      Change sysctl setting
+        -p FILE Load sysctl settings from FILE (default /etc/sysctl.conf)
+        -a      Display all values
+        -A      Display all values in table form
+ +
+
syslogd
+
+ +

syslogd [OPTIONS]

+ +

System logging utility

+ +
        -n              Run in foreground
+        -O FILE         Log to FILE (default:/var/log/messages)
+        -l N            Log only messages more urgent than prio N (1-8)
+        -S              Smaller output
+        -s SIZE         Max size (KB) before rotation (default:200KB, 0=off)
+        -b N            N rotated logs to keep (default:1, max=99, 0=purge)
+        -R HOST[:PORT]  Log to IP or hostname on PORT (default PORT=514/UDP)
+        -L              Log locally and via network (default is network only if -R)
+        -D              Drop duplicates
+        -C[size_kb]     Log to shared mem buffer (use logread to read it)
+        -f FILE         Use FILE as config (default:/etc/syslog.conf)
+ +
+
tac
+
+ +

tac [FILE]...

+ +

Concatenate FILEs and print them in reverse

+ +
+
tail
+
+ +

tail [OPTIONS] [FILE]...

+ +

Print last 10 lines of each FILE (or stdin) to stdout. With more than one FILE, precede each with a filename header.

+ +
        -f              Print data as file grows
+        -s SECONDS      Wait SECONDS between reads with -f
+        -n N[kbm]       Print last N lines
+        -c N[kbm]       Print last N bytes
+        -q              Never print headers
+        -v              Always print headers
+ +

N may be suffixed by k (x1024), b (x512), or m (x1024^2). If N starts with a '+', output begins with the Nth item from the start of each file, not from the end.

+ +
+
tar
+
+ +

tar -[cxtzjahmvO] [-X FILE] [-T FILE] [-f TARFILE] [-C DIR] [FILE]...

+ +

Create, extract, or list files from a tar file

+ +

Operation:

+ +
        c       Create
+        x       Extract
+        t       List
+        f       Name of TARFILE ('-' for stdin/out)
+        C       Change to DIR before operation
+        v       Verbose
+        z       (De)compress using gzip
+        j       (De)compress using bzip2
+        a       (De)compress using lzma
+        O       Extract to stdout
+        h       Follow symlinks
+        m       Don't restore mtime
+        exclude File to exclude
+        X       File with names to exclude
+        T       File with names to include
+ +
+
tcpsvd
+
+ +

tcpsvd [-hEv] [-c N] [-C N[:MSG]] [-b N] [-u USER] [-l NAME] IP PORT PROG

+ +

Create TCP socket, bind to IP:PORT and listen for incoming connection. Run PROG for each connection.

+ +
        IP              IP to listen on, 0 = all
+        PORT            Port to listen on
+        PROG ARGS       Program to run
+        -l NAME         Local hostname (else looks up local hostname in DNS)
+        -u USER[:GRP]   Change to user/group after bind
+        -c N            Handle up to N connections simultaneously
+        -b N            Allow a backlog of approximately N TCP SYNs
+        -C N[:MSG]      Allow only up to N connections from the same IP
+                        New connections from this IP address are closed
+                        immediately. MSG is written to the peer before close
+        -h              Look up peer's hostname
+        -E              Don't set up environment variables
+        -v              Verbose
+ +
+
tee
+
+ +

tee [-ai] [FILE]...

+ +

Copy stdin to each FILE, and also to stdout

+ +
        -a      Append to the given FILEs, don't overwrite
+        -i      Ignore interrupt signals (SIGINT)
+ +
+
telnet
+
+ +

telnet [-a] [-l USER] HOST [PORT]

+ +

Connect to telnet server

+ +
        -a      Automatic login with $USER variable
+        -l USER Automatic login as USER
+ +
+
telnetd
+
+ +

telnetd [OPTIONS]

+ +

Handle incoming telnet connections

+ +
        -l LOGIN        Exec LOGIN on connect
+        -f ISSUE_FILE   Display ISSUE_FILE instead of /etc/issue
+        -K              Close connection as soon as login exits
+                        (normally wait until all programs close slave pty)
+        -p PORT         Port to listen on
+        -b ADDR[:PORT]  Address to bind to
+        -F              Run in foreground
+        -i              Inetd mode
+        -w SEC          Inetd 'wait' mode, linger time SEC
+        -S              Log to syslog (implied by -i or without -F and -w)
+ +
+
test
+
+ +

test EXPRESSION ]

+ +

Check file types, compare values etc. Return a 0/1 exit code depending on logical value of EXPRESSION

+ +
+
tftp
+
+ +

tftp [OPTIONS] HOST [PORT]

+ +

Transfer a file from/to tftp server

+ +
        -l FILE Local FILE
+        -r FILE Remote FILE
+        -g      Get file
+        -p      Put file
+        -b SIZE Transfer blocks of SIZE octets
+ +
+
tftpd
+
+ +

tftpd [-cr] [-u USER] [DIR]

+ +

Transfer a file on tftp client's request

+ +

tftpd should be used as an inetd service. tftpd's line for inetd.conf: 69 dgram udp nowait root tftpd tftpd -l /files/to/serve It also can be ran from udpsvd:

+ +
        udpsvd -vE 0.0.0.0 69 tftpd /files/to/serve
+
+        -r      Prohibit upload
+        -c      Allow file creation via upload
+        -u      Access files as USER
+        -l      Log to syslog (inetd mode requires this)
+ +
+
time
+
+ +

time [-v] PROG ARGS

+ +

Run PROG, display resource usage when it exits

+ +
        -v      Verbose
+ +
+
timeout
+
+ +

timeout [-t SECS] [-s SIG] PROG ARGS

+ +

Runs PROG. Sends SIG to it if it is not gone in SECS seconds. Defaults: SECS: 10, SIG: TERM.

+ +
+
top
+
+ +

top [-b] [-nCOUNT] [-dSECONDS] [-m]

+ +

Provide a view of process activity in real time. Read the status of all processes from /proc each SECONDS and display a screenful of them. Keys:

+ +
        N/M/P/T: show CPU usage, sort by pid/mem/cpu/time
+        S: show memory
+        R: reverse sort
+        H: toggle threads, 1: toggle SMP
+        Q,^C: exit
+ +

Options:

+ +
        -b      Batch mode
+        -n N    Exit after N iterations
+        -d N    Delay between updates
+        -m      Same as 's' key
+ +
+
touch
+
+ +

touch [-c] [-d DATE] [-t DATE] [-r FILE] FILE...

+ +

Update the last-modified date on the given FILE[s]

+ +
        -c      Don't create files
+        -d DT   Date/time to use
+        -t DT   Date/time to use
+        -r FILE Use FILE's date/time
+ +
+
tr
+
+ +

tr [-cds] STRING1 [STRING2]

+ +

Translate, squeeze, or delete characters from stdin, writing to stdout

+ +
        -c      Take complement of STRING1
+        -d      Delete input characters coded STRING1
+        -s      Squeeze multiple output characters of STRING2 into one character
+ +
+
traceroute
+
+ +

traceroute [-46FIldnrv] [-f 1ST_TTL] [-m MAXTTL] [-p PORT] [-q PROBES] [-s SRC_IP] [-t TOS] [-w WAIT_SEC] [-g GATEWAY] [-i IFACE] [-z PAUSE_MSEC] HOST [BYTES]

+ +

Trace the route to HOST

+ +
        -4,-6   Force IP or IPv6 name resolution
+        -F      Set the don't fragment bit
+        -I      Use ICMP ECHO instead of UDP datagrams
+        -l      Display the TTL value of the returned packet
+        -d      Set SO_DEBUG options to socket
+        -n      Print numeric addresses
+        -r      Bypass routing tables, send directly to HOST
+        -v      Verbose
+        -m      Max time-to-live (max number of hops)
+        -p      Base UDP port number used in probes
+                (default 33434)
+        -q      Number of probes per TTL (default 3)
+        -s      IP address to use as the source address
+        -t      Type-of-service in probe packets (default 0)
+        -w      Time in seconds to wait for a response (default 3)
+        -g      Loose source route gateway (8 max)
+ +
+
traceroute6
+
+ +

traceroute6 [-dnrv] [-m MAXTTL] [-p PORT] [-q PROBES] [-s SRC_IP] [-t TOS] [-w WAIT_SEC] [-i IFACE] HOST [BYTES]

+ +

Trace the route to HOST

+ +
        -d      Set SO_DEBUG options to socket
+        -n      Print numeric addresses
+        -r      Bypass routing tables, send directly to HOST
+        -v      Verbose
+        -m      Max time-to-live (max number of hops)
+        -p      Base UDP port number used in probes
+                (default is 33434)
+        -q      Number of probes per TTL (default 3)
+        -s      IP address to use as the source address
+        -t      Type-of-service in probe packets (default 0)
+        -w      Time in seconds to wait for a response (default 3)
+ +
+
true
+
+ +

true

+ +

Return an exit code of TRUE (0)

+ +
+
tty
+
+ +

tty

+ +

Print file name of stdin's terminal

+ +
        -s      Print nothing, only return exit status
+ +
+
ttysize
+
+ +

ttysize [w] [h]

+ +

Print dimension(s) of stdin's terminal, on error return 80x25

+ +
+
tunctl
+
+ +

tunctl [-f device] ([-t name] | -d name) [-u owner] [-g group] [-b]

+ +

Create or delete tun interfaces

+ +
        -f name         tun device (/dev/net/tun)
+        -t name         Create iface 'name'
+        -d name         Delete iface 'name'
+        -u owner        Set iface owner
+        -g group        Set iface group
+        -b              Brief output
+ +
+
ubiattach
+
+ +

ubiattach -m MTD_NUM [-d UBI_NUM] UBI_CTRL_DEV

+ +

Attach MTD device to UBI

+ +
        -m MTD_NUM      MTD device number to attach
+        -d UBI_NUM      UBI device number to assign
+ +
+
ubidetach
+
+ +

ubidetach -d UBI_NUM UBI_CTRL_DEV

+ +

Detach MTD device from UBI

+ +
        -d UBI_NUM      UBI device number
+ +
+
ubimkvol
+
+ +

ubimkvol UBI_DEVICE -N NAME -s SIZE

+ +

Create UBI volume

+ +
        -a ALIGNMENT    Volume alignment (default 1)
+        -n VOLID        Volume ID, if not specified, it
+                        will be assigned automatically
+        -N NAME         Volume name
+        -s SIZE         Size in bytes
+        -t TYPE         Volume type (static|dynamic)
+ +
+
ubirmvol
+
+ +

ubirmvol UBI_DEVICE -n VOLID

+ +

Remove UBI volume

+ +
        -n VOLID        Volume ID
+ +
+
ubirsvol
+
+ +

ubirsvol UBI_DEVICE -n VOLID -s SIZE

+ +

Resize UBI volume

+ +
        -n VOLID        Volume ID to resize
+        -s SIZE         Size in bytes
+ +
+
ubiupdatevol
+
+ +

ubiupdatevol UBI_DEVICE [IMG_FILE]

+ +

Update UBI volume

+ +
        -t      Truncate UBI volume
+        -s SIZE Bytes in input (if reading stdin)
+ +
+
udhcpc
+
+ +

udhcpc [-fbnqvoCRB] [-i IFACE] [-r IP] [-s PROG] [-p PIDFILE] [-V VENDOR] [-x OPT:VAL]... [-O OPT]...

+ +
        -i,--interface IFACE    Interface to use (default eth0)
+        -p,--pidfile FILE       Create pidfile
+        -s,--script PROG        Run PROG at DHCP events (default /usr/share/udhcpc/default.script)
+        -B,--broadcast          Request broadcast replies
+        -t,--retries N          Send up to N discover packets
+        -T,--timeout N          Pause between packets (default 3 seconds)
+        -A,--tryagain N         Wait N seconds after failure (default 20)
+        -f,--foreground         Run in foreground
+        -b,--background         Background if lease is not obtained
+        -n,--now                Exit if lease is not obtained
+        -q,--quit               Exit after obtaining lease
+        -R,--release            Release IP on exit
+        -S,--syslog             Log to syslog too
+        -a,--arping             Use arping to validate offered address
+        -O,--request-option OPT Request option OPT from server (cumulative)
+        -o,--no-default-options Don't request any options (unless -O is given)
+        -r,--request IP         Request this IP address
+        -x OPT:VAL              Include option OPT in sent packets (cumulative)
+                                Examples of string, numeric, and hex byte opts:
+                                -x hostname:bbox - option 12
+                                -x lease:3600 - option 51 (lease time)
+                                -x 0x3d:0100BEEFC0FFEE - option 61 (client id)
+        -F,--fqdn NAME          Ask server to update DNS mapping for NAME
+        -V,--vendorclass VENDOR Vendor identifier (default 'udhcp VERSION')
+        -C,--clientid-none      Don't send MAC as client identifier
+        -v                      Verbose
+Signals:
+
+        USR1    Renew lease
+        USR2    Release lease
+ +
+
udhcpd
+
+ +

udhcpd [-fS] [CONFFILE]

+ +

DHCP server

+ +
        -f      Run in foreground
+        -S      Log to syslog too
+ +
+
udpsvd
+
+ +

udpsvd [-hEv] [-c N] [-u USER] [-l NAME] IP PORT PROG

+ +

Create UDP socket, bind to IP:PORT and wait for incoming packets. Run PROG for each packet, redirecting all further packets with same peer ip:port to it.

+ +
        IP              IP to listen on, 0 = all
+        PORT            Port to listen on
+        PROG ARGS       Program to run
+        -l NAME         Local hostname (else looks up local hostname in DNS)
+        -u USER[:GRP]   Change to user/group after bind
+        -c N            Handle up to N connections simultaneously
+        -h              Look up peer's hostname
+        -E              Don't set up environment variables
+        -v              Verbose
+ +
+
umount
+
+ +

umount [OPTIONS] FILESYSTEM|DIRECTORY

+ +

Unmount file systems

+ +
        -a      Unmount all file systems
+        -r      Try to remount devices as read-only if mount is busy
+        -l      Lazy umount (detach filesystem)
+        -f      Force umount (i.e., unreachable NFS server)
+        -D      Don't free loop device even if it has been used
+ +
+
uname
+
+ +

uname [-amnrspv]

+ +

Print system information

+ +
        -a      Print all
+        -m      The machine (hardware) type
+        -n      Hostname
+        -r      OS release
+        -s      OS name (default)
+        -p      Processor type
+        -v      OS version
+ +
+
unexpand
+
+ +

unexpand [-fa][-t N] [FILE]...

+ +

Convert spaces to tabs, writing to stdout

+ +
        -a,--all        Convert all blanks
+        -f,--first-only Convert only leading blanks
+        -t,--tabs=N     Tabstops every N chars
+ +
+
uniq
+
+ +

uniq [-cdu][-f,s,w N] [INPUT [OUTPUT]]

+ +

Discard duplicate lines

+ +
        -c      Prefix lines by the number of occurrences
+        -d      Only print duplicate lines
+        -u      Only print unique lines
+        -f N    Skip first N fields
+        -s N    Skip first N chars (after any skipped fields)
+        -w N    Compare N characters in line
+ +
+
unix2dos
+
+ +

unix2dos [-ud] [FILE]

+ +

Convert FILE in-place from Unix to DOS format. When no file is given, use stdin/stdout.

+ +
        -u      dos2unix
+        -d      unix2dos
+ +
+
unlzma
+
+ +

unlzma [-cf] [FILE]...

+ +

Decompress FILE (or stdin)

+ +
        -c      Write to stdout
+        -f      Force
+ +
+
unlzop
+
+ +

unlzop [-cfvCF] [FILE]...

+ +
        -c      Write to stdout
+        -f      Force
+        -v      Verbose
+        -F      Don't store or verify checksum
+ +
+
unxz
+
+ +

unxz [-cf] [FILE]...

+ +

Decompress FILE (or stdin)

+ +
        -c      Write to stdout
+        -f      Force
+ +
+
unzip
+
+ +

unzip [-opts[modifiers]] FILE[.zip] [LIST] [-x XLIST] [-d DIR]

+ +

Extract files from ZIP archives

+ +
        -l      List archive contents (with -q for short form)
+        -n      Never overwrite files (default)
+        -o      Overwrite
+        -p      Send output to stdout
+        -q      Quiet
+        -x XLST Exclude these files
+        -d DIR  Extract files into DIR
+ +
+
uptime
+
+ +

uptime

+ +

Display the time since the last boot

+ +
+
users
+
+ +

users

+ +

Print the users currently logged on

+ +
+
usleep
+
+ +

usleep N

+ +

Pause for N microseconds

+ +
+
uudecode
+
+ +

uudecode [-o OUTFILE] [INFILE]

+ +

Uudecode a file Finds OUTFILE in uuencoded source unless -o is given

+ +
+
uuencode
+
+ +

uuencode [-m] [FILE] STORED_FILENAME

+ +

Uuencode FILE (or stdin) to stdout

+ +
        -m      Use base64 encoding per RFC1521
+ +
+
vconfig
+
+ +

vconfig COMMAND [OPTIONS]

+ +

Create and remove virtual ethernet devices

+ +
        add             IFACE VLAN_ID
+        rem             VLAN_NAME
+        set_flag        IFACE 0|1 VLAN_QOS
+        set_egress_map  VLAN_NAME SKB_PRIO VLAN_QOS
+        set_ingress_map VLAN_NAME SKB_PRIO VLAN_QOS
+        set_name_type   NAME_TYPE
+ +
+
vi
+
+ +

vi [OPTIONS] [FILE]...

+ +

Edit FILE

+ +
        -c      Initial command to run ($EXINIT also available)
+        -R      Read-only
+        -H      Short help regarding available features
+ +
+
vlock
+
+ +

vlock [-a]

+ +

Lock a virtual terminal. A password is required to unlock.

+ +
        -a      Lock all VTs
+ +
+
volname
+
+ +

volname [DEVICE]

+ +

Show CD volume name of the DEVICE (default /dev/cdrom)

+ +
+
wall
+
+ +

wall [FILE]

+ +

Write content of FILE or stdin to all logged-in users

+ +
+
watch
+
+ +

watch [-n SEC] [-t] PROG ARGS

+ +

Run PROG periodically

+ +
        -n      Loop period in seconds (default 2)
+        -t      Don't print header
+ +
+
watchdog
+
+ +

watchdog [-t N[ms]] [-T N[ms]] [-F] DEV

+ +

Periodically write to watchdog device DEV

+ +
        -T N    Reboot after N seconds if not reset (default 60)
+        -t N    Reset every N seconds (default 30)
+        -F      Run in foreground
+ +

Use 500ms to specify period in milliseconds

+ +
+
wc
+
+ +

wc [-cmlwL] [FILE]...

+ +

Count lines, words, and bytes for each FILE (or stdin)

+ +
        -c      Count bytes
+        -m      Count characters
+        -l      Count newlines
+        -w      Count words
+        -L      Print longest line length
+ +
+
wget
+
+ +

wget [-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document FILE] [--header 'header: value'] [-Y|--proxy on/off] [-P DIR] [--no-check-certificate] [-U|--user-agent AGENT] [-T SEC] URL...

+ +

Retrieve files via HTTP or FTP

+ +
        -s      Spider mode - only check file existence
+        -c      Continue retrieval of aborted transfer
+        -q      Quiet
+        -P DIR  Save to DIR (default .)
+        -T SEC  Network read timeout is SEC seconds
+        -O FILE Save to FILE ('-' for stdout)
+        -U STR  Use STR for User-Agent header
+        -Y      Use proxy ('on' or 'off')
+ +
+
which
+
+ +

which [COMMAND]...

+ +

Locate a COMMAND

+ +
+
who
+
+ +

who [-a]

+ +

Show who is logged on

+ +
        -a      Show all
+        -H      Print column headers
+ +
+
whoami
+
+ +

whoami

+ +

Print the user name associated with the current effective user id

+ +
+
whois
+
+ +

whois [-h SERVER] [-p PORT] NAME...

+ +

Query WHOIS info about NAME

+ +
        -h,-p   Server to query
+ +
+
xargs
+
+ +

xargs [OPTIONS] [PROG ARGS]

+ +

Run PROG on every item given by stdin

+ +
        -p      Ask user whether to run each command
+        -r      Don't run command if input is empty
+        -0      Input is separated by NUL characters
+        -t      Print the command on stderr before execution
+        -e[STR] STR stops input processing
+        -n N    Pass no more than N args to PROG
+        -s N    Pass command line of no more than N bytes
+        -x      Exit if size is exceeded
+ +
+
xz
+
+ +

xz -d [-cf] [FILE]...

+ +

Decompress FILE (or stdin)

+ +
        -d      Decompress
+        -c      Write to stdout
+        -f      Force
+ +
+
xzcat
+
+ +

xzcat FILE

+ +

Decompress to stdout

+ +
+
yes
+
+ +

yes [STRING]

+ +

Repeatedly output a line with STRING, or 'y'

+ +
+
zcat
+
+ +

zcat FILE

+ +

Decompress to stdout

+ +
+
zcip
+
+ +

zcip [OPTIONS] IFACE SCRIPT

+ +

Manage a ZeroConf IPv4 link-local address

+ +
        -f              Run in foreground
+        -q              Quit after obtaining address
+        -r 169.254.x.x  Request this address first
+        -v              Verbose
+ +

With no -q, runs continuously monitoring for ARP conflicts, exits only on I/O errors (link down etc)

+ +
+
+ +

LIBC NSS

+ +

GNU Libc (glibc) uses the Name Service Switch (NSS) to configure the behavior of the C library for the local environment, and to configure how it reads system data, such as passwords and group information. This is implemented using an /etc/nsswitch.conf configuration file, and using one or more of the /lib/libnss_* libraries. BusyBox tries to avoid using any libc calls that make use of NSS. Some applets however, such as login and su, will use libc functions that require NSS.

+ +

If you enable CONFIG_USE_BB_PWD_GRP, BusyBox will use internal functions to directly access the /etc/passwd, /etc/group, and /etc/shadow files without using NSS. This may allow you to run your system without the need for installing any of the NSS configuration files and libraries.

+ +

When used with glibc, the BusyBox 'networking' applets will similarly require that you install at least some of the glibc NSS stuff (in particular, /etc/nsswitch.conf, /lib/libnss_dns*, /lib/libnss_files*, and /lib/libresolv*).

+ +

Shameless Plug: As an alternative, one could use a C library such as uClibc. In addition to making your system significantly smaller, uClibc does not require the use of any NSS support files or libraries.

+ +

MAINTAINER

+ +

Denis Vlasenko <vda.linux@googlemail.com>

+ +

AUTHORS

+ +

The following people have contributed code to BusyBox whether they know it or not. If you have written code included in BusyBox, you should probably be listed here so you can obtain your bit of eternal glory. If you should be listed here, or the description of what you have done needs more detail, or is incorrect, please send in an update.

+ +
+ +

Emanuele Aina <emanuele.aina@tiscali.it> run-parts

+ +
+ +

Erik Andersen <andersen@codepoet.org>

+ +
    Tons of new stuff, major rewrite of most of the
+    core apps, tons of new apps as noted in header files.
+    Lots of tedious effort writing these boring docs that
+    nobody is going to actually read.
+ +
+ +

Laurence Anderson <l.d.anderson@warwick.ac.uk>

+ +
    rpm2cpio, unzip, get_header_cpio, read_gz interface, rpm
+ +
+ +

Jeff Angielski <jeff@theptrgroup.com>

+ +
    ftpput, ftpget
+ +
+ +

Edward Betts <edward@debian.org>

+ +
    expr, hostid, logname, whoami
+ +
+ +

John Beppu <beppu@codepoet.org>

+ +
    du, nslookup, sort
+ +
+ +

Brian Candler <B.Candler@pobox.com>

+ +
    tiny-ls(ls)
+ +
+ +

Randolph Chung <tausq@debian.org>

+ +
    fbset, ping, hostname
+ +
+ +

Dave Cinege <dcinege@psychosis.com>

+ +
    more(v2), makedevs, dutmp, modularization, auto links file,
+    various fixes, Linux Router Project maintenance
+ +
+ +

Jordan Crouse <jordan@cosmicpenguin.net>

+ +
    ipcalc
+ +
+ +

Magnus Damm <damm@opensource.se>

+ +
    tftp client insmod powerpc support
+ +
+ +

Larry Doolittle <ldoolitt@recycle.lbl.gov>

+ +
    pristine source directory compilation, lots of patches and fixes.
+ +
+ +

Glenn Engel <glenne@engel.org>

+ +
    httpd
+ +
+ +

Gennady Feldman <gfeldman@gena01.com>

+ +
    Sysklogd (single threaded syslogd, IPC Circular buffer support,
+    logread), various fixes.
+ +
+ +

Karl M. Hegbloom <karlheg@debian.org>

+ +
    cp_mv.c, the test suite, various fixes to utility.c, &c.
+ +
+ +

Daniel Jacobowitz <dan@debian.org>

+ +
    mktemp.c
+ +
+ +

Matt Kraai <kraai@alumni.cmu.edu>

+ +
    documentation, bugfixes, test suite
+ +
+ +

Stephan Linz <linz@li-pro.net>

+ +
    ipcalc, Red Hat equivalence
+ +
+ +

John Lombardo <john@deltanet.com>

+ +
    tr
+ +
+ +

Glenn McGrath <bug1@iinet.net.au>

+ +
    Common unarchiving code and unarchiving applets, ifupdown, ftpgetput,
+    nameif, sed, patch, fold, install, uudecode.
+    Various bugfixes, review and apply numerous patches.
+ +
+ +

Manuel Novoa III <mjn3@codepoet.org>

+ +
    cat, head, mkfifo, mknod, rmdir, sleep, tee, tty, uniq, usleep, wc, yes,
+    mesg, vconfig, make_directory, parse_mode, dirname, mode_string,
+    get_last_path_component, simplify_path, and a number trivial libbb routines
+
+    also bug fixes, partial rewrites, and size optimizations in
+    ash, basename, cal, cmp, cp, df, du, echo, env, ln, logname, md5sum, mkdir,
+    mv, realpath, rm, sort, tail, touch, uname, watch, arith, human_readable,
+    interface, dutmp, ifconfig, route
+ +
+ +

Vladimir Oleynik <dzo@simtreas.ru>

+ +
    cmdedit; xargs(current), httpd(current);
+    ports: ash, crond, fdisk, inetd, stty, traceroute, top;
+    locale, various fixes
+    and irreconcilable critic of everything not perfect.
+ +
+ +

Bruce Perens <bruce@pixar.com>

+ +
    Original author of BusyBox in 1995, 1996. Some of his code can
+    still be found hiding here and there...
+ +
+ +

Tim Riker <Tim@Rikers.org>

+ +
    bug fixes, member of fan club
+ +
+ +

Kent Robotti <robotti@metconnect.com>

+ +
    reset, tons and tons of bug reports and patches.
+ +
+ +

Chip Rosenthal <chip@unicom.com>, <crosenth@covad.com>

+ +
    wget - Contributed by permission of Covad Communications
+ +
+ +

Pavel Roskin <proski@gnu.org>

+ +
    Lots of bugs fixes and patches.
+ +
+ +

Gyepi Sam <gyepi@praxis-sw.com>

+ +
    Remote logging feature for syslogd
+ +
+ +

Linus Torvalds <torvalds@transmeta.com>

+ +
    mkswap, fsck.minix, mkfs.minix
+ +
+ +

Mark Whitley <markw@codepoet.org>

+ +
    grep, sed, cut, xargs(previous),
+    style-guide, new-applet-HOWTO, bug fixes, etc.
+ +
+ +

Charles P. Wright <cpwright@villagenet.com>

+ +
    gzip, mini-netcat(nc)
+ +
+ +

Enrique Zanardi <ezanardi@ull.es>

+ +
    tarcat (since removed), loadkmap, various fixes, Debian maintenance
+ +
+ +

Tito Ragusa <farmatito@tiscali.it>

+ +
    devfsd and size optimizations in strings, openvt and deallocvt.
+ +
+ +

Paul Fox <pgf@foxharp.boston.ma.us>

+ +
    vi editing mode for ash, various other patches/fixes
+ +
+ +

Roberto A. Foglietta <me@roberto.foglietta.name>

+ +
    port: dnsd
+ +
+ +

Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

+ +
    misc
+ +
+ +

Mike Frysinger <vapier@gentoo.org>

+ +
    initial e2fsprogs, printenv, setarch, sum, misc
+ +
+ +

Jie Zhang <jie.zhang@analog.com>

+ +
    fixed two bugs in msh and hush (exitcode of killed processes)
+ + + + + + + diff -Naur busybox-1.20.2/docs/busybox.net/BusyBox.html busybox-1.20.2_mod/docs/busybox.net/BusyBox.html --- busybox-1.20.2/docs/busybox.net/BusyBox.html 1970-01-01 08:00:00.000000000 +0800 +++ busybox-1.20.2_mod/docs/busybox.net/BusyBox.html 2024-04-16 14:07:15.798733518 +0800 @@ -0,0 +1,4903 @@ + + + + + + + + + + + + + +

NAME

+ +

BusyBox - The Swiss Army Knife of Embedded Linux

+ +

SYNTAX

+ +
 busybox <applet> [arguments...]  # or
+
+ <applet> [arguments...]          # if symlinked
+ +

DESCRIPTION

+ +

BusyBox combines tiny versions of many common UNIX utilities into a single small executable. It provides minimalist replacements for most of the utilities you usually find in GNU coreutils, util-linux, etc. The utilities in BusyBox generally have fewer options than their full-featured GNU cousins; however, the options that are included provide the expected functionality and behave very much like their GNU counterparts.

+ +

BusyBox has been written with size-optimization and limited resources in mind. It is also extremely modular so you can easily include or exclude commands (or features) at compile time. This makes it easy to customize your embedded systems. To create a working system, just add /dev, /etc, and a Linux kernel. BusyBox provides a fairly complete POSIX environment for any small or embedded system.

+ +

BusyBox is extremely configurable. This allows you to include only the components you need, thereby reducing binary size. Run 'make config' or 'make menuconfig' to select the functionality that you wish to enable. Then run 'make' to compile BusyBox using your configuration.

+ +

After the compile has finished, you should use 'make install' to install BusyBox. This will install the 'bin/busybox' binary, in the target directory specified by CONFIG_PREFIX. CONFIG_PREFIX can be set when configuring BusyBox, or you can specify an alternative location at install time (i.e., with a command line like 'make CONFIG_PREFIX=/tmp/foo install'). If you enabled any applet installation scheme (either as symlinks or hardlinks), these will also be installed in the location pointed to by CONFIG_PREFIX.

+ +

USAGE

+ +

BusyBox is a multi-call binary. A multi-call binary is an executable program that performs the same job as more than one utility program. That means there is just a single BusyBox binary, but that single binary acts like a large number of utilities. This allows BusyBox to be smaller since all the built-in utility programs (we call them applets) can share code for many common operations.

+ +

You can also invoke BusyBox by issuing a command as an argument on the command line. For example, entering

+ +
        /bin/busybox ls
+ +

will also cause BusyBox to behave as 'ls'.

+ +

Of course, adding '/bin/busybox' into every command would be painful. So most people will invoke BusyBox using links to the BusyBox binary.

+ +

For example, entering

+ +
        ln -s /bin/busybox ls
+        ./ls
+ +

will cause BusyBox to behave as 'ls' (if the 'ls' command has been compiled into BusyBox). Generally speaking, you should never need to make all these links yourself, as the BusyBox build system will do this for you when you run the 'make install' command.

+ +

If you invoke BusyBox with no arguments, it will provide you with a list of the applets that have been compiled into your BusyBox binary.

+ +

COMMON OPTIONS

+ +

Most BusyBox applets support the --help argument to provide a terse runtime description of their behavior. If the CONFIG_FEATURE_VERBOSE_USAGE option has been enabled, more detailed usage information will also be available.

+ +

COMMANDS

+ +

Currently available applets include:

+ +
        [, [[, acpid, add-shell, addgroup, adduser, adjtimex, arp, arping,
+        ash, awk, base64, basename, beep, blkid, blockdev, bootchartd,
+        brctl, bunzip2, bzcat, bzip2, cal, cat, catv, chat, chattr, chgrp,
+        chmod, chown, chpasswd, chpst, chroot, chrt, chvt, cksum, clear,
+        cmp, comm, conspy, cp, cpio, crond, crontab, cryptpw, cttyhack, cut,
+        date, dc, dd, deallocvt, delgroup, deluser, depmod, devmem, df,
+        dhcprelay, diff, dirname, dmesg, dnsd, dnsdomainname, dos2unix, du,
+        dumpkmap, dumpleases, echo, ed, egrep, eject, env, envdir,
+        envuidgid, ether-wake, expand, expr, fakeidentd, false, fbset,
+        fbsplash, fdflush, fdformat, fdisk, fgconsole, fgrep, find, findfs,
+        flash_eraseall, flock, fold, free, freeramdisk, fsck, fsck.minix,
+        fsync, ftpd, ftpget, ftpput, fuser, getopt, getty, grep, groups,
+        gunzip, gzip, halt, hd, hdparm, head, hexdump, hostid, hostname,
+        httpd, hush, hwclock, id, ifconfig, ifdown, ifenslave, ifplugd,
+        ifup, inetd, init, insmod, install, ionice, iostat, ip, ipaddr,
+        ipcalc, ipcrm, ipcs, iplink, iproute, iprule, iptunnel, kbd_mode,
+        kill, killall, killall5, klogd, last, less, linux32, linux64,
+        linuxrc, ln, loadfont, loadkmap, logger, login, logname, logread,
+        losetup, lpd, lpq, lpr, ls, lsattr, lsmod, lsof, lspci, lsusb,
+        lzcat, lzma, lzop, lzopcat, makedevs, makemime, man, md5sum, mdev,
+        mesg, microcom, mkdir, mkdosfs, mke2fs, mkfifo, mkfs.ext2,
+        mkfs.minix, mkfs.vfat, mknod, mkpasswd, mkswap, mktemp, modinfo,
+        modprobe, more, mount, mountpoint, mpstat, mt, mv, nameif, nanddump,
+        nandwrite, nbd-client, nc, netstat, nice, nmeter, nohup, nslookup,
+        ntpd, od, openvt, passwd, patch, pgrep, pidof, ping, ping6,
+        pipe_progress, pivot_root, pkill, pmap, popmaildir, poweroff,
+        powertop, printenv, printf, ps, pscan, pstree, pwd, pwdx,
+        raidautorun, rdate, rdev, readahead, readlink, readprofile,
+        realpath, reboot, reformime, remove-shell, renice, reset, resize,
+        rev, rm, rmdir, rmmod, route, rpm, rpm2cpio, rtcwake, run-parts,
+        runlevel, runsv, runsvdir, rx, script, scriptreplay, sed, sendmail,
+        seq, setarch, setconsole, setfont, setkeycodes, setlogcons,
+        setserial, setsid, setuidgid, sh, sha1sum, sha256sum, sha512sum,
+        showkey, slattach, sleep, smemcap, softlimit, sort, split,
+        start-stop-daemon, stat, strings, stty, su, sulogin, sum, sv,
+        svlogd, swapoff, swapon, switch_root, sync, sysctl, syslogd, tac,
+        tail, tar, tcpsvd, tee, telnet, telnetd, test, tftp, tftpd, time,
+        timeout, top, touch, tr, traceroute, traceroute6, true, tty,
+        ttysize, tunctl, ubiattach, ubidetach, ubimkvol, ubirmvol, ubirsvol,
+        ubiupdatevol, udhcpc, udhcpd, udpsvd, umount, uname, unexpand, uniq,
+        unix2dos, unlzma, unlzop, unxz, unzip, uptime, users, usleep,
+        uudecode, uuencode, vconfig, vi, vlock, volname, wall, watch,
+        watchdog, wc, wget, which, who, whoami, whois, xargs, xz, xzcat,
+        yes, zcat, zcip
+ +

COMMAND DESCRIPTIONS

+ +
+ +
acpid
+
+ +

acpid [-df] [-c CONFDIR] [-l LOGFILE] [-a ACTIONFILE] [-M MAPFILE] [-e PROC_EVENT_FILE] [-p PIDFILE]

+ +

Listen to ACPI events and spawn specific helpers on event arrival

+ +
        -d      Log to stderr, not log file (implies -f)
+        -f      Run in foreground
+        -c DIR  Config directory [/etc/acpi]
+        -e FILE /proc event file [/proc/acpi/event]
+        -l FILE Log file [/var/log/acpid.log]
+        -p FILE Pid file [/var/run/acpid.pid]
+        -a FILE Action file [/etc/acpid.conf]
+        -M FILE Map file [/etc/acpi.map]
+ +

Accept and ignore compatibility options -g -m -s -S -v

+ +
+
add-shell
+
+ +

add-shell SHELL...

+ +

Add SHELLs to /etc/shells

+ +
+
addgroup
+
+ +

addgroup [-g GID] [USER] GROUP

+ +

Add a group or add a user to a group

+ +
        -g GID  Group id
+        -S      Create a system group
+ +
+
adduser
+
+ +

adduser [OPTIONS] USER

+ +

Add a user

+ +
        -h DIR          Home directory
+        -g GECOS        GECOS field
+        -s SHELL        Login shell
+        -G GRP          Add user to existing group
+        -S              Create a system user
+        -D              Don't assign a password
+        -H              Don't create home directory
+        -u UID          User id
+ +
+
adjtimex
+
+ +

adjtimex [-q] [-o OFF] [-f FREQ] [-p TCONST] [-t TICK]

+ +

Read and optionally set system timebase parameters. See adjtimex(2)

+ +
        -q      Quiet
+        -o OFF  Time offset, microseconds
+        -f FREQ Frequency adjust, integer kernel units (65536 is 1ppm)
+                (positive values make clock run faster)
+        -t TICK Microseconds per tick, usually 10000
+        -p TCONST
+ +
+
arp
+
+ +

arp [-vn] [-H HWTYPE] [-i IF] -a [HOSTNAME] [-v] [-i IF] -d HOSTNAME [pub] [-v] [-H HWTYPE] [-i IF] -s HOSTNAME HWADDR [temp] [-v] [-H HWTYPE] [-i IF] -s HOSTNAME HWADDR [netmask MASK] pub [-v] [-H HWTYPE] [-i IF] -Ds HOSTNAME IFACE [netmask MASK] pub

+ +

Manipulate ARP cache

+ +
        -a              Display (all) hosts
+        -s              Set new ARP entry
+        -d              Delete a specified entry
+        -v              Verbose
+        -n              Don't resolve names
+        -i IF           Network interface
+        -D              Read <hwaddr> from given device
+        -A,-p AF        Protocol family
+        -H HWTYPE       Hardware address type
+ +
+
arping
+
+ +

arping [-fqbDUA] [-c CNT] [-w TIMEOUT] [-I IFACE] [-s SRC_IP] DST_IP

+ +

Send ARP requests/replies

+ +
        -f              Quit on first ARP reply
+        -q              Quiet
+        -b              Keep broadcasting, don't go unicast
+        -D              Duplicated address detection mode
+        -U              Unsolicited ARP mode, update your neighbors
+        -A              ARP answer mode, update your neighbors
+        -c N            Stop after sending N ARP requests
+        -w TIMEOUT      Time to wait for ARP reply, seconds
+        -I IFACE        Interface to use (default eth0)
+        -s SRC_IP       Sender IP address
+        DST_IP          Target IP address
+ +
+
ash
+
+ +

ash [-/+OPTIONS] [-/+o OPT]... [-c 'SCRIPT' [ARG0 [ARGS]] / FILE [ARGS]]

+ +

Unix shell interpreter

+ +
+
awk
+
+ +

awk [OPTIONS] [AWK_PROGRAM] [FILE]...

+ +
        -v VAR=VAL      Set variable
+        -F SEP          Use SEP as field separator
+        -f FILE         Read program from FILE
+ +
+
base64
+
+ +

base64 [-d] [FILE]

+ +

Base64 encode or decode FILE to standard output -d Decode data

+ +
+
basename
+
+ +

basename FILE [SUFFIX]

+ +

Strip directory path and .SUFFIX from FILE

+ +
+
beep
+
+ +

beep -f FREQ -l LEN -d DELAY -r COUNT -n

+ +
        -f      Frequency in Hz
+        -l      Length in ms
+        -d      Delay in ms
+        -r      Repetitions
+        -n      Start new tone
+ +
+
blkid
+
+ +

blkid [BLOCKDEV]...

+ +

Print UUIDs of all filesystems

+ +
+
blockdev
+
+ +

blockdev OPTION BLOCKDEV

+ +
        --setro         Set ro
+        --setrw         Set rw
+        --getro         Get ro
+        --getss         Get sector size
+        --getbsz        Get block size
+        --setbsz BYTES  Set block size
+        --getsz         Get device size in 512-byte sectors
+        --getsize64     Get device size in bytes
+        --flushbufs     Flush buffers
+        --rereadpt      Reread partition table
+ +
+
bootchartd
+
+ +

bootchartd start [PROG ARGS]|stop|init

+ +

Create /var/log/bootchart.tgz with boot chart data

+ +

start: start background logging; with PROG, run PROG, then kill logging with USR1 stop: send USR1 to all bootchartd processes init: start background logging; stop when getty/xdm is seen (for init scripts) Under PID 1: as init, then exec $bootchart_init, /init, /sbin/init

+ +
+
brctl
+
+ +

brctl COMMAND [BRIDGE [INTERFACE]]

+ +

Manage ethernet bridges

+ +

Commands:

+ +
        show                    Show a list of bridges
+        addbr BRIDGE            Create BRIDGE
+        delbr BRIDGE            Delete BRIDGE
+        addif BRIDGE IFACE      Add IFACE to BRIDGE
+        delif BRIDGE IFACE      Delete IFACE from BRIDGE
+        setageing BRIDGE TIME           Set ageing time
+        setfd BRIDGE TIME               Set bridge forward delay
+        sethello BRIDGE TIME            Set hello time
+        setmaxage BRIDGE TIME           Set max message age
+        setpathcost BRIDGE COST         Set path cost
+        setportprio BRIDGE PRIO         Set port priority
+        setbridgeprio BRIDGE PRIO       Set bridge priority
+        stp BRIDGE [1/yes/on|0/no/off]  STP on/off
+ +
+
bunzip2
+
+ +

bunzip2 [-cf] [FILE]...

+ +

Decompress FILEs (or stdin)

+ +
        -c      Write to stdout
+        -f      Force
+ +
+
bzcat
+
+ +

bzcat FILE

+ +

Decompress to stdout

+ +
+
bzip2
+
+ +

bzip2 [OPTIONS] [FILE]...

+ +

Compress FILEs (or stdin) with bzip2 algorithm

+ +
        -1..9   Compression level
+        -d      Decompress
+        -c      Write to stdout
+        -f      Force
+ +
+
cal
+
+ +

cal [-jy] [[MONTH] YEAR]

+ +

Display a calendar

+ +
        -j      Use julian dates
+        -y      Display the entire year
+ +
+
cat
+
+ +

cat [FILE]...

+ +

Concatenate FILEs and print them to stdout

+ +
+
catv
+
+ +

catv [-etv] [FILE]...

+ +

Display nonprinting characters as ^x or M-x

+ +
        -e      End each line with $
+        -t      Show tabs as ^I
+        -v      Don't use ^x or M-x escapes
+ +
+
chat
+
+ +

chat EXPECT [SEND [EXPECT [SEND...]]]

+ +

Useful for interacting with a modem connected to stdin/stdout. A script consists of one or more "expect-send" pairs of strings, each pair is a pair of arguments. Example: chat '' ATZ OK ATD123456 CONNECT '' ogin: pppuser word: ppppass '~'

+ +
+
chattr
+
+ +

chattr [-R] [-+=AacDdijsStTu] [-v VERSION] [FILE]...

+ +

Change file attributes on an ext2 fs

+ +

Modifiers:

+ +
        -       Remove attributes
+        +       Add attributes
+        =       Set attributes
+Attributes:
+
+        A       Don't track atime
+        a       Append mode only
+        c       Enable compress
+        D       Write dir contents synchronously
+        d       Don't backup with dump
+        i       Cannot be modified (immutable)
+        j       Write all data to journal first
+        s       Zero disk storage when deleted
+        S       Write file contents synchronously
+        t       Disable tail-merging of partial blocks with other files
+        u       Allow file to be undeleted
+        -R      Recurse
+        -v      Set the file's version/generation number
+ +
+
chgrp
+
+ +

chgrp [-RhLHPcvf]... GROUP FILE...

+ +

Change the group membership of each FILE to GROUP

+ +
        -R      Recurse
+        -h      Affect symlinks instead of symlink targets
+        -L      Traverse all symlinks to directories
+        -H      Traverse symlinks on command line only
+        -P      Don't traverse symlinks (default)
+        -c      List changed files
+        -v      Verbose
+        -f      Hide errors
+ +
+
chmod
+
+ +

chmod [-Rcvf] MODE[,MODE]... FILE...

+ +

Each MODE is one or more of the letters ugoa, one of the symbols +-= and one or more of the letters rwxst

+ +
        -R      Recurse
+        -c      List changed files
+        -v      List all files
+        -f      Hide errors
+ +
+
chown
+
+ +

chown [-RhLHPcvf]... OWNER[<.|:>[GROUP]] FILE...

+ +

Change the owner and/or group of each FILE to OWNER and/or GROUP

+ +
        -R      Recurse
+        -h      Affect symlinks instead of symlink targets
+        -L      Traverse all symlinks to directories
+        -H      Traverse symlinks on command line only
+        -P      Don't traverse symlinks (default)
+        -c      List changed files
+        -v      List all files
+        -f      Hide errors
+ +
+
chpasswd
+
+ +

chpasswd [--md5|--encrypted]

+ +

Read user:password from stdin and update /etc/passwd

+ +
        -e,--encrypted  Supplied passwords are in encrypted form
+        -m,--md5        Use MD5 encryption instead of DES
+ +
+
chpst
+
+ +

chpst [-vP012] [-u USER[:GRP]] [-U USER[:GRP]] [-e DIR] [-/ DIR] [-n NICE] [-m BYTES] [-d BYTES] [-o N] [-p N] [-f BYTES] [-c BYTES] PROG ARGS

+ +

Change the process state, run PROG

+ +
        -u USER[:GRP]   Set uid and gid
+        -U USER[:GRP]   Set $UID and $GID in environment
+        -e DIR          Set environment variables as specified by files
+                        in DIR: file=1st_line_of_file
+        -/ DIR          Chroot to DIR
+        -n NICE         Add NICE to nice value
+        -m BYTES        Same as -d BYTES -s BYTES -l BYTES
+        -d BYTES        Limit data segment
+        -o N            Limit number of open files per process
+        -p N            Limit number of processes per uid
+        -f BYTES        Limit output file sizes
+        -c BYTES        Limit core file size
+        -v              Verbose
+        -P              Create new process group
+        -0              Close stdin
+        -1              Close stdout
+        -2              Close stderr
+ +
+
chroot
+
+ +

chroot NEWROOT [PROG ARGS]

+ +

Run PROG with root directory set to NEWROOT

+ +
+
chrt
+
+ +

chrt [-prfom] [PRIO] [PID | PROG ARGS]

+ +

Change scheduling priority and class for a process

+ +
        -p      Operate on PID
+        -r      Set SCHED_RR class
+        -f      Set SCHED_FIFO class
+        -o      Set SCHED_OTHER class
+        -m      Show min/max priorities
+ +
+
chvt
+
+ +

chvt N

+ +

Change the foreground virtual terminal to /dev/ttyN

+ +
+
cksum
+
+ +

cksum FILES...

+ +

Calculate the CRC32 checksums of FILES

+ +
+
clear
+
+ +

clear

+ +

Clear screen

+ +
+
cmp
+
+ +

cmp [-l] [-s] FILE1 [FILE2 [SKIP1 [SKIP2]]]

+ +

Compare FILE1 with FILE2 (or stdin)

+ +
        -l      Write the byte numbers (decimal) and values (octal)
+                for all differing bytes
+        -s      Quiet
+ +
+
comm
+
+ +

comm [-123] FILE1 FILE2

+ +

Compare FILE1 with FILE2

+ +
        -1      Suppress lines unique to FILE1
+        -2      Suppress lines unique to FILE2
+        -3      Suppress lines common to both files
+ +
+
conspy
+
+ +

conspy [-vcsndfFQ] [-x COL] [-y LINE] [CONSOLE_NO]

+ +

A text-mode VNC like program for Linux virtual consoles. To exit, quickly press ESC 3 times.

+ +
        -v      Don't send keystrokes to the console
+        -c      Create missing /dev/{tty,vcsa}N
+        -s      Open a SHELL session
+        -n      Black & white
+        -d      Dump console to stdout
+        -f      Follow cursor
+        -F      Assume console is on a framebuffer device
+        -Q      Disable exit on ESC-ESC-ESC
+        -x COL  Starting column
+        -y LINE Starting line
+ +
+
cp
+
+ +

cp [OPTIONS] SOURCE... DEST

+ +

Copy SOURCE(s) to DEST

+ +
        -a      Same as -dpR
+        -R,-r   Recurse
+        -d,-P   Preserve symlinks (default if -R)
+        -L      Follow all symlinks
+        -H      Follow symlinks on command line
+        -p      Preserve file attributes if possible
+        -f      Overwrite
+        -i      Prompt before overwrite
+        -l,-s   Create (sym)links
+ +
+
cpio
+
+ +

cpio [-dmvu] [-F FILE] [-H newc] [-tio] [-p DIR] [EXTR_FILE]...

+ +

Extract or list files from a cpio archive, or create an archive (-o) or copy files (-p) using file list on stdin

+ +

Main operation mode:

+ +
        -t      List
+        -i      Extract EXTR_FILEs (or all)
+        -o      Create (requires -H newc)
+        -p DIR  Copy files to DIR
+        -d      Make leading directories
+        -m      Preserve mtime
+        -v      Verbose
+        -u      Overwrite
+        -F FILE Input (-t,-i,-p) or output (-o) file
+        -H newc Archive format
+ +
+
crond
+
+ +

crond -fbS -l N -d N -L LOGFILE -c DIR

+ +
        -f      Foreground
+        -b      Background (default)
+        -S      Log to syslog (default)
+        -l      Set log level. 0 is the most verbose, default 8
+        -d      Set log level, log to stderr
+        -L      Log to file
+        -c      Working dir
+ +
+
crontab
+
+ +

crontab [-c DIR] [-u USER] [-ler]|[FILE]

+ +
        -c      Crontab directory
+        -u      User
+        -l      List crontab
+        -e      Edit crontab
+        -r      Delete crontab
+        FILE    Replace crontab by FILE ('-': stdin)
+ +
+
cryptpw
+
+ +

cryptpw [OPTIONS] [PASSWORD] [SALT]

+ +

Crypt PASSWORD using crypt(3)

+ +
        -P,--password-fd=N      Read password from fd N
+        -m,--method=TYPE        Encryption method
+        -S,--salt=SALT
+ +
+
cttyhack
+
+ +

cttyhack [PROG ARGS]

+ +

Give PROG a controlling tty if possible. Example for /etc/inittab (for busybox init): ::respawn:/bin/cttyhack /bin/sh Giving controlling tty to shell running with PID 1: $ exec cttyhack sh Starting interactive shell from boot shell script:

+ +
        setsid cttyhack sh
+ +
+
cut
+
+ +

cut [OPTIONS] [FILE]...

+ +

Print selected fields from each input FILE to stdout

+ +
        -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      Output only the lines containing delimiter
+        -f N    Print only these fields
+        -n      Ignored
+ +
+
date
+
+ +

date [OPTIONS] [+FMT] [TIME]

+ +

Display time (using +FMT), or set time

+ +
        [-s,--set] TIME Set time to TIME
+        -u,--utc        Work in UTC (don't convert to local time)
+        -R,--rfc-2822   Output RFC-2822 compliant date string
+        -I[SPEC]        Output ISO-8601 compliant date string
+                        SPEC='date' (default) for date only,
+                        'hours', 'minutes', or 'seconds' for date and
+                        time to the indicated precision
+        -r,--reference FILE     Display last modification time of FILE
+        -d,--date TIME  Display TIME, not 'now'
+        -D FMT          Use FMT for -d TIME conversion
+ +

Recognized TIME formats:

+ +
        hh:mm[:ss]
+        [YYYY.]MM.DD-hh:mm[:ss]
+        YYYY-MM-DD hh:mm[:ss]
+        [[[[[YY]YY]MM]DD]hh]mm[.ss]
+        'date TIME' form accepts MMDDhhmm[[YY]YY][.ss] instead
+ +
+
dc
+
+ +

dc EXPRESSION...

+ +

Tiny RPN calculator. Operations: +, add, -, sub, *, mul, /, div, %, mod, **, exp, and, or, not, eor, p - print top of the stack (without popping), f - print entire stack, o - pop the value and set output radix (must be 10, 16, 8 or 2). Examples: 'dc 2 2 add p' -> 4, 'dc 8 8 * 2 2 + / p' -> 16

+ +
+
dd
+
+ +

dd [if=FILE] [of=FILE] [ibs=N] [obs=N] [bs=N] [count=N] [skip=N] [seek=N] [conv=notrunc|noerror|sync|fsync]

+ +

Copy a file with converting and formatting

+ +
        if=FILE         Read from FILE instead of stdin
+        of=FILE         Write to FILE instead of stdout
+        bs=N            Read and write N bytes at a time
+        ibs=N           Read N bytes at a time
+        obs=N           Write N bytes at a time
+        count=N         Copy only N input blocks
+        skip=N          Skip N input blocks
+        seek=N          Skip N output blocks
+        conv=notrunc    Don't truncate output file
+        conv=noerror    Continue after read errors
+        conv=sync       Pad blocks with zeros
+        conv=fsync      Physically write data out before finishing
+ +

Numbers may be suffixed by c (x1), w (x2), b (x512), kD (x1000), k (x1024), MD (x1000000), M (x1048576), GD (x1000000000) or G (x1073741824)

+ +
+
deallocvt
+
+ +

deallocvt [N]

+ +

Deallocate unused virtual terminal /dev/ttyN

+ +
+
delgroup
+
+ +

delgroup [USER] GROUP

+ +

Delete group GROUP from the system or user USER from group GROUP

+ +
+
deluser
+
+ +

deluser USER

+ +

Delete USER from the system

+ +
+
depmod
+
+ +

depmod [-qfwrsv] MODULE [symbol=value]...

+ +
        -r      Remove MODULE (stacks) or do autoclean
+        -q      Quiet
+        -v      Verbose
+        -f      Force
+        -w      Wait for unload
+        -s      Report via syslog instead of stderr
+ +
+
devmem
+
+ +

devmem ADDRESS [WIDTH [VALUE]]

+ +

Read/write from physical address

+ +
        ADDRESS Address to act upon
+        WIDTH   Width (8/16/...)
+        VALUE   Data to be written
+ +
+
df
+
+ +

df [-Pkmhai] [-B SIZE] [FILESYSTEM]...

+ +

Print filesystem usage statistics

+ +
        -P      POSIX output format
+        -k      1024-byte blocks (default)
+        -m      1M-byte blocks
+        -h      Human readable (e.g. 1K 243M 2G)
+        -a      Show all filesystems
+        -i      Inodes
+        -B SIZE Blocksize
+ +
+
dhcprelay
+
+ +

dhcprelay CLIENT_IFACE[,CLIENT_IFACE2]... SERVER_IFACE [SERVER_IP]

+ +

Relay DHCP requests between clients and server

+ +
+
diff
+
+ +

diff [-abBdiNqrTstw] [-L LABEL] [-S FILE] [-U LINES] FILE1 FILE2

+ +

Compare files line by line and output the differences between them. This implementation supports unified diffs only.

+ +
        -a      Treat all files as text
+        -b      Ignore changes in the amount of whitespace
+        -B      Ignore changes whose lines are all blank
+        -d      Try hard to find a smaller set of changes
+        -i      Ignore case differences
+        -L      Use LABEL instead of the filename in the unified header
+        -N      Treat absent files as empty
+        -q      Output only whether files differ
+        -r      Recurse
+        -S      Start with FILE when comparing directories
+        -T      Make tabs line up by prefixing a tab when necessary
+        -s      Report when two files are the same
+        -t      Expand tabs to spaces in output
+        -U      Output LINES lines of context
+        -w      Ignore all whitespace
+ +
+
dirname
+
+ +

dirname FILENAME

+ +

Strip non-directory suffix from FILENAME

+ +
+
dmesg
+
+ +

dmesg [-c] [-n LEVEL] [-s SIZE]

+ +

Print or control the kernel ring buffer

+ +
        -c              Clear ring buffer after printing
+        -n LEVEL        Set console logging level
+        -s SIZE         Buffer size
+ +
+
dnsd
+
+ +

dnsd [-dvs] [-c CONFFILE] [-t TTL_SEC] [-p PORT] [-i ADDR]

+ +

Small static DNS server daemon

+ +
        -c FILE Config file
+        -t SEC  TTL
+        -p PORT Listen on PORT
+        -i ADDR Listen on ADDR
+        -d      Daemonize
+        -v      Verbose
+        -s      Send successful replies only. Use this if you want
+                to use /etc/resolv.conf with two nameserver lines:
+                        nameserver DNSD_SERVER
+                        nameserver NORMAL_DNS_SERVER
+ +
+
dos2unix
+
+ +

dos2unix [-ud] [FILE]

+ +

Convert FILE in-place from DOS to Unix format. When no file is given, use stdin/stdout.

+ +
        -u      dos2unix
+        -d      unix2dos
+ +
+
du
+
+ +

du [-aHLdclsxhmk] [FILE]...

+ +

Summarize disk space used for each FILE and/or directory

+ +
        -a      Show file sizes too
+        -L      Follow all symlinks
+        -H      Follow symlinks on command line
+        -d N    Limit output to directories (and files with -a) of depth < N
+        -c      Show grand total
+        -l      Count sizes many times if hard linked
+        -s      Display only a total for each argument
+        -x      Skip directories on different filesystems
+        -h      Sizes in human readable format (e.g., 1K 243M 2G)
+        -m      Sizes in megabytes
+        -k      Sizes in kilobytes (default)
+ +
+
dumpkmap
+
+ +

dumpkmap > keymap

+ +

Print a binary keyboard translation table to stdout

+ +
+
dumpleases
+
+ +

dumpleases [-r|-a] [-f LEASEFILE]

+ +

Display DHCP leases granted by udhcpd

+ +
        -f,--file=FILE  Lease file
+        -r,--remaining  Show remaining time
+        -a,--absolute   Show expiration time
+ +
+
echo
+
+ +

echo [-neE] [ARG]...

+ +

Print the specified ARGs to stdout

+ +
        -n      Suppress trailing newline
+        -e      Interpret backslash escapes (i.e., \t=tab)
+        -E      Don't interpret backslash escapes (default)
+ +
+
ed
+
+ +

ed

+ +
+
eject
+
+ +

eject [-t] [-T] [DEVICE]

+ +

Eject DEVICE or default /dev/cdrom

+ +
        -s      SCSI device
+        -t      Close tray
+        -T      Open/close tray (toggle)
+ +
+
env
+
+ +

env [-iu] [-] [name=value]... [PROG ARGS]

+ +

Print the current environment or run PROG after setting up the specified environment

+ +
        -, -i   Start with an empty environment
+        -u      Remove variable from the environment
+ +
+
envdir
+
+ +

envdir DIR PROG ARGS

+ +

Set various environment variables as specified by files in the directory DIR, run PROG

+ +
+
envuidgid
+
+ +

envuidgid USER PROG ARGS

+ +

Set $UID to USER's uid and $GID to USER's gid, run PROG

+ +
+
ether-wake
+
+ +

ether-wake [-b] [-i iface] [-p aa:bb:cc:dd[:ee:ff]] MAC

+ +

Send a magic packet to wake up sleeping machines. MAC must be a station address (00:11:22:33:44:55) or a hostname with a known 'ethers' entry.

+ +
        -b              Send wake-up packet to the broadcast address
+        -i iface        Interface to use (default eth0)
+        -p pass         Append four or six byte password PW to the packet
+ +
+
expand
+
+ +

expand [-i] [-t N] [FILE]...

+ +

Convert tabs to spaces, writing to stdout

+ +
        -i,--initial    Don't convert tabs after non blanks
+        -t,--tabs=N     Tabstops every N chars
+ +
+
expr
+
+ +

expr EXPRESSION

+ +

Print the value of EXPRESSION to stdout

+ +

EXPRESSION may be:

+ +
        ARG1 | ARG2     ARG1 if it is neither null nor 0, otherwise ARG2
+        ARG1 & ARG2     ARG1 if neither argument is null or 0, otherwise 0
+        ARG1 < ARG2     1 if ARG1 is less than ARG2, else 0. Similarly:
+        ARG1 <= ARG2
+        ARG1 = ARG2
+        ARG1 != ARG2
+        ARG1 >= ARG2
+        ARG1 > ARG2
+        ARG1 + ARG2     Sum of ARG1 and ARG2. Similarly:
+        ARG1 - ARG2
+        ARG1 * ARG2
+        ARG1 / ARG2
+        ARG1 % ARG2
+        STRING : REGEXP         Anchored pattern match of REGEXP in STRING
+        match STRING REGEXP     Same as STRING : REGEXP
+        substr STRING POS LENGTH Substring of STRING, POS counted from 1
+        index STRING CHARS      Index in STRING where any CHARS is found, or 0
+        length STRING           Length of STRING
+        quote TOKEN             Interpret TOKEN as a string, even if
+                                it is a keyword like 'match' or an
+                                operator like '/'
+        (EXPRESSION)            Value of EXPRESSION
+ +

Beware that many operators need to be escaped or quoted for shells. Comparisons are arithmetic if both ARGs are numbers, else lexicographical. Pattern matches return the string matched between \( and \) or null; if \( and \) are not used, they return the number of characters matched or 0.

+ +
+
fakeidentd
+
+ +

fakeidentd [-fiw] [-b ADDR] [STRING]

+ +

Provide fake ident (auth) service

+ +
        -f      Run in foreground
+        -i      Inetd mode
+        -w      Inetd 'wait' mode
+        -b ADDR Bind to specified address
+        STRING  Ident answer string (default: nobody)
+ +
+
false
+
+ +

false

+ +

Return an exit code of FALSE (1)

+ +
+
fbset
+
+ +

fbset [OPTIONS] [MODE]

+ +

Show and modify frame buffer settings

+ +
+
fbsplash
+
+ +

fbsplash -s IMGFILE [-c] [-d DEV] [-i INIFILE] [-f CMD]

+ +
        -s      Image
+        -c      Hide cursor
+        -d      Framebuffer device (default /dev/fb0)
+        -i      Config file (var=value):
+                        BAR_LEFT,BAR_TOP,BAR_WIDTH,BAR_HEIGHT
+                        BAR_R,BAR_G,BAR_B
+        -f      Control pipe (else exit after drawing image)
+                        commands: 'NN' (% for progress bar) or 'exit'
+ +
+
fdflush
+
+ +

fdflush DEVICE

+ +

Force floppy disk drive to detect disk change

+ +
+
fdformat
+
+ +

fdformat [-n] DEVICE

+ +

Format floppy disk

+ +
        -n      Don't verify after format
+ +
+
fdisk
+
+ +

fdisk [-ul] [-C CYLINDERS] [-H HEADS] [-S SECTORS] [-b SSZ] DISK

+ +

Change partition table

+ +
        -u              Start and End are in sectors (instead of cylinders)
+        -l              Show partition table for each DISK, then exit
+        -b 2048         (for certain MO disks) use 2048-byte sectors
+        -C CYLINDERS    Set number of cylinders/heads/sectors
+        -H HEADS
+        -S SECTORS
+ +
+
fgconsole
+
+ +

fgconsole

+ +

Get active console

+ +
+
find
+
+ +

find [PATH]... [OPTIONS] [ACTIONS]

+ +

Search for files and perform actions on them. First failed action stops processing of current file. Defaults: PATH is current directory, action is '-print'

+ +
        -follow         Follow symlinks
+        -xdev           Don't descend directories on other filesystems
+        -maxdepth N     Descend at most N levels. -maxdepth 0 applies
+                        actions to command line arguments only
+        -mindepth N     Don't act on first N levels
+        -depth          Act on directory *after* traversing it
+ +

Actions:

+ +
        ( ACTIONS )     Group actions for -o / -a
+        ! ACT           Invert ACT's success/failure
+        ACT1 [-a] ACT2  If ACT1 fails, stop, else do ACT2
+        ACT1 -o ACT2    If ACT1 succeeds, stop, else do ACT2
+                        Note: -a has higher priority than -o
+        -name PATTERN   Match file name (w/o directory name) to PATTERN
+        -iname PATTERN  Case insensitive -name
+        -path PATTERN   Match path to PATTERN
+        -ipath PATTERN  Case insensitive -path
+        -regex PATTERN  Match path to regex PATTERN
+        -type X         File type is X (one of: f,d,l,b,c,...)
+        -perm MASK      At least one mask bit (+MASK), all bits (-MASK),
+                        or exactly MASK bits are set in file's mode
+        -mtime DAYS     mtime is greater than (+N), less than (-N),
+                        or exactly N days in the past
+        -mmin MINS      mtime is greater than (+N), less than (-N),
+                        or exactly N minutes in the past
+        -newer FILE     mtime is more recent than FILE's
+        -inum N         File has inode number N
+        -user NAME/ID   File is owned by given user
+        -group NAME/ID  File is owned by given group
+        -size N[bck]    File size is N (c:bytes,k:kbytes,b:512 bytes(def.))
+                        +/-N: file size is bigger/smaller than N
+        -links N        Number of links is greater than (+N), less than (-N),
+                        or exactly N
+        -prune          If current file is directory, don't descend into it
+If none of the following actions is specified, -print is assumed
+        -print          Print file name
+        -print0         Print file name, NUL terminated
+        -exec CMD ARG ; Run CMD with all instances of {} replaced by
+                        file name. Fails if CMD exits with nonzero
+        -delete         Delete current file/directory. Turns on -depth option
+ +
+
findfs
+
+ +

findfs LABEL=label or UUID=uuid

+ +

Find a filesystem device based on a label or UUID

+ +
+
flash_eraseall
+
+ +

flash_eraseall [-jq] MTD_DEVICE

+ +

Erase an MTD device

+ +
        -j      Format the device for jffs2
+        -q      Don't display progress messages
+ +
+
flock
+
+ +

flock [-sxun] FD|{FILE [-c] PROG ARGS}

+ +

[Un]lock file descriptor, or lock FILE, run PROG

+ +
        -s      Shared lock
+        -x      Exclusive lock (default)
+        -u      Unlock FD
+        -n      Fail rather than wait
+ +
+
fold
+
+ +

fold [-bs] [-w WIDTH] [FILE]...

+ +

Wrap input lines in each FILE (or stdin), writing to stdout

+ +
        -b      Count bytes rather than columns
+        -s      Break at spaces
+        -w      Use WIDTH columns instead of 80
+ +
+
free
+
+ +

free [-b/k/m/g]

+ +

Display the amount of free and used system memory

+ +
+
freeramdisk
+
+ +

freeramdisk DEVICE

+ +

Free all memory used by the specified ramdisk

+ +
+
fsck
+
+ +

fsck [-ANPRTV] [-C FD] [-t FSTYPE] [FS_OPTS] [BLOCKDEV]...

+ +

Check and repair filesystems

+ +
        -A      Walk /etc/fstab and check all filesystems
+        -N      Don't execute, just show what would be done
+        -P      With -A, check filesystems in parallel
+        -R      With -A, skip the root filesystem
+        -T      Don't show title on startup
+        -V      Verbose
+        -C n    Write status information to specified filedescriptor
+        -t TYPE List of filesystem types to check
+ +
+
fsck.minix
+
+ +

fsck.minix [-larvsmf] BLOCKDEV

+ +

Check MINIX filesystem

+ +
        -l      List all filenames
+        -r      Perform interactive repairs
+        -a      Perform automatic repairs
+        -v      Verbose
+        -s      Output superblock information
+        -m      Show "mode not cleared" warnings
+        -f      Force file system check
+ +
+
fsync
+
+ +

fsync [-d] FILE...

+ +

Write files' buffered blocks to disk

+ +
        -d      Avoid syncing metadata
+ +
+
ftpd
+
+ +

ftpd [-wvS] [-t N] [-T N] [DIR]

+ +

Anonymous FTP server

+ +

ftpd should be used as an inetd service. ftpd's line for inetd.conf: 21 stream tcp nowait root ftpd ftpd /files/to/serve It also can be ran from tcpsvd:

+ +
        tcpsvd -vE 0.0.0.0 21 ftpd /files/to/serve
+
+        -w      Allow upload
+        -v      Log errors to stderr. -vv: verbose log
+        -S      Log errors to syslog. -SS: verbose log
+        -t,-T   Idle and absolute timeouts
+        DIR     Change root to this directory
+ +
+
ftpget
+
+ +

ftpget [OPTIONS] HOST [LOCAL_FILE] REMOTE_FILE

+ +

Download a file via FTP

+ +
        -c,--continue           Continue previous transfer
+        -v,--verbose            Verbose
+        -u,--username USER      Username
+        -p,--password PASS      Password
+        -P,--port NUM           Port
+ +
+
ftpput
+
+ +

ftpput [OPTIONS] HOST [REMOTE_FILE] LOCAL_FILE

+ +

Upload a file to a FTP server

+ +
        -v,--verbose            Verbose
+        -u,--username USER      Username
+        -p,--password PASS      Password
+        -P,--port NUM           Port
+ +
+
fuser
+
+ +

fuser [OPTIONS] FILE or PORT/PROTO

+ +

Find processes which use FILEs or PORTs

+ +
        -m      Find processes which use same fs as FILEs
+        -4,-6   Search only IPv4/IPv6 space
+        -s      Don't display PIDs
+        -k      Kill found processes
+        -SIGNAL Signal to send (default: KILL)
+ +
+
getopt
+
+ +

getopt [OPTIONS] [--] OPTSTRING PARAMS

+ +
        -a,--alternative                Allow long options starting with single -
+        -l,--longoptions=LOPT[,...]     Long options to be recognized
+        -n,--name=PROGNAME              The name under which errors are reported
+        -o,--options=OPTSTRING          Short options to be recognized
+        -q,--quiet                      Disable error reporting by getopt(3)
+        -Q,--quiet-output               No normal output
+        -s,--shell=SHELL                Set shell quoting conventions
+        -T,--test                       Test for getopt(1) version
+        -u,--unquoted                   Don't quote the output
+ +

Example:

+ +

O=`getopt -l bb: -- ab:c:: "$@"` || exit 1 eval set -- "$O" while true; do case "$1" in -a) echo A; shift;; -b|--bb) echo "B:'$2'"; shift 2;; -c) case "$2" in "") echo C; shift 2;; *) echo "C:'$2'"; shift 2;; esac;; --) shift; break;; *) echo Error; exit 1;; esac done

+ +
+
getty
+
+ +

getty [OPTIONS] BAUD_RATE[,BAUD_RATE]... TTY [TERMTYPE]

+ +

Open TTY, prompt for login name, then invoke /bin/login

+ +
        -h              Enable hardware RTS/CTS flow control
+        -L              Set CLOCAL (ignore Carrier Detect state)
+        -m              Get baud rate from modem's CONNECT status message
+        -n              Don't prompt for login name
+        -w              Wait for CR or LF before sending /etc/issue
+        -i              Don't display /etc/issue
+        -f ISSUE_FILE   Display ISSUE_FILE instead of /etc/issue
+        -l LOGIN        Invoke LOGIN instead of /bin/login
+        -t SEC          Terminate after SEC if no login name is read
+        -I INITSTR      Send INITSTR before anything else
+        -H HOST         Log HOST into the utmp file as the hostname
+ +

BAUD_RATE of 0 leaves it unchanged

+ +
+
grep
+
+ +

grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]...

+ +

Search for PATTERN in FILEs (or stdin)

+ +
        -H      Add 'filename:' prefix
+        -h      Do not add 'filename:' prefix
+        -n      Add 'line_no:' prefix
+        -l      Show only names of files that match
+        -L      Show only names of files that don't match
+        -c      Show only count of matching lines
+        -o      Show only the matching part of line
+        -q      Quiet. Return 0 if PATTERN is found, 1 otherwise
+        -v      Select non-matching lines
+        -s      Suppress open and read errors
+        -r      Recurse
+        -i      Ignore case
+        -w      Match whole words only
+        -x      Match whole lines only
+        -F      PATTERN is a literal (not regexp)
+        -E      PATTERN is an extended regexp
+        -m N    Match up to N times per file
+        -A N    Print N lines of trailing context
+        -B N    Print N lines of leading context
+        -C N    Same as '-A N -B N'
+        -e PTRN Pattern to match
+        -f FILE Read pattern from file
+ +
+
groups
+
+ +

groups [USER]

+ +

Print the group memberships of USER or for the current process

+ +
+
gunzip
+
+ +

gunzip [-cft] [FILE]...

+ +

Decompress FILEs (or stdin)

+ +
        -c      Write to stdout
+        -f      Force
+        -t      Test file integrity
+ +
+
gzip
+
+ +

gzip [-cfd] [FILE]...

+ +

Compress FILEs (or stdin)

+ +
        -d      Decompress
+        -c      Write to stdout
+        -f      Force
+ +
+
halt
+
+ +

halt [-d DELAY] [-n] [-f] [-w]

+ +

Halt the system

+ +
        -d SEC  Delay interval
+        -n      Do not sync
+        -f      Force (don't go through init)
+        -w      Only write a wtmp record
+ +
+
hd
+
+ +

hd FILE...

+ +

hd is an alias for hexdump -C

+ +
+
hdparm
+
+ +

hdparm [OPTIONS] [DEVICE]

+ +
        -a      Get/set fs readahead
+        -A      Set drive read-lookahead flag (0/1)
+        -b      Get/set bus state (0 == off, 1 == on, 2 == tristate)
+        -B      Set Advanced Power Management setting (1-255)
+        -c      Get/set IDE 32-bit IO setting
+        -C      Check IDE power mode status
+        -d      Get/set using_dma flag
+        -D      Enable/disable drive defect-mgmt
+        -f      Flush buffer cache for device on exit
+        -g      Display drive geometry
+        -h      Display terse usage information
+        -i      Display drive identification
+        -I      Detailed/current information directly from drive
+        -k      Get/set keep_settings_over_reset flag (0/1)
+        -K      Set drive keep_features_over_reset flag (0/1)
+        -L      Set drive doorlock (0/1) (removable harddisks only)
+        -m      Get/set multiple sector count
+        -n      Get/set ignore-write-errors flag (0/1)
+        -p      Set PIO mode on IDE interface chipset (0,1,2,3,4,...)
+        -P      Set drive prefetch count
+        -Q      Get/set DMA tagged-queuing depth (if supported)
+        -r      Get/set readonly flag (DANGEROUS to set)
+        -R      Register an IDE interface (DANGEROUS)
+        -S      Set standby (spindown) timeout
+        -t      Perform device read timings
+        -T      Perform cache read timings
+        -u      Get/set unmaskirq flag (0/1)
+        -U      Unregister an IDE interface (DANGEROUS)
+        -v      Defaults; same as -mcudkrag for IDE drives
+        -V      Display program version and exit immediately
+        -w      Perform device reset (DANGEROUS)
+        -W      Set drive write-caching flag (0/1) (DANGEROUS)
+        -x      Tristate device for hotswap (0/1) (DANGEROUS)
+        -X      Set IDE xfer mode (DANGEROUS)
+        -y      Put IDE drive in standby mode
+        -Y      Put IDE drive to sleep
+        -Z      Disable Seagate auto-powersaving mode
+        -z      Reread partition table
+ +
+ +
+ +

head [OPTIONS] [FILE]...

+ +

Print first 10 lines of each FILE (or stdin) to stdout. With more than one FILE, precede each with a filename header.

+ +
        -n N[kbm]       Print first N lines
+        -c N[kbm]       Print first N bytes
+        -q              Never print headers
+        -v              Always print headers
+ +

N may be suffixed by k (x1024), b (x512), or m (x1024^2).

+ +
+
hexdump
+
+ +

hexdump [-bcCdefnosvxR] [FILE]...

+ +

Display FILEs (or stdin) in a user specified format

+ +
        -b              One-byte octal display
+        -c              One-byte character display
+        -C              Canonical hex+ASCII, 16 bytes per line
+        -d              Two-byte decimal display
+        -e FORMAT_STRING
+        -f FORMAT_FILE
+        -n LENGTH       Interpret only LENGTH bytes of input
+        -o              Two-byte octal display
+        -s OFFSET       Skip OFFSET bytes
+        -v              Display all input data
+        -x              Two-byte hexadecimal display
+        -R              Reverse of 'hexdump -Cv'
+ +
+
hostid
+
+ +

hostid

+ +

Print out a unique 32-bit identifier for the machine

+ +
+
hostname
+
+ +

hostname [OPTIONS] [HOSTNAME | -F FILE]

+ +

Get or set hostname or DNS domain name

+ +
        -s      Short
+        -i      Addresses for the hostname
+        -d      DNS domain name
+        -f      Fully qualified domain name
+        -F FILE Use FILE's content as hostname
+ +
+
httpd
+
+ +

httpd [-ifv[v]] [-c CONFFILE] [-p [IP:]PORT] [-u USER[:GRP]] [-r REALM] [-h HOME] or httpd -d/-e/-m STRING

+ +

Listen for incoming HTTP requests

+ +
        -i              Inetd mode
+        -f              Don't daemonize
+        -v[v]           Verbose
+        -p [IP:]PORT    Bind to IP:PORT (default *:80)
+        -u USER[:GRP]   Set uid/gid after binding to port
+        -r REALM        Authentication Realm for Basic Authentication
+        -h HOME         Home directory (default .)
+        -c FILE         Configuration file (default {/etc,HOME}/httpd.conf)
+        -m STRING       MD5 crypt STRING
+        -e STRING       HTML encode STRING
+        -d STRING       URL decode STRING
+ +
+
hush
+
+ +

hush [-nxl] [-c 'SCRIPT' [ARG0 [ARGS]] / FILE [ARGS]]

+ +

Unix shell interpreter

+ +
+
hwclock
+
+ +

hwclock [-r|--show] [-s|--hctosys] [-w|--systohc] [-t|--systz] [-l|--localtime] [-u|--utc] [-f|--rtc FILE]

+ +

Query and set hardware clock (RTC)

+ +
        -r      Show hardware clock time
+        -s      Set system time from hardware clock
+        -w      Set hardware clock from system time
+        -t      Set in-kernel timezone, correct system time
+                if hardware clock is in local time
+        -u      Assume hardware clock is kept in UTC
+        -l      Assume hardware clock is kept in local time
+        -f FILE Use specified device (e.g. /dev/rtc2)
+ +
+
id
+
+ +

id [OPTIONS] [USER]

+ +

Print information about USER or the current user

+ +
        -u      User ID
+        -g      Group ID
+        -G      Supplementary group IDs
+        -n      Print names instead of numbers
+        -r      Print real ID instead of effective ID
+ +
+
ifconfig
+
+ +

ifconfig [-a] interface [address]

+ +

Configure a network interface

+ +
        [add ADDRESS[/PREFIXLEN]]
+        [del ADDRESS[/PREFIXLEN]]
+        [[-]broadcast [ADDRESS]] [[-]pointopoint [ADDRESS]]
+        [netmask ADDRESS] [dstaddr ADDRESS]
+        [outfill NN] [keepalive NN]
+        [hw ether|infiniband ADDRESS] [metric NN] [mtu NN]
+        [[-]trailers] [[-]arp] [[-]allmulti]
+        [multicast] [[-]promisc] [txqueuelen NN] [[-]dynamic]
+        [mem_start NN] [io_addr NN] [irq NN]
+        [up|down] ...
+ +
+
ifdown
+
+ +

ifdown [-anmvf] [-i FILE] IFACE...

+ +
        -a      De/configure all interfaces automatically
+        -i FILE Use FILE for interface definitions
+        -n      Print out what would happen, but don't do it
+                (note: doesn't disable mappings)
+        -m      Don't run any mappings
+        -v      Print out what would happen before doing it
+        -f      Force de/configuration
+ +
+
ifenslave
+
+ +

ifenslave [-cdf] MASTER_IFACE SLAVE_IFACE...

+ +

Configure network interfaces for parallel routing

+ +
        -c,--change-active      Change active slave
+        -d,--detach             Remove slave interface from bonding device
+        -f,--force              Force, even if interface is not Ethernet
+ +
+
ifplugd
+
+ +

ifplugd [OPTIONS]

+ +

Network interface plug detection daemon

+ +
        -n              Don't daemonize
+        -s              Don't log to syslog
+        -i IFACE        Interface
+        -f/-F           Treat link detection error as link down/link up
+                        (otherwise exit on error)
+        -a              Don't up interface at each link probe
+        -M              Monitor creation/destruction of interface
+                        (otherwise it must exist)
+        -r PROG         Script to run
+        -x ARG          Extra argument for script
+        -I              Don't exit on nonzero exit code from script
+        -p              Don't run script on daemon startup
+        -q              Don't run script on daemon quit
+        -l              Run script on startup even if no cable is detected
+        -t SECS         Poll time in seconds
+        -u SECS         Delay before running script after link up
+        -d SECS         Delay after link down
+        -m MODE         API mode (mii, priv, ethtool, wlan, iff, auto)
+        -k              Kill running daemon
+ +
+
ifup
+
+ +

ifup [-anmvf] [-i FILE] IFACE...

+ +
        -a      De/configure all interfaces automatically
+        -i FILE Use FILE for interface definitions
+        -n      Print out what would happen, but don't do it
+                (note: doesn't disable mappings)
+        -m      Don't run any mappings
+        -v      Print out what would happen before doing it
+        -f      Force de/configuration
+ +
+
inetd
+
+ +

inetd [-fe] [-q N] [-R N] [CONFFILE]

+ +

Listen for network connections and launch programs

+ +
        -f      Run in foreground
+        -e      Log to stderr
+        -q N    Socket listen queue (default: 128)
+        -R N    Pause services after N connects/min
+                (default: 0 - disabled)
+ +
+
init
+
+ +

init

+ +

Init is the parent of all processes

+ +
+
insmod
+
+ +

insmod [-qfwrsv] MODULE [symbol=value]...

+ +
        -r      Remove MODULE (stacks) or do autoclean
+        -q      Quiet
+        -v      Verbose
+        -f      Force
+        -w      Wait for unload
+        -s      Report via syslog instead of stderr
+ +
+
install
+
+ +

install [-cdDsp] [-o USER] [-g GRP] [-m MODE] [SOURCE]... DEST

+ +

Copy files and set attributes

+ +
        -c      Just copy (default)
+        -d      Create directories
+        -D      Create leading target directories
+        -s      Strip symbol table
+        -p      Preserve date
+        -o USER Set ownership
+        -g GRP  Set group ownership
+        -m MODE Set permissions
+ +
+
ionice
+
+ +

ionice [-c 1-3] [-n 0-7] [-p PID] [PROG]

+ +

Change I/O priority and class

+ +
        -c      Class. 1:realtime 2:best-effort 3:idle
+        -n      Priority
+ +
+
iostat
+
+ +

iostat [-c] [-d] [-t] [-z] [-k|-m] [ALL|BLOCKDEV...] [INTERVAL [COUNT]]

+ +

Report CPU and I/O statistics

+ +
        -c      Show CPU utilization
+        -d      Show device utilization
+        -t      Print current time
+        -z      Omit devices with no activity
+        -k      Use kb/s
+        -m      Use Mb/s
+ +
+
ip
+
+ +

ip [OPTIONS] {address | route | link | tunnel | rule} {COMMAND}

+ +

ip [OPTIONS] OBJECT {COMMAND} where OBJECT := {address | route | link | tunnel | rule} OPTIONS := { -f[amily] { inet | inet6 | link } | -o[neline] }

+ +
+
ipaddr
+
+ +

ipaddr { {add|del} IFADDR dev STRING | {show|flush} [dev STRING] [to PREFIX] }

+ +

ipaddr {add|delete} IFADDR dev STRING ipaddr {show|flush} [dev STRING] [scope SCOPE-ID] [to PREFIX] [label PATTERN] IFADDR := PREFIX | ADDR peer PREFIX [broadcast ADDR] [anycast ADDR] [label STRING] [scope SCOPE-ID] SCOPE-ID := [host | link | global | NUMBER]

+ +
+
ipcalc
+
+ +

ipcalc [OPTIONS] ADDRESS[[/]NETMASK] [NETMASK]

+ +

Calculate IP network settings from a IP address

+ +
        -b,--broadcast  Display calculated broadcast address
+        -n,--network    Display calculated network address
+        -m,--netmask    Display default netmask for IP
+        -p,--prefix     Display the prefix for IP/NETMASK
+        -h,--hostname   Display first resolved host name
+        -s,--silent     Don't ever display error messages
+ +
+
ipcrm
+
+ +

ipcrm [-MQS key] [-mqs id]

+ +

Upper-case options MQS remove an object by shmkey value. Lower-case options remove an object by shmid value.

+ +
        -mM     Remove memory segment after last detach
+        -qQ     Remove message queue
+        -sS     Remove semaphore
+ +
+
ipcs
+
+ +

ipcs [[-smq] -i shmid] | [[-asmq] [-tcplu]]

+ +
        -i      Show specific resource
+Resource specification:
+
+        -m      Shared memory segments
+        -q      Message queues
+        -s      Semaphore arrays
+        -a      All (default)
+Output format:
+
+        -t      Time
+        -c      Creator
+        -p      Pid
+        -l      Limits
+        -u      Summary
+ +
+ +
+ +

iplink { set DEVICE { up | down | arp { on | off } | show [DEVICE] }

+ +

iplink set DEVICE { up | down | arp | multicast { on | off } | dynamic { on | off } | mtu MTU } iplink show [DEVICE]

+ +
+
iproute
+
+ +

iproute { list | flush | add | del | change | append | replace | test } ROUTE

+ +

iproute { list | flush } SELECTOR iproute get ADDRESS [from ADDRESS iif STRING] [oif STRING] [tos TOS] iproute { add | del | change | append | replace | test } ROUTE SELECTOR := [root PREFIX] [match PREFIX] [proto RTPROTO] ROUTE := [TYPE] PREFIX [tos TOS] [proto RTPROTO] [metric METRIC]

+ +
+
iprule
+
+ +

iprule {[list | add | del] RULE}

+ +

iprule [list | add | del] SELECTOR ACTION SELECTOR := [from PREFIX] [to PREFIX] [tos TOS] [fwmark FWMARK] [dev STRING] [pref NUMBER] ACTION := [table TABLE_ID] [nat ADDRESS] [prohibit | reject | unreachable] [realms [SRCREALM/]DSTREALM] TABLE_ID := [local | main | default | NUMBER]

+ +
+
iptunnel
+
+ +

iptunnel { add | change | del | show } [NAME] [mode { ipip | gre | sit }] [remote ADDR] [local ADDR] [ttl TTL]

+ +

iptunnel { add | change | del | show } [NAME] [mode { ipip | gre | sit }] [remote ADDR] [local ADDR] [[i|o]seq] [[i|o]key KEY] [[i|o]csum] [ttl TTL] [tos TOS] [[no]pmtudisc] [dev PHYS_DEV]

+ +
+
kbd_mode
+
+ +

kbd_mode [-a|k|s|u] [-C TTY]

+ +

Report or set the keyboard mode

+ +
        -a      Default (ASCII)
+        -k      Medium-raw (keyboard)
+        -s      Raw (scancode)
+        -u      Unicode (utf-8)
+        -C TTY  Affect TTY instead of /dev/tty
+ +
+
kill
+
+ +

kill [-l] [-SIG] PID...

+ +

Send a signal (default: TERM) to given PIDs

+ +
        -l      List all signal names and numbers
+ +
+
killall
+
+ +

killall [-l] [-q] [-SIG] PROCESS_NAME...

+ +

Send a signal (default: TERM) to given processes

+ +
        -l      List all signal names and numbers
+        -q      Don't complain if no processes were killed
+ +
+
killall5
+
+ +

killall5 [-l] [-SIG] [-o PID]...

+ +

Send a signal (default: TERM) to all processes outside current session

+ +
        -l      List all signal names and numbers
+        -o PID  Don't signal this PID
+ +
+
klogd
+
+ +

klogd [-c N] [-n]

+ +

Kernel logger

+ +
        -c N    Print to console messages more urgent than prio N (1-8)
+        -n      Run in foreground
+ +
+
last
+
+ +

last [-HW] [-f FILE]

+ +

Show listing of the last users that logged into the system

+ +
        -W      Display with no host column truncation
+        -f FILE Read from FILE instead of /var/log/wtmp
+ +
+
less
+
+ +

less [-EMmNh~I?] [FILE]...

+ +

View FILE (or stdin) one screenful at a time

+ +
        -E      Quit once the end of a file is reached
+        -M,-m   Display status line with line numbers
+                and percentage through the file
+        -N      Prefix line number to each line
+        -I      Ignore case in all searches
+        -~      Suppress ~s displayed past EOF
+ +
+
ln
+
+ +

ln [OPTIONS] TARGET... LINK|DIR

+ +

Create a link LINK or DIR/TARGET to the specified TARGET(s)

+ +
        -s      Make symlinks instead of hardlinks
+        -f      Remove existing destinations
+        -n      Don't dereference symlinks - treat like normal file
+        -b      Make a backup of the target (if exists) before link operation
+        -S suf  Use suffix instead of ~ when making backup files
+ +
+
loadfont
+
+ +

loadfont < font

+ +

Load a console font from stdin

+ +
+
loadkmap
+
+ +

loadkmap < keymap

+ +

Load a binary keyboard translation table from stdin

+ +
+
logger
+
+ +

logger [OPTIONS] [MESSAGE]

+ +

Write MESSAGE (or stdin) to syslog

+ +
        -s      Log to stderr as well as the system log
+        -t TAG  Log using the specified tag (defaults to user name)
+        -p PRIO Priority (numeric or facility.level pair)
+ +
+
login
+
+ +

login [-p] [-h HOST] [[-f] USER]

+ +

Begin a new session on the system

+ +
        -f      Don't authenticate (user already authenticated)
+        -h      Name of the remote host
+        -p      Preserve environment
+ +
+
logname
+
+ +

logname

+ +

Print the name of the current user

+ +
+
logread
+
+ +

logread [-f]

+ +

Show messages in syslogd's circular buffer

+ +
        -f      Output data as log grows
+ +
+
losetup
+
+ +

losetup [-r] [-o OFS] LOOPDEV FILE - associate loop devices losetup -d LOOPDEV - disassociate losetup [-f] - show

+ +
        -o OFS  Start OFS bytes into FILE
+        -r      Read-only
+        -f      Show first free loop device
+ +
+
lpd
+
+ +

lpd SPOOLDIR [HELPER [ARGS]]

+ +

SPOOLDIR must contain (symlinks to) device nodes or directories with names matching print queue names. In the first case, jobs are sent directly to the device. Otherwise each job is stored in queue directory and HELPER program is called. Name of file to print is passed in $DATAFILE variable. Example:

+ +
        tcpsvd -E 0 515 softlimit -m 999999 lpd /var/spool ./print
+ +
+
lpq
+
+ +

lpq [-P queue[@host[:port]]] [-U USERNAME] [-d JOBID]... [-fs]

+ +
        -P      lp service to connect to (else uses $PRINTER)
+        -d      Delete jobs
+        -f      Force any waiting job to be printed
+        -s      Short display
+ +
+
lpr
+
+ +

lpr -P queue[@host[:port]] -U USERNAME -J TITLE -Vmh [FILE]...

+ +
        -P      lp service to connect to (else uses $PRINTER)
+        -m      Send mail on completion
+        -h      Print banner page too
+        -V      Verbose
+ +
+
ls
+
+ +

ls [-1AaCxdLHRFplinsehrSXvctu] [-w WIDTH] [FILE]...

+ +

List directory contents

+ +
        -1      One column output
+        -a      Include entries which start with .
+        -A      Like -a, but exclude . and ..
+        -C      List by columns
+        -x      List by lines
+        -d      List directory entries instead of contents
+        -L      Follow symlinks
+        -H      Follow symlinks on command line
+        -R      Recurse
+        -p      Append / to dir entries
+        -F      Append indicator (one of */=@|) to entries
+        -l      Long listing format
+        -i      List inode numbers
+        -n      List numeric UIDs and GIDs instead of names
+        -s      List allocated blocks
+        -e      List full date and time
+        -h      List sizes in human readable format (1K 243M 2G)
+        -r      Sort in reverse order
+        -S      Sort by size
+        -X      Sort by extension
+        -v      Sort by version
+        -c      With -l: sort by ctime
+        -t      With -l: sort by mtime
+        -u      With -l: sort by atime
+        -w N    Assume the terminal is N columns wide
+        --color[={always,never,auto}]   Control coloring
+ +
+
lsattr
+
+ +

lsattr [-Radlv] [FILE]...

+ +

List file attributes on an ext2 fs

+ +
        -R      Recurse
+        -a      Don't hide entries starting with .
+        -d      List directory entries instead of contents
+        -l      List long flag names
+        -v      List the file's version/generation number
+ +
+
lsmod
+
+ +

lsmod [-qfwrsv] MODULE [symbol=value]...

+ +
        -r      Remove MODULE (stacks) or do autoclean
+        -q      Quiet
+        -v      Verbose
+        -f      Force
+        -w      Wait for unload
+        -s      Report via syslog instead of stderr
+ +
+
lsof
+
+ +

lsof

+ +

Show all open files

+ +
+
lspci
+
+ +

lspci [-mk]

+ +

List all PCI devices

+ +
        -m      Parsable output
+        -k      Show driver
+ +
+
lzcat
+
+ +

lzcat FILE

+ +

Decompress to stdout

+ +
+
lzma
+
+ +

lzma -d [-cf] [FILE]...

+ +

Decompress FILE (or stdin)

+ +
        -d      Decompress
+        -c      Write to stdout
+        -f      Force
+ +
+
lzop
+
+ +

lzop [-cfvd123456789CF] [FILE]...

+ +
        -1..9   Compression level
+        -d      Decompress
+        -c      Write to stdout
+        -f      Force
+        -v      Verbose
+        -F      Don't store or verify checksum
+        -C      Also write checksum of compressed block
+ +
+
lzopcat
+
+ +

lzopcat [-vCF] [FILE]...

+ +
        -v      Verbose
+        -F      Don't store or verify checksum
+ +
+
makedevs
+
+ +

makedevs [-d device_table] rootdir

+ +

Create a range of special files as specified in a device table. Device table entries take the form of:

+ +

<name> <type> <mode> <uid> <gid> <major> <minor> <start> <inc> <count> Where name is the file name, type can be one of: f Regular file d Directory c Character device b Block device p Fifo (named pipe) uid is the user id for the target file, gid is the group id for the target file. The rest of the entries (major, minor, etc) apply to to device special files. A '-' may be used for blank entries.

+ +
+
makemime
+
+ +

makemime [OPTIONS] [FILE]...

+ +

Create multipart MIME-encoded message from FILEs

+ +
        -o FILE Output. Default: stdout
+        -a HDR  Add header(s). Examples:
+                "From: user@host.org", "Date: `date -R`"
+        -c CT   Content type. Default: application/octet-stream
+        -C CS   Charset. Default: us-ascii
+ +

Other options are silently ignored

+ +
+
man
+
+ +

man [-aw] [MANPAGE]...

+ +

Format and display manual page

+ +
        -a      Display all pages
+        -w      Show page locations
+ +
+
md5sum
+
+ +

md5sum [-c[sw]] [FILE]...

+ +

Print or check MD5 checksums

+ +
        -c      Check sums against list in FILEs
+        -s      Don't output anything, status code shows success
+        -w      Warn about improperly formatted checksum lines
+ +
+
mdev
+
+ +

mdev [-s]

+ +

mdev -s is to be run during boot to scan /sys and populate /dev.

+ +

Bare mdev is a kernel hotplug helper. To activate it: echo /sbin/mdev >/proc/sys/kernel/hotplug

+ +

It uses /etc/mdev.conf with lines [-]DEVNAME UID:GID PERM [>|=PATH]|[!] [@|$|*PROG] where DEVNAME is device name regex, @major,minor[-minor2], or environment variable regex. A common use of the latter is to load modules for hotplugged devices:

+ +
        $MODALIAS=.* 0:0 660 @modprobe "$MODALIAS"
+ +

If /dev/mdev.seq file exists, mdev will wait for its value to match $SEQNUM variable. This prevents plug/unplug races. To activate this feature, create empty /dev/mdev.seq at boot.

+ +
+
mesg
+
+ +

mesg [y|n]

+ +

Control write access to your terminal y Allow write access to your terminal n Disallow write access to your terminal

+ +
+
microcom
+
+ +

microcom [-d DELAY] [-t TIMEOUT] [-s SPEED] [-X] TTY

+ +

Copy bytes for stdin to TTY and from TTY to stdout

+ +
        -d      Wait up to DELAY ms for TTY output before sending every
+                next byte to it
+        -t      Exit if both stdin and TTY are silent for TIMEOUT ms
+        -s      Set serial line to SPEED
+        -X      Disable special meaning of NUL and Ctrl-X from stdin
+ +
+
mkdir
+
+ +

mkdir [OPTIONS] DIRECTORY...

+ +

Create DIRECTORY

+ +
        -m MODE Mode
+        -p      No error if exists; make parent directories as needed
+ +
+
mkdosfs
+
+ +

mkdosfs [-v] [-n LABEL] BLOCKDEV [KBYTES]

+ +

Make a FAT32 filesystem

+ +
        -v      Verbose
+        -n LBL  Volume label
+ +
+
mke2fs
+
+ +

mke2fs [-Fn] [-b BLK_SIZE] [-i INODE_RATIO] [-I INODE_SIZE] [-m RESERVED_PERCENT] [-L LABEL] BLOCKDEV [KBYTES]

+ +
        -b BLK_SIZE     Block size, bytes
+        -F              Force
+        -i RATIO        Max number of files is filesystem_size / RATIO
+        -I BYTES        Inode size (min 128)
+        -L LBL          Volume label
+        -m PERCENT      Percent of blocks to reserve for admin
+        -n              Dry run
+ +
+
mkfifo
+
+ +

mkfifo [-m MODE] NAME

+ +

Create named pipe

+ +
        -m MODE Mode (default a=rw)
+ +
+
mkfs.ext2
+
+ +

mkfs.ext2 [-Fn] [-b BLK_SIZE] [-i INODE_RATIO] [-I INODE_SIZE] [-m RESERVED_PERCENT] [-L LABEL] BLOCKDEV [KBYTES]

+ +
        -b BLK_SIZE     Block size, bytes
+        -F              Force
+        -i RATIO        Max number of files is filesystem_size / RATIO
+        -I BYTES        Inode size (min 128)
+        -L LBL          Volume label
+        -m PERCENT      Percent of blocks to reserve for admin
+        -n              Dry run
+ +
+
mkfs.minix
+
+ +

mkfs.minix [-c | -l FILE] [-nXX] [-iXX] BLOCKDEV [KBYTES]

+ +

Make a MINIX filesystem

+ +
        -c              Check device for bad blocks
+        -n [14|30]      Maximum length of filenames
+        -i INODES       Number of inodes for the filesystem
+        -l FILE         Read bad blocks list from FILE
+        -v              Make version 2 filesystem
+ +
+
mkfs.vfat
+
+ +

mkfs.vfat [-v] [-n LABEL] BLOCKDEV [KBYTES]

+ +

Make a FAT32 filesystem

+ +
        -v      Verbose
+        -n LBL  Volume label
+ +
+
mknod
+
+ +

mknod [-m MODE] NAME TYPE MAJOR MINOR

+ +

Create a special file (block, character, or pipe)

+ +
        -m MODE Creation mode (default a=rw)
+TYPE:
+        b       Block device
+        c or u  Character device
+        p       Named pipe (MAJOR and MINOR are ignored)
+ +
+
mkpasswd
+
+ +

mkpasswd [OPTIONS] [PASSWORD] [SALT]

+ +

Crypt PASSWORD using crypt(3)

+ +
        -P,--password-fd=N      Read password from fd N
+        -m,--method=TYPE        Encryption method
+        -S,--salt=SALT
+ +
+
mkswap
+
+ +

mkswap [-L LBL] BLOCKDEV [KBYTES]

+ +

Prepare BLOCKDEV to be used as swap partition

+ +
        -L LBL  Label
+ +
+
mktemp
+
+ +

mktemp [-dt] [-p DIR] [TEMPLATE]

+ +

Create a temporary file with name based on TEMPLATE and print its name. TEMPLATE must end with XXXXXX (e.g. [/dir/]nameXXXXXX). Without TEMPLATE, -t tmp.XXXXXX is assumed.

+ +
        -d      Make directory, not file
+        -t      Prepend base directory name to TEMPLATE
+        -p DIR  Use DIR as a base directory (implies -t)
+        -u      Do not create anything; print a name
+ +

Base directory is: -p DIR, else $TMPDIR, else /tmp

+ +
+
modinfo
+
+ +

modinfo [-adlp0] [-F keyword] MODULE

+ +
        -a              Shortcut for '-F author'
+        -d              Shortcut for '-F description'
+        -l              Shortcut for '-F license'
+        -p              Shortcut for '-F parm'
+        -F keyword      Keyword to look for
+        -0              Separate output with NULs
+ +
+
modprobe
+
+ +

modprobe [-qfwrsv] MODULE [symbol=value]...

+ +
        -r      Remove MODULE (stacks) or do autoclean
+        -q      Quiet
+        -v      Verbose
+        -f      Force
+        -w      Wait for unload
+        -s      Report via syslog instead of stderr
+ +
+
more
+
+ +

more [FILE]...

+ +

View FILE (or stdin) one screenful at a time

+ +
+
mount
+
+ +

mount [OPTIONS] [-o OPTS] DEVICE NODE

+ +

Mount a filesystem. Filesystem autodetection requires /proc.

+ +
        -a              Mount all filesystems in fstab
+        -f              Dry run
+        -r              Read-only mount
+        -w              Read-write mount (default)
+        -t FSTYPE[,...] Filesystem type(s)
+        -O OPT          Mount only filesystems with option OPT (-a only)
+-o OPT:
+        loop            Ignored (loop devices are autodetected)
+        [a]sync         Writes are [a]synchronous
+        [no]atime       Disable/enable updates to inode access times
+        [no]diratime    Disable/enable atime updates to directories
+        [no]relatime    Disable/enable atime updates relative to modification time
+        [no]dev         (Dis)allow use of special device files
+        [no]exec        (Dis)allow use of executable files
+        [no]suid        (Dis)allow set-user-id-root programs
+        [r]shared       Convert [recursively] to a shared subtree
+        [r]slave        Convert [recursively] to a slave subtree
+        [r]private      Convert [recursively] to a private subtree
+        [un]bindable    Make mount point [un]able to be bind mounted
+        [r]bind         Bind a file or directory [recursively] to another location
+        move            Relocate an existing mount point
+        remount         Remount a mounted filesystem, changing flags
+        ro/rw           Same as -r/-w
+ +

There are filesystem-specific -o flags.

+ +
+
mountpoint
+
+ +

mountpoint [-q] <[-dn] DIR | -x DEVICE>

+ +

Check if the directory is a mountpoint

+ +
        -q      Quiet
+        -d      Print major/minor device number of the filesystem
+        -n      Print device name of the filesystem
+        -x      Print major/minor device number of the blockdevice
+ +
+
mpstat
+
+ +

mpstat [-A] [-I SUM|CPU|ALL|SCPU] [-u] [-P num|ALL] [INTERVAL [COUNT]]

+ +

Per-processor statistics

+ +
        -A                      Same as -I ALL -u -P ALL
+        -I SUM|CPU|ALL|SCPU     Report interrupt statistics
+        -P num|ALL              Processor to monitor
+        -u                      Report CPU utilization
+ +
+
mt
+
+ +

mt [-f device] opcode value

+ +

Control magnetic tape drive operation

+ +

Available Opcodes:

+ +

bsf bsfm bsr bss datacompression drvbuffer eof eom erase fsf fsfm fsr fss load lock mkpart nop offline ras1 ras2 ras3 reset retension rewind rewoffline seek setblk setdensity setpart tell unload unlock weof wset

+ +
+
mv
+
+ +

mv [-fin] SOURCE DEST or: mv [-fin] SOURCE... DIRECTORY

+ +

Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY

+ +
        -f      Don't prompt before overwriting
+        -i      Interactive, prompt before overwrite
+        -n      Don't overwrite an existing file
+ +
+
nameif
+
+ +

nameif [-s] [-c FILE] [IFNAME SELECTOR]...

+ +

Rename network interface while it in the down state. The device matched by SELECTOR is renamed to IFACE. SELECTOR can be a combination of:

+ +
        driver=STRING
+        bus=STRING
+        phy_address=NUM
+        [mac=]XX:XX:XX:XX:XX:XX
+
+        -c FILE Configuration file (default: /etc/mactab)
+        -s      Log to syslog
+ +
+
nanddump
+
+ +

nanddump [-o] [-b] [-s ADDR] [-f FILE] MTD_DEVICE

+ +

Dump the specified MTD device

+ +
        -o      Omit oob data
+        -b      Omit bad block from the dump
+        -s ADDR Start address
+        -l LEN  Length
+        -f FILE Dump to file ('-' for stdout)
+ +
+
nandwrite
+
+ +

nandwrite [-p] [-s ADDR] MTD_DEVICE [FILE]

+ +

Write to the specified MTD device

+ +
        -p      Pad to page size
+        -s ADDR Start address
+ +
+
nbd-client
+
+ +

nbd-client HOST PORT BLOCKDEV

+ +

Connect to HOST and provide a network block device on BLOCKDEV

+ +
+
nc
+
+ +

nc [-iN] [-wN] [-l] [-p PORT] [-f FILE|IPADDR PORT] [-e PROG]

+ +

Open a pipe to IP:PORT or FILE

+ +
        -e PROG Run PROG after connect
+        -l      Listen mode, for inbound connects
+                (use -l twice with -e for persistent server)
+        -p PORT Local port
+        -w SEC  Timeout for connect
+        -i SEC  Delay interval for lines sent
+        -f FILE Use file (ala /dev/ttyS0) instead of network
+ +
+
netstat
+
+ +

netstat [-ral] [-tuwx] [-enWp]

+ +

Display networking information

+ +
        -r      Routing table
+        -a      All sockets
+        -l      Listening sockets
+                Else: connected sockets
+        -t      TCP sockets
+        -u      UDP sockets
+        -w      Raw sockets
+        -x      Unix sockets
+                Else: all socket types
+        -e      Other/more information
+        -n      Don't resolve names
+        -W      Wide display
+        -p      Show PID/program name for sockets
+ +
+
nice
+
+ +

nice [-n ADJUST] [PROG ARGS]

+ +

Change scheduling priority, run PROG

+ +
        -n ADJUST       Adjust priority by ADJUST
+ +
+
nmeter
+
+ +

nmeter [-d MSEC] FORMAT_STRING

+ +

Monitor system in real time

+ +
 -d MSEC        Milliseconds between updates (default:1000)
+ +

Format specifiers:

+ +
 %Nc or %[cN]   CPU. N - bar size (default:10)
+                (displays: S:system U:user N:niced D:iowait I:irq i:softirq)
+ %[nINTERFACE]  Network INTERFACE
+ %m             Allocated memory
+ %[mf]          Free memory
+ %[mt]          Total memory
+ %s             Allocated swap
+ %f             Number of used file descriptors
+ %Ni            Total/specific IRQ rate
+ %x             Context switch rate
+ %p             Forks
+ %[pn]          # of processes
+ %b             Block io
+ %Nt            Time (with N decimal points)
+ %r             Print <cr> instead of <lf> at EOL
+ +
+
nohup
+
+ +

nohup PROG ARGS

+ +

Run PROG immune to hangups, with output to a non-tty

+ +
+
nslookup
+
+ +

nslookup [HOST] [SERVER]

+ +

Query the nameserver for the IP address of the given HOST optionally using a specified DNS server

+ +
+
ntpd
+
+ +

ntpd [-dnqNwl] [-S PROG] [-p PEER]...

+ +

NTP client/server

+ +
        -d      Verbose
+        -n      Do not daemonize
+        -q      Quit after clock is set
+        -N      Run at high priority
+        -w      Do not set time (only query peers), implies -n
+        -l      Run as server on port 123
+        -S PROG Run PROG after stepping time, stratum change, and every 11 mins
+        -p PEER Obtain time from PEER (may be repeated)
+ +
+
od
+
+ +

od [-abcdfhilovxs] [-t TYPE] [-A RADIX] [-N SIZE] [-j SKIP] [-S MINSTR] [-w WIDTH] [FILE...]

+ +

Print FILEs (or stdin) unambiguously, as octal bytes by default

+ +
+
openvt
+
+ +

openvt [-c N] [-sw] [PROG ARGS]

+ +

Start PROG on a new virtual terminal

+ +
        -c N    Use specified VT
+        -s      Switch to the VT
+        -w      Wait for PROG to exit
+ +
+
passwd
+
+ +

passwd [OPTIONS] [USER]

+ +

Change USER's password (default: current user)

+ +
        -a ALG  Encryption method
+        -d      Set password to ''
+        -l      Lock (disable) account
+        -u      Unlock (enable) account
+ +
+
patch
+
+ +

patch [OPTIONS] [ORIGFILE [PATCHFILE]]

+ +
        -p,--strip N            Strip N leading components from file names
+        -i,--input DIFF         Read DIFF instead of stdin
+        -R,--reverse            Reverse patch
+        -N,--forward            Ignore already applied patches
+        -E,--remove-empty-files Remove output files if they become empty
+ +
+
pgrep
+
+ +

pgrep [-flnovx] [-s SID|-P PPID|PATTERN]

+ +

Display process(es) selected by regex PATTERN

+ +
        -l      Show command name too
+        -f      Match against entire command line
+        -n      Show the newest process only
+        -o      Show the oldest process only
+        -v      Negate the match
+        -x      Match whole name (not substring)
+        -s      Match session ID (0 for current)
+        -P      Match parent process ID
+ +
+
pidof
+
+ +

pidof [OPTIONS] [NAME]...

+ +

List PIDs of all processes with names that match NAMEs

+ +
        -s      Show only one PID
+        -o PID  Omit given pid
+                Use %PPID to omit pid of pidof's parent
+ +
+
ping
+
+ +

ping [OPTIONS] HOST

+ +

Send ICMP ECHO_REQUEST packets to network hosts

+ +
        -4,-6           Force IP or IPv6 name resolution
+        -c CNT          Send only CNT pings
+        -s SIZE         Send SIZE data bytes in packets (default:56)
+        -t TTL          Set TTL
+        -I IFACE/IP     Use interface or IP address as source
+        -W SEC          Seconds to wait for the first response (default:10)
+                        (after all -c CNT packets are sent)
+        -w SEC          Seconds until ping exits (default:infinite)
+                        (can exit earlier with -c CNT)
+        -q              Quiet, only displays output at start
+                        and when finished
+ +
+
ping6
+
+ +

ping6 [OPTIONS] HOST

+ +

Send ICMP ECHO_REQUEST packets to network hosts

+ +
        -c CNT          Send only CNT pings
+        -s SIZE         Send SIZE data bytes in packets (default:56)
+        -I IFACE/IP     Use interface or IP address as source
+        -q              Quiet, only displays output at start
+                        and when finished
+ +
+
pivot_root
+
+ +

pivot_root NEW_ROOT PUT_OLD

+ +

Move the current root file system to PUT_OLD and make NEW_ROOT the new root file system

+ +
+
pkill
+
+ +

pkill [-l|-SIGNAL] [-fnovx] [-s SID|-P PPID|PATTERN]

+ +

Send a signal to process(es) selected by regex PATTERN

+ +
        -l      List all signals
+        -f      Match against entire command line
+        -n      Signal the newest process only
+        -o      Signal the oldest process only
+        -v      Negate the match
+        -x      Match whole name (not substring)
+        -s      Match session ID (0 for current)
+        -P      Match parent process ID
+ +
+
pmap
+
+ +

pmap [-xq] PID

+ +

Display detailed process memory usage

+ +
        -x      Show details
+        -q      Quiet
+ +
+
popmaildir
+
+ +

popmaildir [OPTIONS] MAILDIR [CONN_HELPER ARGS]

+ +

Fetch content of remote mailbox to local maildir

+ +
        -s              Skip authorization
+        -T              Get messages with TOP instead of RETR
+        -k              Keep retrieved messages on the server
+        -t SEC          Network timeout
+        -F "PROG ARGS"  Filter program (may be repeated)
+        -M "PROG ARGS"  Delivery program
+ +

Fetch from plain POP3 server: popmaildir -k DIR nc pop3.server.com 110 <user_and_pass.txt Fetch from SSLed POP3 server and delete fetched emails: popmaildir DIR -- openssl s_client -quiet -connect pop3.server.com:995 <user_and_pass.txt

+ +
+
poweroff
+
+ +

poweroff [-d DELAY] [-n] [-f]

+ +

Halt and shut off power

+ +
        -d SEC  Delay interval
+        -n      Do not sync
+        -f      Force (don't go through init)
+ +
+
powertop
+
+ +

powertop

+ +

Analyze power consumption on Intel-based laptops

+ +
+
printenv
+
+ +

printenv [VARIABLE]...

+ +

Print environment VARIABLEs. If no VARIABLE specified, print all.

+ +
+
printf
+
+ +

printf FORMAT [ARG]...

+ +

Format and print ARG(s) according to FORMAT (a-la C printf)

+ +
+
ps
+
+ +

ps [-o COL1,COL2=HEADER] [-T]

+ +

Show list of processes

+ +
        -o COL1,COL2=HEADER     Select columns for display
+        -T                      Show threads
+ +
+
pscan
+
+ +

pscan [-cb] [-p MIN_PORT] [-P MAX_PORT] [-t TIMEOUT] [-T MIN_RTT] HOST

+ +

Scan a host, print all open ports

+ +
        -c      Show closed ports too
+        -b      Show blocked ports too
+        -p      Scan from this port (default 1)
+        -P      Scan up to this port (default 1024)
+        -t      Timeout (default 5000 ms)
+        -T      Minimum rtt (default 5 ms, increase for congested hosts)
+ +
+
pstree
+
+ +

pstree [-p] [PID|USER]

+ +

Display process tree, optionally start from USER or PID

+ +
        -p      Show pids
+ +
+
pwd
+
+ +

pwd

+ +

Print the full filename of the current working directory

+ +
+
pwdx
+
+ +

pwdx PID...

+ +

Show current directory for PIDs

+ +
+
raidautorun
+
+ +

raidautorun DEVICE

+ +

Tell the kernel to automatically search and start RAID arrays

+ +
+
rdate
+
+ +

rdate [-sp] HOST

+ +

Get and possibly set the system date and time from a remote HOST

+ +
        -s      Set the system date and time (default)
+        -p      Print the date and time
+ +
+
rdev
+
+ +

rdev

+ +

Print the device node associated with the filesystem mounted at '/'

+ +
+
readahead
+
+ +

readahead [FILE]...

+ +

Preload FILEs to RAM

+ +
+ +
+ +

readlink [-fnv] FILE

+ +

Display the value of a symlink

+ +
        -f      Canonicalize by following all symlinks
+        -n      Don't add newline
+        -v      Verbose
+ +
+
readprofile
+
+ +

readprofile [OPTIONS]

+ +
        -m mapfile      (Default: /boot/System.map)
+        -p profile      (Default: /proc/profile)
+        -M NUM          Set the profiling multiplier to NUM
+        -i              Print only info about the sampling step
+        -v              Verbose
+        -a              Print all symbols, even if count is 0
+        -b              Print individual histogram-bin counts
+        -s              Print individual counters within functions
+        -r              Reset all the counters (root only)
+        -n              Disable byte order auto-detection
+ +
+
realpath
+
+ +

realpath FILE...

+ +

Return the absolute pathnames of given FILE

+ +
+
reboot
+
+ +

reboot [-d DELAY] [-n] [-f]

+ +

Reboot the system

+ +
        -d SEC  Delay interval
+        -n      Do not sync
+        -f      Force (don't go through init)
+ +
+
reformime
+
+ +

reformime [OPTIONS]

+ +

Parse MIME-encoded message on stdin

+ +
        -x PREFIX       Extract content of MIME sections to files
+        -X PROG ARGS    Filter content of MIME sections through PROG
+                        Must be the last option
+ +

Other options are silently ignored

+ +
+
remove-shell
+
+ +

remove-shell SHELL...

+ +

Remove SHELLs from /etc/shells

+ +
+
renice
+
+ +

renice {{-n INCREMENT} | PRIORITY} [[-p | -g | -u] ID...]

+ +

Change scheduling priority for a running process

+ +
        -n      Adjust current nice value (smaller is faster)
+        -p      Process id(s) (default)
+        -g      Process group id(s)
+        -u      Process user name(s) and/or id(s)
+ +
+
reset
+
+ +

reset

+ +

Reset the screen

+ +
+
resize
+
+ +

resize

+ +

Resize the screen

+ +
+
rev
+
+ +

rev [FILE]...

+ +

Reverse lines of FILE

+ +
+
rm
+
+ +

rm [-irf] FILE...

+ +

Remove (unlink) FILEs

+ +
        -i      Always prompt before removing
+        -f      Never prompt
+        -R,-r   Recurse
+ +
+
rmdir
+
+ +

rmdir [OPTIONS] DIRECTORY...

+ +

Remove DIRECTORY if it is empty

+ +
        -p|--parents    Include parents
+        --ignore-fail-on-non-empty
+ +
+
rmmod
+
+ +

rmmod [-qfwrsv] MODULE [symbol=value]...

+ +
        -r      Remove MODULE (stacks) or do autoclean
+        -q      Quiet
+        -v      Verbose
+        -f      Force
+        -w      Wait for unload
+        -s      Report via syslog instead of stderr
+ +
+
route
+
+ +

route [{add|del|delete}]

+ +

Edit kernel routing tables

+ +
        -n      Don't resolve names
+        -e      Display other/more information
+        -A inet{6}      Select address family
+ +
+
rpm
+
+ +

rpm -i PACKAGE.rpm; rpm -qp[ildc] PACKAGE.rpm

+ +

Manipulate RPM packages

+ +

Commands:

+ +
        -i      Install package
+        -qp     Query package
+        -i      Show information
+        -l      List contents
+        -d      List documents
+        -c      List config files
+ +
+
rpm2cpio
+
+ +

rpm2cpio package.rpm

+ +

Output a cpio archive of the rpm file

+ +
+
rtcwake
+
+ +

rtcwake [-a | -l | -u] [-d DEV] [-m MODE] [-s SEC | -t TIME]

+ +

Enter a system sleep state until specified wakeup time

+ +
        -a,--auto       Read clock mode from adjtime
+        -l,--local      Clock is set to local time
+        -u,--utc        Clock is set to UTC time
+        -d,--device=DEV Specify the RTC device
+        -m,--mode=MODE  Set the sleep state (default: standby)
+        -s,--seconds=SEC Set the timeout in SEC seconds from now
+        -t,--time=TIME  Set the timeout to TIME seconds from epoch
+ +
+
run-parts
+
+ +

run-parts [-t] [-l] [-a ARG] [-u MASK] DIRECTORY

+ +

Run a bunch of scripts in DIRECTORY

+ +
        -t      Print what would be run, but don't actually run anything
+        -a ARG  Pass ARG as argument for every program
+        -u MASK Set the umask to MASK before running every program
+        -l      Print names of all matching files even if they are not executable
+ +
+
runlevel
+
+ +

runlevel [FILE]

+ +

Find the current and previous system runlevel

+ +

If no utmp FILE exists or if no runlevel record can be found, print "unknown"

+ +
+
runsv
+
+ +

runsv DIR

+ +

Start and monitor a service and optionally an appendant log service

+ +
+
runsvdir
+
+ +

runsvdir [-P] [-s SCRIPT] DIR

+ +

Start a runsv process for each subdirectory. If it exits, restart it.

+ +
        -P              Put each runsv in a new session
+        -s SCRIPT       Run SCRIPT <signo> after signal is processed
+ +
+
rx
+
+ +

rx FILE

+ +

Receive a file using the xmodem protocol

+ +
+
script
+
+ +

script [-afqt] [-c PROG] [OUTFILE]

+ +
        -a      Append output
+        -c PROG Run PROG, not shell
+        -f      Flush output after each write
+        -q      Quiet
+        -t      Send timing to stderr
+ +
+
scriptreplay
+
+ +

scriptreplay timingfile [typescript [divisor]]

+ +

Play back typescripts, using timing information

+ +
+
sed
+
+ +

sed [-inr] [-f FILE]... [-e CMD]... [FILE]... or: sed [-inr] CMD [FILE]...

+ +
        -e CMD  Add CMD to sed commands to be executed
+        -f FILE Add FILE contents to sed commands to be executed
+        -i      Edit files in-place (else sends result to stdout)
+        -n      Suppress automatic printing of pattern space
+        -r      Use extended regex syntax
+ +

If no -e or -f, the first non-option argument is the sed command string. Remaining arguments are input files (stdin if none).

+ +
+
sendmail
+
+ +

sendmail [OPTIONS] [RECIPIENT_EMAIL]...

+ +

Read email from stdin and send it

+ +

Standard options:

+ +
        -t              Read additional recipients from message body
+        -f SENDER       Sender (required)
+        -o OPTIONS      Various options. -oi implied, others are ignored
+        -i              -oi synonym. implied and ignored
+ +

Busybox specific options:

+ +
        -v              Verbose
+        -w SECS         Network timeout
+        -H 'PROG ARGS'  Run connection helper
+                        Examples:
+                        -H 'exec openssl s_client -quiet -tls1 -starttls smtp
+                                -connect smtp.gmail.com:25' <email.txt
+                                [4<username_and_passwd.txt | -auUSER -apPASS]
+                        -H 'exec openssl s_client -quiet -tls1
+                                -connect smtp.gmail.com:465' <email.txt
+                                [4<username_and_passwd.txt | -auUSER -apPASS]
+        -S HOST[:PORT]  Server
+        -auUSER         Username for AUTH LOGIN
+        -apPASS         Password for AUTH LOGIN
+ +

Other options are silently ignored; -oi -t is implied Use makemime to create emails with attachments

+ +
+
seq
+
+ +

seq [-w] [-s SEP] [FIRST [INC]] LAST

+ +

Print numbers from FIRST to LAST, in steps of INC. FIRST, INC default to 1.

+ +
        -w      Pad to last with leading zeros
+        -s SEP  String separator
+ +
+
setarch
+
+ +

setarch personality PROG ARGS

+ +

Personality may be:

+ +
        linux32         Set 32bit uname emulation
+        linux64         Set 64bit uname emulation
+ +
+
setconsole
+
+ +

setconsole [-r|--reset] [DEVICE]

+ +

Redirect system console output to DEVICE (default: /dev/tty)

+ +
        -r      Reset output to /dev/console
+ +
+
setfont
+
+ +

setfont FONT [-m MAPFILE] [-C TTY]

+ +

Load a console font

+ +
        -m MAPFILE      Load console screen map
+        -C TTY          Affect TTY instead of /dev/tty
+ +
+
setkeycodes
+
+ +

setkeycodes SCANCODE KEYCODE...

+ +

Set entries into the kernel's scancode-to-keycode map, allowing unusual keyboards to generate usable keycodes.

+ +

SCANCODE may be either xx or e0xx (hexadecimal), and KEYCODE is given in decimal.

+ +
+
setlogcons
+
+ +

setlogcons N

+ +

Redirect the kernel output to console N (0 for current)

+ +
+
setserial
+
+ +

setserial [-gabGvzV] DEVICE [PARAMETER [ARG]]...

+ +

Request or set Linux serial port information

+ +
        -g      Interpret parameters as list of devices for reporting
+        -a      Print all available information
+        -b      Print summary information
+        -G      Print in form which can be fed back
+                to setserial as command line parameters
+        -z      Zero out serial flags before setting
+        -v      Verbose
+ +

Parameters: (* = takes an argument, ^ = can be turned off by preceding ^) *port, *irq, *divisor, *uart, *baund_base, *close_delay, *closing_wait, ^fourport, ^auto_irq, ^skip_test, ^sak, ^session_lockout, ^pgrp_lockout, ^callout_nohup, ^split_termios, ^hup_notify, ^low_latency, autoconfig, spd_normal, spd_hi, spd_vhi, spd_shi, spd_warp, spd_cust

+ +

UART types:

+ +
        unknown, 8250, 16450, 16550, 16550A, Cirrus, 16650, 16650V2, 16750,
+        16950, 16954, 16654, 16850, RSA, NS16550A, XSCALE, RM9000, OCTEON, AR7,
+        U6_16550A
+ +
+
setsid
+
+ +

setsid PROG ARGS

+ +

Run PROG in a new session. PROG will have no controlling terminal and will not be affected by keyboard signals (Ctrl-C etc). See setsid(2) for details.

+ +
+
setuidgid
+
+ +

setuidgid USER PROG ARGS

+ +

Set uid and gid to USER's uid and gid, drop supplementary group ids, run PROG

+ +
+
sh
+
+ +

sh [-/+OPTIONS] [-/+o OPT]... [-c 'SCRIPT' [ARG0 [ARGS]] / FILE [ARGS]]

+ +

Unix shell interpreter

+ +
+
sha1sum
+
+ +

sha1sum [-c[sw]] [FILE]...

+ +

Print or check SHA1 checksums

+ +
        -c      Check sums against list in FILEs
+        -s      Don't output anything, status code shows success
+        -w      Warn about improperly formatted checksum lines
+ +
+
sha256sum
+
+ +

sha256sum [-c[sw]] [FILE]...

+ +

Print or check SHA256 checksums

+ +
        -c      Check sums against list in FILEs
+        -s      Don't output anything, status code shows success
+        -w      Warn about improperly formatted checksum lines
+ +
+
sha512sum
+
+ +

sha512sum [-c[sw]] [FILE]...

+ +

Print or check SHA512 checksums

+ +
        -c      Check sums against list in FILEs
+        -s      Don't output anything, status code shows success
+        -w      Warn about improperly formatted checksum lines
+ +
+
showkey
+
+ +

showkey [-a | -k | -s]

+ +

Show keys pressed

+ +
        -a      Display decimal/octal/hex values of the keys
+        -k      Display interpreted keycodes (default)
+        -s      Display raw scan-codes
+ +
+
slattach
+
+ +

slattach [-cehmLF] [-s SPEED] [-p PROTOCOL] DEVICE

+ +

Attach network interface(s) to serial line(s)

+ +
        -p PROT Set protocol (slip, cslip, slip6, clisp6 or adaptive)
+        -s SPD  Set line speed
+        -e      Exit after initializing device
+        -h      Exit when the carrier is lost
+        -c PROG Run PROG when the line is hung up
+        -m      Do NOT initialize the line in raw 8 bits mode
+        -L      Enable 3-wire operation
+        -F      Disable RTS/CTS flow control
+ +
+
sleep
+
+ +

sleep [N]...

+ +

Pause for a time equal to the total of the args given, where each arg can have an optional suffix of (s)econds, (m)inutes, (h)ours, or (d)ays

+ +
+
smemcap
+
+ +

smemcap >SMEMDATA.TAR

+ +

Collect memory usage data in /proc and write it to stdout

+ +
+
softlimit
+
+ +

softlimit [-a BYTES] [-m BYTES] [-d BYTES] [-s BYTES] [-l BYTES] [-f BYTES] [-c BYTES] [-r BYTES] [-o N] [-p N] [-t N] PROG ARGS

+ +

Set soft resource limits, then run PROG

+ +
        -a BYTES        Limit total size of all segments
+        -m BYTES        Same as -d BYTES -s BYTES -l BYTES -a BYTES
+        -d BYTES        Limit data segment
+        -s BYTES        Limit stack segment
+        -l BYTES        Limit locked memory size
+        -o N            Limit number of open files per process
+        -p N            Limit number of processes per uid
+Options controlling file sizes:
+
+        -f BYTES        Limit output file sizes
+        -c BYTES        Limit core file size
+Efficiency opts:
+
+        -r BYTES        Limit resident set size
+        -t N            Limit CPU time, process receives
+                        a SIGXCPU after N seconds
+ +
+
sort
+
+ +

sort [-nrugMcszbdfimSTokt] [-o FILE] [-k start[.offset][opts][,end[.offset][opts]] [-t CHAR] [FILE]...

+ +

Sort lines of text

+ +
        -b      Ignore leading blanks
+        -c      Check whether input is sorted
+        -d      Dictionary order (blank or alphanumeric only)
+        -f      Ignore case
+        -g      General numerical sort
+        -i      Ignore unprintable characters
+        -k      Sort key
+        -M      Sort month
+        -n      Sort numbers
+        -o      Output to file
+        -k      Sort by key
+        -t CHAR Key separator
+        -r      Reverse sort order
+        -s      Stable (don't sort ties alphabetically)
+        -u      Suppress duplicate lines
+        -z      Lines are terminated by NUL, not newline
+        -mST    Ignored for GNU compatibility
+ +
+
split
+
+ +

split [OPTIONS] [INPUT [PREFIX]]

+ +
        -b N[k|m]       Split by N (kilo|mega)bytes
+        -l N            Split by N lines
+        -a N            Use N letters as suffix
+ +
+
start-stop-daemon
+
+ +

start-stop-daemon [OPTIONS] [-S|-K] ... [-- ARGS...]

+ +

Search for matching processes, and then -K: stop all matching processes. -S: start a process unless a matching process is found.

+ +

Process matching:

+ +
        -u,--user USERNAME|UID  Match only this user's processes
+        -n,--name NAME          Match processes with NAME
+                                in comm field in /proc/PID/stat
+        -x,--exec EXECUTABLE    Match processes with this command
+                                in /proc/PID/{exe,cmdline}
+        -p,--pidfile FILE       Match a process with PID from the file
+        All specified conditions must match
+-S only:
+        -x,--exec EXECUTABLE    Program to run
+        -a,--startas NAME       Zeroth argument
+        -b,--background         Background
+        -N,--nicelevel N        Change nice level
+        -c,--chuid USER[:[GRP]] Change to user/group
+        -m,--make-pidfile       Write PID to the pidfile specified by -p
+-K only:
+        -s,--signal SIG         Signal to send
+        -t,--test               Match only, exit with 0 if a process is found
+Other:
+
+        -o,--oknodo             Exit with status 0 if nothing is done
+        -v,--verbose            Verbose
+        -q,--quiet              Quiet
+ +
+
stat
+
+ +

stat [OPTIONS] FILE...

+ +

Display file (default) or filesystem status

+ +
        -c fmt  Use the specified format
+        -f      Display filesystem status
+        -L      Follow links
+        -t      Display info in terse form
+ +

Valid format sequences for files:

+ +
 %a     Access rights in octal
+ %A     Access rights in human readable form
+ %b     Number of blocks allocated (see %B)
+ %B     The size in bytes of each block reported by %b
+ %d     Device number in decimal
+ %D     Device number in hex
+ %f     Raw mode in hex
+ %F     File type
+ %g     Group ID of owner
+ %G     Group name of owner
+ %h     Number of hard links
+ %i     Inode number
+ %n     File name
+ %N     File name, with -> TARGET if symlink
+ %o     I/O block size
+ %s     Total size, in bytes
+ %t     Major device type in hex
+ %T     Minor device type in hex
+ %u     User ID of owner
+ %U     User name of owner
+ %x     Time of last access
+ %X     Time of last access as seconds since Epoch
+ %y     Time of last modification
+ %Y     Time of last modification as seconds since Epoch
+ %z     Time of last change
+ %Z     Time of last change as seconds since Epoch
+ +

Valid format sequences for file systems:

+ +
 %a     Free blocks available to non-superuser
+ %b     Total data blocks in file system
+ %c     Total file nodes in file system
+ %d     Free file nodes in file system
+ %f     Free blocks in file system
+ %i     File System ID in hex
+ %l     Maximum length of filenames
+ %n     File name
+ %s     Block size (for faster transfer)
+ %S     Fundamental block size (for block counts)
+ %t     Type in hex
+ %T     Type in human readable form
+ +
+
strings
+
+ +

strings [-afo] [-n LEN] [FILE]...

+ +

Display printable strings in a binary file

+ +
        -a      Scan whole file (default)
+        -f      Precede strings with filenames
+        -n LEN  At least LEN characters form a string (default 4)
+        -o      Precede strings with decimal offsets
+ +
+
stty
+
+ +

stty [-a|g] [-F DEVICE] [SETTING]...

+ +

Without arguments, prints baud rate, line discipline, and deviations from stty sane

+ +
        -F DEVICE       Open device instead of stdin
+        -a              Print all current settings in human-readable form
+        -g              Print in stty-readable form
+        [SETTING]       See manpage
+ +
+
su
+
+ +

su [OPTIONS] [-] [USER]

+ +

Run shell under USER (by default, root)

+ +
        -,-l    Clear environment, run shell as login shell
+        -p,-m   Do not set new $HOME, $SHELL, $USER, $LOGNAME
+        -c CMD  Command to pass to 'sh -c'
+        -s SH   Shell to use instead of user's default
+ +
+
sulogin
+
+ +

sulogin [-t N] [TTY]

+ +

Single user login

+ +
        -t N    Timeout
+ +
+
sum
+
+ +

sum [-rs] [FILE]...

+ +

Checksum and count the blocks in a file

+ +
        -r      Use BSD sum algorithm (1K blocks)
+        -s      Use System V sum algorithm (512byte blocks)
+ +
+
sv
+
+ +

sv [-v] [-w SEC] CMD SERVICE_DIR...

+ +

Control services monitored by runsv supervisor. Commands (only first character is enough):

+ +

status: query service status up: if service isn't running, start it. If service stops, restart it once: like 'up', but if service stops, don't restart it down: send TERM and CONT signals. If ./run exits, start ./finish if it exists. After it stops, don't restart service exit: send TERM and CONT signals to service and log service. If they exit, runsv exits too pause, cont, hup, alarm, interrupt, quit, 1, 2, term, kill: send STOP, CONT, HUP, ALRM, INT, QUIT, USR1, USR2, TERM, KILL signal to service

+ +
+
svlogd
+
+ +

svlogd [-ttv] [-r C] [-R CHARS] [-l MATCHLEN] [-b BUFLEN] DIR...

+ +

Continuously read log data from stdin and write to rotated log files in DIRs

+ +

DIR/config file modifies behavior: sSIZE - when to rotate logs nNUM - number of files to retain !PROG - process rotated log with PROG +,-PATTERN - (de)select line for logging E,ePATTERN - (de)select line for stderr

+ +
+
swapoff
+
+ +

swapoff [-a] [DEVICE]

+ +

Stop swapping on DEVICE

+ +
        -a      Stop swapping on all swap devices
+ +
+
swapon
+
+ +

swapon [-a] [-p PRI] [DEVICE]

+ +

Start swapping on DEVICE

+ +
        -a      Start swapping on all swap devices
+        -p PRI  Set swap device priority
+ +
+
switch_root
+
+ +

switch_root [-c /dev/console] NEW_ROOT NEW_INIT [ARGS]

+ +

Free initramfs and switch to another root fs:

+ +

chroot to NEW_ROOT, delete all in /, move NEW_ROOT to /, execute NEW_INIT. PID must be 1. NEW_ROOT must be a mountpoint.

+ +
        -c DEV  Reopen stdio to DEV after switch
+ +
+
sync
+
+ +

sync

+ +

Write all buffered blocks to disk

+ +
+
sysctl
+
+ +

sysctl [OPTIONS] [VALUE]...

+ +

Configure kernel parameters at runtime

+ +
        -n      Don't print key names
+        -e      Don't warn about unknown keys
+        -w      Change sysctl setting
+        -p FILE Load sysctl settings from FILE (default /etc/sysctl.conf)
+        -a      Display all values
+        -A      Display all values in table form
+ +
+
syslogd
+
+ +

syslogd [OPTIONS]

+ +

System logging utility

+ +
        -n              Run in foreground
+        -O FILE         Log to FILE (default:/var/log/messages)
+        -l N            Log only messages more urgent than prio N (1-8)
+        -S              Smaller output
+        -s SIZE         Max size (KB) before rotation (default:200KB, 0=off)
+        -b N            N rotated logs to keep (default:1, max=99, 0=purge)
+        -R HOST[:PORT]  Log to IP or hostname on PORT (default PORT=514/UDP)
+        -L              Log locally and via network (default is network only if -R)
+        -D              Drop duplicates
+        -C[size_kb]     Log to shared mem buffer (use logread to read it)
+        -f FILE         Use FILE as config (default:/etc/syslog.conf)
+ +
+
tac
+
+ +

tac [FILE]...

+ +

Concatenate FILEs and print them in reverse

+ +
+
tail
+
+ +

tail [OPTIONS] [FILE]...

+ +

Print last 10 lines of each FILE (or stdin) to stdout. With more than one FILE, precede each with a filename header.

+ +
        -f              Print data as file grows
+        -s SECONDS      Wait SECONDS between reads with -f
+        -n N[kbm]       Print last N lines
+        -c N[kbm]       Print last N bytes
+        -q              Never print headers
+        -v              Always print headers
+ +

N may be suffixed by k (x1024), b (x512), or m (x1024^2). If N starts with a '+', output begins with the Nth item from the start of each file, not from the end.

+ +
+
tar
+
+ +

tar -[cxtzjahmvO] [-X FILE] [-T FILE] [-f TARFILE] [-C DIR] [FILE]...

+ +

Create, extract, or list files from a tar file

+ +

Operation:

+ +
        c       Create
+        x       Extract
+        t       List
+        f       Name of TARFILE ('-' for stdin/out)
+        C       Change to DIR before operation
+        v       Verbose
+        z       (De)compress using gzip
+        j       (De)compress using bzip2
+        a       (De)compress using lzma
+        O       Extract to stdout
+        h       Follow symlinks
+        m       Don't restore mtime
+        exclude File to exclude
+        X       File with names to exclude
+        T       File with names to include
+ +
+
tcpsvd
+
+ +

tcpsvd [-hEv] [-c N] [-C N[:MSG]] [-b N] [-u USER] [-l NAME] IP PORT PROG

+ +

Create TCP socket, bind to IP:PORT and listen for incoming connection. Run PROG for each connection.

+ +
        IP              IP to listen on, 0 = all
+        PORT            Port to listen on
+        PROG ARGS       Program to run
+        -l NAME         Local hostname (else looks up local hostname in DNS)
+        -u USER[:GRP]   Change to user/group after bind
+        -c N            Handle up to N connections simultaneously
+        -b N            Allow a backlog of approximately N TCP SYNs
+        -C N[:MSG]      Allow only up to N connections from the same IP
+                        New connections from this IP address are closed
+                        immediately. MSG is written to the peer before close
+        -h              Look up peer's hostname
+        -E              Don't set up environment variables
+        -v              Verbose
+ +
+
tee
+
+ +

tee [-ai] [FILE]...

+ +

Copy stdin to each FILE, and also to stdout

+ +
        -a      Append to the given FILEs, don't overwrite
+        -i      Ignore interrupt signals (SIGINT)
+ +
+
telnet
+
+ +

telnet [-a] [-l USER] HOST [PORT]

+ +

Connect to telnet server

+ +
        -a      Automatic login with $USER variable
+        -l USER Automatic login as USER
+ +
+
telnetd
+
+ +

telnetd [OPTIONS]

+ +

Handle incoming telnet connections

+ +
        -l LOGIN        Exec LOGIN on connect
+        -f ISSUE_FILE   Display ISSUE_FILE instead of /etc/issue
+        -K              Close connection as soon as login exits
+                        (normally wait until all programs close slave pty)
+        -p PORT         Port to listen on
+        -b ADDR[:PORT]  Address to bind to
+        -F              Run in foreground
+        -i              Inetd mode
+        -w SEC          Inetd 'wait' mode, linger time SEC
+        -S              Log to syslog (implied by -i or without -F and -w)
+ +
+
test
+
+ +

test EXPRESSION ]

+ +

Check file types, compare values etc. Return a 0/1 exit code depending on logical value of EXPRESSION

+ +
+
tftp
+
+ +

tftp [OPTIONS] HOST [PORT]

+ +

Transfer a file from/to tftp server

+ +
        -l FILE Local FILE
+        -r FILE Remote FILE
+        -g      Get file
+        -p      Put file
+        -b SIZE Transfer blocks of SIZE octets
+ +
+
tftpd
+
+ +

tftpd [-cr] [-u USER] [DIR]

+ +

Transfer a file on tftp client's request

+ +

tftpd should be used as an inetd service. tftpd's line for inetd.conf: 69 dgram udp nowait root tftpd tftpd -l /files/to/serve It also can be ran from udpsvd:

+ +
        udpsvd -vE 0.0.0.0 69 tftpd /files/to/serve
+
+        -r      Prohibit upload
+        -c      Allow file creation via upload
+        -u      Access files as USER
+        -l      Log to syslog (inetd mode requires this)
+ +
+
time
+
+ +

time [-v] PROG ARGS

+ +

Run PROG, display resource usage when it exits

+ +
        -v      Verbose
+ +
+
timeout
+
+ +

timeout [-t SECS] [-s SIG] PROG ARGS

+ +

Runs PROG. Sends SIG to it if it is not gone in SECS seconds. Defaults: SECS: 10, SIG: TERM.

+ +
+
top
+
+ +

top [-b] [-nCOUNT] [-dSECONDS] [-m]

+ +

Provide a view of process activity in real time. Read the status of all processes from /proc each SECONDS and display a screenful of them. Keys:

+ +
        N/M/P/T: show CPU usage, sort by pid/mem/cpu/time
+        S: show memory
+        R: reverse sort
+        H: toggle threads, 1: toggle SMP
+        Q,^C: exit
+ +

Options:

+ +
        -b      Batch mode
+        -n N    Exit after N iterations
+        -d N    Delay between updates
+        -m      Same as 's' key
+ +
+
touch
+
+ +

touch [-c] [-d DATE] [-t DATE] [-r FILE] FILE...

+ +

Update the last-modified date on the given FILE[s]

+ +
        -c      Don't create files
+        -d DT   Date/time to use
+        -t DT   Date/time to use
+        -r FILE Use FILE's date/time
+ +
+
tr
+
+ +

tr [-cds] STRING1 [STRING2]

+ +

Translate, squeeze, or delete characters from stdin, writing to stdout

+ +
        -c      Take complement of STRING1
+        -d      Delete input characters coded STRING1
+        -s      Squeeze multiple output characters of STRING2 into one character
+ +
+
traceroute
+
+ +

traceroute [-46FIldnrv] [-f 1ST_TTL] [-m MAXTTL] [-p PORT] [-q PROBES] [-s SRC_IP] [-t TOS] [-w WAIT_SEC] [-g GATEWAY] [-i IFACE] [-z PAUSE_MSEC] HOST [BYTES]

+ +

Trace the route to HOST

+ +
        -4,-6   Force IP or IPv6 name resolution
+        -F      Set the don't fragment bit
+        -I      Use ICMP ECHO instead of UDP datagrams
+        -l      Display the TTL value of the returned packet
+        -d      Set SO_DEBUG options to socket
+        -n      Print numeric addresses
+        -r      Bypass routing tables, send directly to HOST
+        -v      Verbose
+        -m      Max time-to-live (max number of hops)
+        -p      Base UDP port number used in probes
+                (default 33434)
+        -q      Number of probes per TTL (default 3)
+        -s      IP address to use as the source address
+        -t      Type-of-service in probe packets (default 0)
+        -w      Time in seconds to wait for a response (default 3)
+        -g      Loose source route gateway (8 max)
+ +
+
traceroute6
+
+ +

traceroute6 [-dnrv] [-m MAXTTL] [-p PORT] [-q PROBES] [-s SRC_IP] [-t TOS] [-w WAIT_SEC] [-i IFACE] HOST [BYTES]

+ +

Trace the route to HOST

+ +
        -d      Set SO_DEBUG options to socket
+        -n      Print numeric addresses
+        -r      Bypass routing tables, send directly to HOST
+        -v      Verbose
+        -m      Max time-to-live (max number of hops)
+        -p      Base UDP port number used in probes
+                (default is 33434)
+        -q      Number of probes per TTL (default 3)
+        -s      IP address to use as the source address
+        -t      Type-of-service in probe packets (default 0)
+        -w      Time in seconds to wait for a response (default 3)
+ +
+
true
+
+ +

true

+ +

Return an exit code of TRUE (0)

+ +
+
tty
+
+ +

tty

+ +

Print file name of stdin's terminal

+ +
        -s      Print nothing, only return exit status
+ +
+
ttysize
+
+ +

ttysize [w] [h]

+ +

Print dimension(s) of stdin's terminal, on error return 80x25

+ +
+
tunctl
+
+ +

tunctl [-f device] ([-t name] | -d name) [-u owner] [-g group] [-b]

+ +

Create or delete tun interfaces

+ +
        -f name         tun device (/dev/net/tun)
+        -t name         Create iface 'name'
+        -d name         Delete iface 'name'
+        -u owner        Set iface owner
+        -g group        Set iface group
+        -b              Brief output
+ +
+
ubiattach
+
+ +

ubiattach -m MTD_NUM [-d UBI_NUM] UBI_CTRL_DEV

+ +

Attach MTD device to UBI

+ +
        -m MTD_NUM      MTD device number to attach
+        -d UBI_NUM      UBI device number to assign
+ +
+
ubidetach
+
+ +

ubidetach -d UBI_NUM UBI_CTRL_DEV

+ +

Detach MTD device from UBI

+ +
        -d UBI_NUM      UBI device number
+ +
+
ubimkvol
+
+ +

ubimkvol UBI_DEVICE -N NAME -s SIZE

+ +

Create UBI volume

+ +
        -a ALIGNMENT    Volume alignment (default 1)
+        -n VOLID        Volume ID, if not specified, it
+                        will be assigned automatically
+        -N NAME         Volume name
+        -s SIZE         Size in bytes
+        -t TYPE         Volume type (static|dynamic)
+ +
+
ubirmvol
+
+ +

ubirmvol UBI_DEVICE -n VOLID

+ +

Remove UBI volume

+ +
        -n VOLID        Volume ID
+ +
+
ubirsvol
+
+ +

ubirsvol UBI_DEVICE -n VOLID -s SIZE

+ +

Resize UBI volume

+ +
        -n VOLID        Volume ID to resize
+        -s SIZE         Size in bytes
+ +
+
ubiupdatevol
+
+ +

ubiupdatevol UBI_DEVICE [IMG_FILE]

+ +

Update UBI volume

+ +
        -t      Truncate UBI volume
+        -s SIZE Bytes in input (if reading stdin)
+ +
+
udhcpc
+
+ +

udhcpc [-fbnqvoCRB] [-i IFACE] [-r IP] [-s PROG] [-p PIDFILE] [-V VENDOR] [-x OPT:VAL]... [-O OPT]...

+ +
        -i,--interface IFACE    Interface to use (default eth0)
+        -p,--pidfile FILE       Create pidfile
+        -s,--script PROG        Run PROG at DHCP events (default /usr/share/udhcpc/default.script)
+        -B,--broadcast          Request broadcast replies
+        -t,--retries N          Send up to N discover packets
+        -T,--timeout N          Pause between packets (default 3 seconds)
+        -A,--tryagain N         Wait N seconds after failure (default 20)
+        -f,--foreground         Run in foreground
+        -b,--background         Background if lease is not obtained
+        -n,--now                Exit if lease is not obtained
+        -q,--quit               Exit after obtaining lease
+        -R,--release            Release IP on exit
+        -S,--syslog             Log to syslog too
+        -a,--arping             Use arping to validate offered address
+        -O,--request-option OPT Request option OPT from server (cumulative)
+        -o,--no-default-options Don't request any options (unless -O is given)
+        -r,--request IP         Request this IP address
+        -x OPT:VAL              Include option OPT in sent packets (cumulative)
+                                Examples of string, numeric, and hex byte opts:
+                                -x hostname:bbox - option 12
+                                -x lease:3600 - option 51 (lease time)
+                                -x 0x3d:0100BEEFC0FFEE - option 61 (client id)
+        -F,--fqdn NAME          Ask server to update DNS mapping for NAME
+        -V,--vendorclass VENDOR Vendor identifier (default 'udhcp VERSION')
+        -C,--clientid-none      Don't send MAC as client identifier
+        -v                      Verbose
+Signals:
+
+        USR1    Renew lease
+        USR2    Release lease
+ +
+
udhcpd
+
+ +

udhcpd [-fS] [CONFFILE]

+ +

DHCP server

+ +
        -f      Run in foreground
+        -S      Log to syslog too
+ +
+
udpsvd
+
+ +

udpsvd [-hEv] [-c N] [-u USER] [-l NAME] IP PORT PROG

+ +

Create UDP socket, bind to IP:PORT and wait for incoming packets. Run PROG for each packet, redirecting all further packets with same peer ip:port to it.

+ +
        IP              IP to listen on, 0 = all
+        PORT            Port to listen on
+        PROG ARGS       Program to run
+        -l NAME         Local hostname (else looks up local hostname in DNS)
+        -u USER[:GRP]   Change to user/group after bind
+        -c N            Handle up to N connections simultaneously
+        -h              Look up peer's hostname
+        -E              Don't set up environment variables
+        -v              Verbose
+ +
+
umount
+
+ +

umount [OPTIONS] FILESYSTEM|DIRECTORY

+ +

Unmount file systems

+ +
        -a      Unmount all file systems
+        -r      Try to remount devices as read-only if mount is busy
+        -l      Lazy umount (detach filesystem)
+        -f      Force umount (i.e., unreachable NFS server)
+        -D      Don't free loop device even if it has been used
+ +
+
uname
+
+ +

uname [-amnrspv]

+ +

Print system information

+ +
        -a      Print all
+        -m      The machine (hardware) type
+        -n      Hostname
+        -r      OS release
+        -s      OS name (default)
+        -p      Processor type
+        -v      OS version
+ +
+
unexpand
+
+ +

unexpand [-fa][-t N] [FILE]...

+ +

Convert spaces to tabs, writing to stdout

+ +
        -a,--all        Convert all blanks
+        -f,--first-only Convert only leading blanks
+        -t,--tabs=N     Tabstops every N chars
+ +
+
uniq
+
+ +

uniq [-cdu][-f,s,w N] [INPUT [OUTPUT]]

+ +

Discard duplicate lines

+ +
        -c      Prefix lines by the number of occurrences
+        -d      Only print duplicate lines
+        -u      Only print unique lines
+        -f N    Skip first N fields
+        -s N    Skip first N chars (after any skipped fields)
+        -w N    Compare N characters in line
+ +
+
unix2dos
+
+ +

unix2dos [-ud] [FILE]

+ +

Convert FILE in-place from Unix to DOS format. When no file is given, use stdin/stdout.

+ +
        -u      dos2unix
+        -d      unix2dos
+ +
+
unlzma
+
+ +

unlzma [-cf] [FILE]...

+ +

Decompress FILE (or stdin)

+ +
        -c      Write to stdout
+        -f      Force
+ +
+
unlzop
+
+ +

unlzop [-cfvCF] [FILE]...

+ +
        -c      Write to stdout
+        -f      Force
+        -v      Verbose
+        -F      Don't store or verify checksum
+ +
+
unxz
+
+ +

unxz [-cf] [FILE]...

+ +

Decompress FILE (or stdin)

+ +
        -c      Write to stdout
+        -f      Force
+ +
+
unzip
+
+ +

unzip [-opts[modifiers]] FILE[.zip] [LIST] [-x XLIST] [-d DIR]

+ +

Extract files from ZIP archives

+ +
        -l      List archive contents (with -q for short form)
+        -n      Never overwrite files (default)
+        -o      Overwrite
+        -p      Send output to stdout
+        -q      Quiet
+        -x XLST Exclude these files
+        -d DIR  Extract files into DIR
+ +
+
uptime
+
+ +

uptime

+ +

Display the time since the last boot

+ +
+
users
+
+ +

users

+ +

Print the users currently logged on

+ +
+
usleep
+
+ +

usleep N

+ +

Pause for N microseconds

+ +
+
uudecode
+
+ +

uudecode [-o OUTFILE] [INFILE]

+ +

Uudecode a file Finds OUTFILE in uuencoded source unless -o is given

+ +
+
uuencode
+
+ +

uuencode [-m] [FILE] STORED_FILENAME

+ +

Uuencode FILE (or stdin) to stdout

+ +
        -m      Use base64 encoding per RFC1521
+ +
+
vconfig
+
+ +

vconfig COMMAND [OPTIONS]

+ +

Create and remove virtual ethernet devices

+ +
        add             IFACE VLAN_ID
+        rem             VLAN_NAME
+        set_flag        IFACE 0|1 VLAN_QOS
+        set_egress_map  VLAN_NAME SKB_PRIO VLAN_QOS
+        set_ingress_map VLAN_NAME SKB_PRIO VLAN_QOS
+        set_name_type   NAME_TYPE
+ +
+
vi
+
+ +

vi [OPTIONS] [FILE]...

+ +

Edit FILE

+ +
        -c      Initial command to run ($EXINIT also available)
+        -R      Read-only
+        -H      Short help regarding available features
+ +
+
vlock
+
+ +

vlock [-a]

+ +

Lock a virtual terminal. A password is required to unlock.

+ +
        -a      Lock all VTs
+ +
+
volname
+
+ +

volname [DEVICE]

+ +

Show CD volume name of the DEVICE (default /dev/cdrom)

+ +
+
wall
+
+ +

wall [FILE]

+ +

Write content of FILE or stdin to all logged-in users

+ +
+
watch
+
+ +

watch [-n SEC] [-t] PROG ARGS

+ +

Run PROG periodically

+ +
        -n      Loop period in seconds (default 2)
+        -t      Don't print header
+ +
+
watchdog
+
+ +

watchdog [-t N[ms]] [-T N[ms]] [-F] DEV

+ +

Periodically write to watchdog device DEV

+ +
        -T N    Reboot after N seconds if not reset (default 60)
+        -t N    Reset every N seconds (default 30)
+        -F      Run in foreground
+ +

Use 500ms to specify period in milliseconds

+ +
+
wc
+
+ +

wc [-cmlwL] [FILE]...

+ +

Count lines, words, and bytes for each FILE (or stdin)

+ +
        -c      Count bytes
+        -m      Count characters
+        -l      Count newlines
+        -w      Count words
+        -L      Print longest line length
+ +
+
wget
+
+ +

wget [-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document FILE] [--header 'header: value'] [-Y|--proxy on/off] [-P DIR] [--no-check-certificate] [-U|--user-agent AGENT] [-T SEC] URL...

+ +

Retrieve files via HTTP or FTP

+ +
        -s      Spider mode - only check file existence
+        -c      Continue retrieval of aborted transfer
+        -q      Quiet
+        -P DIR  Save to DIR (default .)
+        -T SEC  Network read timeout is SEC seconds
+        -O FILE Save to FILE ('-' for stdout)
+        -U STR  Use STR for User-Agent header
+        -Y      Use proxy ('on' or 'off')
+ +
+
which
+
+ +

which [COMMAND]...

+ +

Locate a COMMAND

+ +
+
who
+
+ +

who [-a]

+ +

Show who is logged on

+ +
        -a      Show all
+        -H      Print column headers
+ +
+
whoami
+
+ +

whoami

+ +

Print the user name associated with the current effective user id

+ +
+
whois
+
+ +

whois [-h SERVER] [-p PORT] NAME...

+ +

Query WHOIS info about NAME

+ +
        -h,-p   Server to query
+ +
+
xargs
+
+ +

xargs [OPTIONS] [PROG ARGS]

+ +

Run PROG on every item given by stdin

+ +
        -p      Ask user whether to run each command
+        -r      Don't run command if input is empty
+        -0      Input is separated by NUL characters
+        -t      Print the command on stderr before execution
+        -e[STR] STR stops input processing
+        -n N    Pass no more than N args to PROG
+        -s N    Pass command line of no more than N bytes
+        -x      Exit if size is exceeded
+ +
+
xz
+
+ +

xz -d [-cf] [FILE]...

+ +

Decompress FILE (or stdin)

+ +
        -d      Decompress
+        -c      Write to stdout
+        -f      Force
+ +
+
xzcat
+
+ +

xzcat FILE

+ +

Decompress to stdout

+ +
+
yes
+
+ +

yes [STRING]

+ +

Repeatedly output a line with STRING, or 'y'

+ +
+
zcat
+
+ +

zcat FILE

+ +

Decompress to stdout

+ +
+
zcip
+
+ +

zcip [OPTIONS] IFACE SCRIPT

+ +

Manage a ZeroConf IPv4 link-local address

+ +
        -f              Run in foreground
+        -q              Quit after obtaining address
+        -r 169.254.x.x  Request this address first
+        -v              Verbose
+ +

With no -q, runs continuously monitoring for ARP conflicts, exits only on I/O errors (link down etc)

+ +
+
+ +

LIBC NSS

+ +

GNU Libc (glibc) uses the Name Service Switch (NSS) to configure the behavior of the C library for the local environment, and to configure how it reads system data, such as passwords and group information. This is implemented using an /etc/nsswitch.conf configuration file, and using one or more of the /lib/libnss_* libraries. BusyBox tries to avoid using any libc calls that make use of NSS. Some applets however, such as login and su, will use libc functions that require NSS.

+ +

If you enable CONFIG_USE_BB_PWD_GRP, BusyBox will use internal functions to directly access the /etc/passwd, /etc/group, and /etc/shadow files without using NSS. This may allow you to run your system without the need for installing any of the NSS configuration files and libraries.

+ +

When used with glibc, the BusyBox 'networking' applets will similarly require that you install at least some of the glibc NSS stuff (in particular, /etc/nsswitch.conf, /lib/libnss_dns*, /lib/libnss_files*, and /lib/libresolv*).

+ +

Shameless Plug: As an alternative, one could use a C library such as uClibc. In addition to making your system significantly smaller, uClibc does not require the use of any NSS support files or libraries.

+ +

MAINTAINER

+ +

Denis Vlasenko <vda.linux@googlemail.com>

+ +

AUTHORS

+ +

The following people have contributed code to BusyBox whether they know it or not. If you have written code included in BusyBox, you should probably be listed here so you can obtain your bit of eternal glory. If you should be listed here, or the description of what you have done needs more detail, or is incorrect, please send in an update.

+ +
+ +

Emanuele Aina <emanuele.aina@tiscali.it> run-parts

+ +
+ +

Erik Andersen <andersen@codepoet.org>

+ +
    Tons of new stuff, major rewrite of most of the
+    core apps, tons of new apps as noted in header files.
+    Lots of tedious effort writing these boring docs that
+    nobody is going to actually read.
+ +
+ +

Laurence Anderson <l.d.anderson@warwick.ac.uk>

+ +
    rpm2cpio, unzip, get_header_cpio, read_gz interface, rpm
+ +
+ +

Jeff Angielski <jeff@theptrgroup.com>

+ +
    ftpput, ftpget
+ +
+ +

Edward Betts <edward@debian.org>

+ +
    expr, hostid, logname, whoami
+ +
+ +

John Beppu <beppu@codepoet.org>

+ +
    du, nslookup, sort
+ +
+ +

Brian Candler <B.Candler@pobox.com>

+ +
    tiny-ls(ls)
+ +
+ +

Randolph Chung <tausq@debian.org>

+ +
    fbset, ping, hostname
+ +
+ +

Dave Cinege <dcinege@psychosis.com>

+ +
    more(v2), makedevs, dutmp, modularization, auto links file,
+    various fixes, Linux Router Project maintenance
+ +
+ +

Jordan Crouse <jordan@cosmicpenguin.net>

+ +
    ipcalc
+ +
+ +

Magnus Damm <damm@opensource.se>

+ +
    tftp client insmod powerpc support
+ +
+ +

Larry Doolittle <ldoolitt@recycle.lbl.gov>

+ +
    pristine source directory compilation, lots of patches and fixes.
+ +
+ +

Glenn Engel <glenne@engel.org>

+ +
    httpd
+ +
+ +

Gennady Feldman <gfeldman@gena01.com>

+ +
    Sysklogd (single threaded syslogd, IPC Circular buffer support,
+    logread), various fixes.
+ +
+ +

Karl M. Hegbloom <karlheg@debian.org>

+ +
    cp_mv.c, the test suite, various fixes to utility.c, &c.
+ +
+ +

Daniel Jacobowitz <dan@debian.org>

+ +
    mktemp.c
+ +
+ +

Matt Kraai <kraai@alumni.cmu.edu>

+ +
    documentation, bugfixes, test suite
+ +
+ +

Stephan Linz <linz@li-pro.net>

+ +
    ipcalc, Red Hat equivalence
+ +
+ +

John Lombardo <john@deltanet.com>

+ +
    tr
+ +
+ +

Glenn McGrath <bug1@iinet.net.au>

+ +
    Common unarchiving code and unarchiving applets, ifupdown, ftpgetput,
+    nameif, sed, patch, fold, install, uudecode.
+    Various bugfixes, review and apply numerous patches.
+ +
+ +

Manuel Novoa III <mjn3@codepoet.org>

+ +
    cat, head, mkfifo, mknod, rmdir, sleep, tee, tty, uniq, usleep, wc, yes,
+    mesg, vconfig, make_directory, parse_mode, dirname, mode_string,
+    get_last_path_component, simplify_path, and a number trivial libbb routines
+
+    also bug fixes, partial rewrites, and size optimizations in
+    ash, basename, cal, cmp, cp, df, du, echo, env, ln, logname, md5sum, mkdir,
+    mv, realpath, rm, sort, tail, touch, uname, watch, arith, human_readable,
+    interface, dutmp, ifconfig, route
+ +
+ +

Vladimir Oleynik <dzo@simtreas.ru>

+ +
    cmdedit; xargs(current), httpd(current);
+    ports: ash, crond, fdisk, inetd, stty, traceroute, top;
+    locale, various fixes
+    and irreconcilable critic of everything not perfect.
+ +
+ +

Bruce Perens <bruce@pixar.com>

+ +
    Original author of BusyBox in 1995, 1996. Some of his code can
+    still be found hiding here and there...
+ +
+ +

Tim Riker <Tim@Rikers.org>

+ +
    bug fixes, member of fan club
+ +
+ +

Kent Robotti <robotti@metconnect.com>

+ +
    reset, tons and tons of bug reports and patches.
+ +
+ +

Chip Rosenthal <chip@unicom.com>, <crosenth@covad.com>

+ +
    wget - Contributed by permission of Covad Communications
+ +
+ +

Pavel Roskin <proski@gnu.org>

+ +
    Lots of bugs fixes and patches.
+ +
+ +

Gyepi Sam <gyepi@praxis-sw.com>

+ +
    Remote logging feature for syslogd
+ +
+ +

Linus Torvalds <torvalds@transmeta.com>

+ +
    mkswap, fsck.minix, mkfs.minix
+ +
+ +

Mark Whitley <markw@codepoet.org>

+ +
    grep, sed, cut, xargs(previous),
+    style-guide, new-applet-HOWTO, bug fixes, etc.
+ +
+ +

Charles P. Wright <cpwright@villagenet.com>

+ +
    gzip, mini-netcat(nc)
+ +
+ +

Enrique Zanardi <ezanardi@ull.es>

+ +
    tarcat (since removed), loadkmap, various fixes, Debian maintenance
+ +
+ +

Tito Ragusa <farmatito@tiscali.it>

+ +
    devfsd and size optimizations in strings, openvt and deallocvt.
+ +
+ +

Paul Fox <pgf@foxharp.boston.ma.us>

+ +
    vi editing mode for ash, various other patches/fixes
+ +
+ +

Roberto A. Foglietta <me@roberto.foglietta.name>

+ +
    port: dnsd
+ +
+ +

Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

+ +
    misc
+ +
+ +

Mike Frysinger <vapier@gentoo.org>

+ +
    initial e2fsprogs, printenv, setarch, sum, misc
+ +
+ +

Jie Zhang <jie.zhang@analog.com>

+ +
    fixed two bugs in msh and hush (exitcode of killed processes)
+ + + + + + + diff -Naur busybox-1.20.2/docs/busybox.pod busybox-1.20.2_mod/docs/busybox.pod --- busybox-1.20.2/docs/busybox.pod 1970-01-01 08:00:00.000000000 +0800 +++ busybox-1.20.2_mod/docs/busybox.pod 2024-04-16 14:07:14.894730289 +0800 @@ -0,0 +1,4446 @@ +# vi: set sw=4 ts=4: + +=head1 NAME + +BusyBox - The Swiss Army Knife of Embedded Linux + +=head1 SYNTAX + + busybox [arguments...] # or + + [arguments...] # if symlinked + +=head1 DESCRIPTION + +BusyBox combines tiny versions of many common UNIX utilities into a single +small executable. It provides minimalist replacements for most of the utilities +you usually find in GNU coreutils, util-linux, etc. The utilities in BusyBox +generally have fewer options than their full-featured GNU cousins; however, the +options that are included provide the expected functionality and behave very +much like their GNU counterparts. + +BusyBox has been written with size-optimization and limited resources in mind. +It is also extremely modular so you can easily include or exclude commands (or +features) at compile time. This makes it easy to customize your embedded +systems. To create a working system, just add /dev, /etc, and a Linux kernel. +BusyBox provides a fairly complete POSIX environment for any small or embedded +system. + +BusyBox is extremely configurable. This allows you to include only the +components you need, thereby reducing binary size. Run 'make config' or 'make +menuconfig' to select the functionality that you wish to enable. Then run +'make' to compile BusyBox using your configuration. + +After the compile has finished, you should use 'make install' to install +BusyBox. This will install the 'bin/busybox' binary, in the target directory +specified by CONFIG_PREFIX. CONFIG_PREFIX can be set when configuring BusyBox, +or you can specify an alternative location at install time (i.e., with a +command line like 'make CONFIG_PREFIX=/tmp/foo install'). If you enabled +any applet installation scheme (either as symlinks or hardlinks), these will +also be installed in the location pointed to by CONFIG_PREFIX. + +=head1 USAGE + +BusyBox is a multi-call binary. A multi-call binary is an executable program +that performs the same job as more than one utility program. That means there +is just a single BusyBox binary, but that single binary acts like a large +number of utilities. This allows BusyBox to be smaller since all the built-in +utility programs (we call them applets) can share code for many common +operations. + +You can also invoke BusyBox by issuing a command as an argument on the +command line. For example, entering + + /bin/busybox ls + +will also cause BusyBox to behave as 'ls'. + +Of course, adding '/bin/busybox' into every command would be painful. So most +people will invoke BusyBox using links to the BusyBox binary. + +For example, entering + + ln -s /bin/busybox ls + ./ls + +will cause BusyBox to behave as 'ls' (if the 'ls' command has been compiled +into BusyBox). Generally speaking, you should never need to make all these +links yourself, as the BusyBox build system will do this for you when you run +the 'make install' command. + +If you invoke BusyBox with no arguments, it will provide you with a list of the +applets that have been compiled into your BusyBox binary. + +=head1 COMMON OPTIONS + +Most BusyBox applets support the B<--help> argument to provide a terse runtime +description of their behavior. If the CONFIG_FEATURE_VERBOSE_USAGE option has +been enabled, more detailed usage information will also be available. + +=head1 COMMANDS + +Currently available applets include: + + [, [[, acpid, add-shell, addgroup, adduser, adjtimex, arp, arping, + ash, awk, base64, basename, beep, blkid, blockdev, bootchartd, + brctl, bunzip2, bzcat, bzip2, cal, cat, catv, chat, chattr, chgrp, + chmod, chown, chpasswd, chpst, chroot, chrt, chvt, cksum, clear, + cmp, comm, conspy, cp, cpio, crond, crontab, cryptpw, cttyhack, cut, + date, dc, dd, deallocvt, delgroup, deluser, depmod, devmem, df, + dhcprelay, diff, dirname, dmesg, dnsd, dnsdomainname, dos2unix, du, + dumpkmap, dumpleases, echo, ed, egrep, eject, env, envdir, + envuidgid, ether-wake, expand, expr, fakeidentd, false, fbset, + fbsplash, fdflush, fdformat, fdisk, fgconsole, fgrep, find, findfs, + flash_eraseall, flock, fold, free, freeramdisk, fsck, fsck.minix, + fsync, ftpd, ftpget, ftpput, fuser, getopt, getty, grep, groups, + gunzip, gzip, halt, hd, hdparm, head, hexdump, hostid, hostname, + httpd, hush, hwclock, id, ifconfig, ifdown, ifenslave, ifplugd, + ifup, inetd, init, insmod, install, ionice, iostat, ip, ipaddr, + ipcalc, ipcrm, ipcs, iplink, iproute, iprule, iptunnel, kbd_mode, + kill, killall, killall5, klogd, last, less, linux32, linux64, + linuxrc, ln, loadfont, loadkmap, logger, login, logname, logread, + losetup, lpd, lpq, lpr, ls, lsattr, lsmod, lsof, lspci, lsusb, + lzcat, lzma, lzop, lzopcat, makedevs, makemime, man, md5sum, mdev, + mesg, microcom, mkdir, mkdosfs, mke2fs, mkfifo, mkfs.ext2, + mkfs.minix, mkfs.vfat, mknod, mkpasswd, mkswap, mktemp, modinfo, + modprobe, more, mount, mountpoint, mpstat, mt, mv, nameif, nanddump, + nandwrite, nbd-client, nc, netstat, nice, nmeter, nohup, nslookup, + ntpd, od, openvt, passwd, patch, pgrep, pidof, ping, ping6, + pipe_progress, pivot_root, pkill, pmap, popmaildir, poweroff, + powertop, printenv, printf, ps, pscan, pstree, pwd, pwdx, + raidautorun, rdate, rdev, readahead, readlink, readprofile, + realpath, reboot, reformime, remove-shell, renice, reset, resize, + rev, rm, rmdir, rmmod, route, rpm, rpm2cpio, rtcwake, run-parts, + runlevel, runsv, runsvdir, rx, script, scriptreplay, sed, sendmail, + seq, setarch, setconsole, setfont, setkeycodes, setlogcons, + setserial, setsid, setuidgid, sh, sha1sum, sha256sum, sha512sum, + showkey, slattach, sleep, smemcap, softlimit, sort, split, + start-stop-daemon, stat, strings, stty, su, sulogin, sum, sv, + svlogd, swapoff, swapon, switch_root, sync, sysctl, syslogd, tac, + tail, tar, tcpsvd, tee, telnet, telnetd, test, tftp, tftpd, time, + timeout, top, touch, tr, traceroute, traceroute6, true, tty, + ttysize, tunctl, ubiattach, ubidetach, ubimkvol, ubirmvol, ubirsvol, + ubiupdatevol, udhcpc, udhcpd, udpsvd, umount, uname, unexpand, uniq, + unix2dos, unlzma, unlzop, unxz, unzip, uptime, users, usleep, + uudecode, uuencode, vconfig, vi, vlock, volname, wall, watch, + watchdog, wc, wget, which, who, whoami, whois, xargs, xz, xzcat, + yes, zcat, zcip + +=head1 COMMAND DESCRIPTIONS + +=over 4 + +=item B + +acpid [-df] [-c CONFDIR] [-l LOGFILE] [-a ACTIONFILE] [-M MAPFILE] [-e PROC_EVENT_FILE] [-p PIDFILE] + +Listen to ACPI events and spawn specific helpers on event arrival + + -d Log to stderr, not log file (implies -f) + -f Run in foreground + -c DIR Config directory [/etc/acpi] + -e FILE /proc event file [/proc/acpi/event] + -l FILE Log file [/var/log/acpid.log] + -p FILE Pid file [/var/run/acpid.pid] + -a FILE Action file [/etc/acpid.conf] + -M FILE Map file [/etc/acpi.map] + +Accept and ignore compatibility options -g -m -s -S -v + +=item B + +add-shell SHELL... + +Add SHELLs to /etc/shells + +=item B + +addgroup [-g GID] [USER] GROUP + +Add a group or add a user to a group + + -g GID Group id + -S Create a system group + +=item B + +adduser [OPTIONS] USER + +Add a user + + -h DIR Home directory + -g GECOS GECOS field + -s SHELL Login shell + -G GRP Add user to existing group + -S Create a system user + -D Don't assign a password + -H Don't create home directory + -u UID User id + +=item B + +adjtimex [-q] [-o OFF] [-f FREQ] [-p TCONST] [-t TICK] + +Read and optionally set system timebase parameters. See adjtimex(2) + + -q Quiet + -o OFF Time offset, microseconds + -f FREQ Frequency adjust, integer kernel units (65536 is 1ppm) + (positive values make clock run faster) + -t TICK Microseconds per tick, usually 10000 + -p TCONST + +=item B + +arp +[-vn] [-H HWTYPE] [-i IF] -a [HOSTNAME] +[-v] [-i IF] -d HOSTNAME [pub] +[-v] [-H HWTYPE] [-i IF] -s HOSTNAME HWADDR [temp] +[-v] [-H HWTYPE] [-i IF] -s HOSTNAME HWADDR [netmask MASK] pub +[-v] [-H HWTYPE] [-i IF] -Ds HOSTNAME IFACE [netmask MASK] pub + +Manipulate ARP cache + + -a Display (all) hosts + -s Set new ARP entry + -d Delete a specified entry + -v Verbose + -n Don't resolve names + -i IF Network interface + -D Read from given device + -A,-p AF Protocol family + -H HWTYPE Hardware address type + +=item B + +arping [-fqbDUA] [-c CNT] [-w TIMEOUT] [-I IFACE] [-s SRC_IP] DST_IP + +Send ARP requests/replies + + -f Quit on first ARP reply + -q Quiet + -b Keep broadcasting, don't go unicast + -D Duplicated address detection mode + -U Unsolicited ARP mode, update your neighbors + -A ARP answer mode, update your neighbors + -c N Stop after sending N ARP requests + -w TIMEOUT Time to wait for ARP reply, seconds + -I IFACE Interface to use (default eth0) + -s SRC_IP Sender IP address + DST_IP Target IP address + +=item B + +ash [-/+OPTIONS] [-/+o OPT]... [-c 'SCRIPT' [ARG0 [ARGS]] / FILE [ARGS]] + +Unix shell interpreter + +=item B + +awk [OPTIONS] [AWK_PROGRAM] [FILE]... + + -v VAR=VAL Set variable + -F SEP Use SEP as field separator + -f FILE Read program from FILE + +=item B + +base64 [-d] [FILE] + +Base64 encode or decode FILE to standard output + -d Decode data + +=item B + +basename FILE [SUFFIX] + +Strip directory path and .SUFFIX from FILE + + +=item B + +beep -f FREQ -l LEN -d DELAY -r COUNT -n + + -f Frequency in Hz + -l Length in ms + -d Delay in ms + -r Repetitions + -n Start new tone + +=item B + +blkid [BLOCKDEV]... + +Print UUIDs of all filesystems + +=item B + +blockdev OPTION BLOCKDEV + + --setro Set ro + --setrw Set rw + --getro Get ro + --getss Get sector size + --getbsz Get block size + --setbsz BYTES Set block size + --getsz Get device size in 512-byte sectors + --getsize64 Get device size in bytes + --flushbufs Flush buffers + --rereadpt Reread partition table + +=item B + +bootchartd start [PROG ARGS]|stop|init + +Create /var/log/bootchart.tgz with boot chart data + +start: start background logging; with PROG, run PROG, then kill logging with USR1 +stop: send USR1 to all bootchartd processes +init: start background logging; stop when getty/xdm is seen (for init scripts) +Under PID 1: as init, then exec $bootchart_init, /init, /sbin/init + +=item B + +brctl COMMAND [BRIDGE [INTERFACE]] + +Manage ethernet bridges + +Commands: + + show Show a list of bridges + addbr BRIDGE Create BRIDGE + delbr BRIDGE Delete BRIDGE + addif BRIDGE IFACE Add IFACE to BRIDGE + delif BRIDGE IFACE Delete IFACE from BRIDGE + setageing BRIDGE TIME Set ageing time + setfd BRIDGE TIME Set bridge forward delay + sethello BRIDGE TIME Set hello time + setmaxage BRIDGE TIME Set max message age + setpathcost BRIDGE COST Set path cost + setportprio BRIDGE PRIO Set port priority + setbridgeprio BRIDGE PRIO Set bridge priority + stp BRIDGE [1/yes/on|0/no/off] STP on/off + +=item B + +bunzip2 [-cf] [FILE]... + +Decompress FILEs (or stdin) + + -c Write to stdout + -f Force + +=item B + +bzcat FILE + +Decompress to stdout + +=item B + +bzip2 [OPTIONS] [FILE]... + +Compress FILEs (or stdin) with bzip2 algorithm + + -1..9 Compression level + -d Decompress + -c Write to stdout + -f Force + +=item B + +cal [-jy] [[MONTH] YEAR] + +Display a calendar + + -j Use julian dates + -y Display the entire year + +=item B + +cat [FILE]... + +Concatenate FILEs and print them to stdout + +=item B + +catv [-etv] [FILE]... + +Display nonprinting characters as ^x or M-x + + -e End each line with $ + -t Show tabs as ^I + -v Don't use ^x or M-x escapes + +=item B + +chat EXPECT [SEND [EXPECT [SEND...]]] + +Useful for interacting with a modem connected to stdin/stdout. +A script consists of one or more "expect-send" pairs of strings, +each pair is a pair of arguments. Example: +chat '' ATZ OK ATD123456 CONNECT '' ogin: pppuser word: ppppass '~' + +=item B + +chattr [-R] [-+=AacDdijsStTu] [-v VERSION] [FILE]... + +Change file attributes on an ext2 fs + +Modifiers: + + - Remove attributes + + Add attributes + = Set attributes +Attributes: + + A Don't track atime + a Append mode only + c Enable compress + D Write dir contents synchronously + d Don't backup with dump + i Cannot be modified (immutable) + j Write all data to journal first + s Zero disk storage when deleted + S Write file contents synchronously + t Disable tail-merging of partial blocks with other files + u Allow file to be undeleted + -R Recurse + -v Set the file's version/generation number + +=item B + +chgrp [-RhLHPcvf]... GROUP FILE... + +Change the group membership of each FILE to GROUP + + -R Recurse + -h Affect symlinks instead of symlink targets + -L Traverse all symlinks to directories + -H Traverse symlinks on command line only + -P Don't traverse symlinks (default) + -c List changed files + -v Verbose + -f Hide errors + +=item B + +chmod [-Rcvf] MODE[,MODE]... FILE... + +Each MODE is one or more of the letters ugoa, one of the +symbols +-= and one or more of the letters rwxst + + -R Recurse + -c List changed files + -v List all files + -f Hide errors + +=item B + +chown [-RhLHPcvf]... OWNER[<.|:>[GROUP]] FILE... + +Change the owner and/or group of each FILE to OWNER and/or GROUP + + -R Recurse + -h Affect symlinks instead of symlink targets + -L Traverse all symlinks to directories + -H Traverse symlinks on command line only + -P Don't traverse symlinks (default) + -c List changed files + -v List all files + -f Hide errors + +=item B + +chpasswd [--md5|--encrypted] + +Read user:password from stdin and update /etc/passwd + + -e,--encrypted Supplied passwords are in encrypted form + -m,--md5 Use MD5 encryption instead of DES + +=item B + +chpst [-vP012] [-u USER[:GRP]] [-U USER[:GRP]] [-e DIR] + [-/ DIR] [-n NICE] [-m BYTES] [-d BYTES] [-o N] + [-p N] [-f BYTES] [-c BYTES] PROG ARGS + +Change the process state, run PROG + + -u USER[:GRP] Set uid and gid + -U USER[:GRP] Set $UID and $GID in environment + -e DIR Set environment variables as specified by files + in DIR: file=1st_line_of_file + -/ DIR Chroot to DIR + -n NICE Add NICE to nice value + -m BYTES Same as -d BYTES -s BYTES -l BYTES + -d BYTES Limit data segment + -o N Limit number of open files per process + -p N Limit number of processes per uid + -f BYTES Limit output file sizes + -c BYTES Limit core file size + -v Verbose + -P Create new process group + -0 Close stdin + -1 Close stdout + -2 Close stderr + +=item B + +chroot NEWROOT [PROG ARGS] + +Run PROG with root directory set to NEWROOT + +=item B + +chrt [-prfom] [PRIO] [PID | PROG ARGS] + +Change scheduling priority and class for a process + + -p Operate on PID + -r Set SCHED_RR class + -f Set SCHED_FIFO class + -o Set SCHED_OTHER class + -m Show min/max priorities + +=item B + +chvt N + +Change the foreground virtual terminal to /dev/ttyN + +=item B + +cksum FILES... + +Calculate the CRC32 checksums of FILES + +=item B + +clear + +Clear screen + +=item B + +cmp [-l] [-s] FILE1 [FILE2 [SKIP1 [SKIP2]]] + +Compare FILE1 with FILE2 (or stdin) + + -l Write the byte numbers (decimal) and values (octal) + for all differing bytes + -s Quiet + +=item B + +comm [-123] FILE1 FILE2 + +Compare FILE1 with FILE2 + + -1 Suppress lines unique to FILE1 + -2 Suppress lines unique to FILE2 + -3 Suppress lines common to both files + +=item B + +conspy [-vcsndfFQ] [-x COL] [-y LINE] [CONSOLE_NO] + +A text-mode VNC like program for Linux virtual consoles. +To exit, quickly press ESC 3 times. + + -v Don't send keystrokes to the console + -c Create missing /dev/{tty,vcsa}N + -s Open a SHELL session + -n Black & white + -d Dump console to stdout + -f Follow cursor + -F Assume console is on a framebuffer device + -Q Disable exit on ESC-ESC-ESC + -x COL Starting column + -y LINE Starting line + +=item B + +cp [OPTIONS] SOURCE... DEST + +Copy SOURCE(s) to DEST + + -a Same as -dpR + -R,-r Recurse + -d,-P Preserve symlinks (default if -R) + -L Follow all symlinks + -H Follow symlinks on command line + -p Preserve file attributes if possible + -f Overwrite + -i Prompt before overwrite + -l,-s Create (sym)links + +=item B + +cpio [-dmvu] [-F FILE] [-H newc] [-tio] [-p DIR] [EXTR_FILE]... + +Extract or list files from a cpio archive, or +create an archive (-o) or copy files (-p) using file list on stdin + +Main operation mode: + + -t List + -i Extract EXTR_FILEs (or all) + -o Create (requires -H newc) + -p DIR Copy files to DIR + -d Make leading directories + -m Preserve mtime + -v Verbose + -u Overwrite + -F FILE Input (-t,-i,-p) or output (-o) file + -H newc Archive format + +=item B + +crond -fbS -l N -d N -L LOGFILE -c DIR + + -f Foreground + -b Background (default) + -S Log to syslog (default) + -l Set log level. 0 is the most verbose, default 8 + -d Set log level, log to stderr + -L Log to file + -c Working dir + +=item B + +crontab [-c DIR] [-u USER] [-ler]|[FILE] + + -c Crontab directory + -u User + -l List crontab + -e Edit crontab + -r Delete crontab + FILE Replace crontab by FILE ('-': stdin) + +=item B + +cryptpw [OPTIONS] [PASSWORD] [SALT] + +Crypt PASSWORD using crypt(3) + + -P,--password-fd=N Read password from fd N + -m,--method=TYPE Encryption method + -S,--salt=SALT + +=item B + +cttyhack [PROG ARGS] + +Give PROG a controlling tty if possible. +Example for /etc/inittab (for busybox init): + ::respawn:/bin/cttyhack /bin/sh +Giving controlling tty to shell running with PID 1: + $ exec cttyhack sh +Starting interactive shell from boot shell script: + + setsid cttyhack sh + +=item B + +cut [OPTIONS] [FILE]... + +Print selected fields from each input FILE to stdout + + -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 Output only the lines containing delimiter + -f N Print only these fields + -n Ignored + +=item B + +date [OPTIONS] [+FMT] [TIME] + +Display time (using +FMT), or set time + + [-s,--set] TIME Set time to TIME + -u,--utc Work in UTC (don't convert to local time) + -R,--rfc-2822 Output RFC-2822 compliant date string + -I[SPEC] Output ISO-8601 compliant date string + SPEC='date' (default) for date only, + 'hours', 'minutes', or 'seconds' for date and + time to the indicated precision + -r,--reference FILE Display last modification time of FILE + -d,--date TIME Display TIME, not 'now' + -D FMT Use FMT for -d TIME conversion + +Recognized TIME formats: + + hh:mm[:ss] + [YYYY.]MM.DD-hh:mm[:ss] + YYYY-MM-DD hh:mm[:ss] + [[[[[YY]YY]MM]DD]hh]mm[.ss] + 'date TIME' form accepts MMDDhhmm[[YY]YY][.ss] instead + +=item B + +dc EXPRESSION... + +Tiny RPN calculator. Operations: ++, add, -, sub, *, mul, /, div, %, mod, **, exp, and, or, not, eor, +p - print top of the stack (without popping), +f - print entire stack, +o - pop the value and set output radix (must be 10, 16, 8 or 2). +Examples: 'dc 2 2 add p' -> 4, 'dc 8 8 * 2 2 + / p' -> 16 + +=item B
+ +dd [if=FILE] [of=FILE] [ibs=N] [obs=N] [bs=N] [count=N] [skip=N] + [seek=N] [conv=notrunc|noerror|sync|fsync] + +Copy a file with converting and formatting + + if=FILE Read from FILE instead of stdin + of=FILE Write to FILE instead of stdout + bs=N Read and write N bytes at a time + ibs=N Read N bytes at a time + obs=N Write N bytes at a time + count=N Copy only N input blocks + skip=N Skip N input blocks + seek=N Skip N output blocks + conv=notrunc Don't truncate output file + conv=noerror Continue after read errors + conv=sync Pad blocks with zeros + conv=fsync Physically write data out before finishing + +Numbers may be suffixed by c (x1), w (x2), b (x512), kD (x1000), k (x1024), +MD (x1000000), M (x1048576), GD (x1000000000) or G (x1073741824) + +=item B + +deallocvt [N] + +Deallocate unused virtual terminal /dev/ttyN + +=item B + +delgroup [USER] GROUP + +Delete group GROUP from the system or user USER from group GROUP + +=item B + +deluser USER + +Delete USER from the system + +=item B + +depmod [-qfwrsv] MODULE [symbol=value]... + + -r Remove MODULE (stacks) or do autoclean + -q Quiet + -v Verbose + -f Force + -w Wait for unload + -s Report via syslog instead of stderr + +=item B + +devmem ADDRESS [WIDTH [VALUE]] + +Read/write from physical address + + ADDRESS Address to act upon + WIDTH Width (8/16/...) + VALUE Data to be written + +=item B + +df [-Pkmhai] [-B SIZE] [FILESYSTEM]... + +Print filesystem usage statistics + + -P POSIX output format + -k 1024-byte blocks (default) + -m 1M-byte blocks + -h Human readable (e.g. 1K 243M 2G) + -a Show all filesystems + -i Inodes + -B SIZE Blocksize + +=item B + +dhcprelay CLIENT_IFACE[,CLIENT_IFACE2]... SERVER_IFACE [SERVER_IP] + +Relay DHCP requests between clients and server + +=item B + +diff [-abBdiNqrTstw] [-L LABEL] [-S FILE] [-U LINES] FILE1 FILE2 + +Compare files line by line and output the differences between them. +This implementation supports unified diffs only. + + -a Treat all files as text + -b Ignore changes in the amount of whitespace + -B Ignore changes whose lines are all blank + -d Try hard to find a smaller set of changes + -i Ignore case differences + -L Use LABEL instead of the filename in the unified header + -N Treat absent files as empty + -q Output only whether files differ + -r Recurse + -S Start with FILE when comparing directories + -T Make tabs line up by prefixing a tab when necessary + -s Report when two files are the same + -t Expand tabs to spaces in output + -U Output LINES lines of context + -w Ignore all whitespace + +=item B + +dirname FILENAME + +Strip non-directory suffix from FILENAME + +=item B + +dmesg [-c] [-n LEVEL] [-s SIZE] + +Print or control the kernel ring buffer + + -c Clear ring buffer after printing + -n LEVEL Set console logging level + -s SIZE Buffer size + +=item B + +dnsd [-dvs] [-c CONFFILE] [-t TTL_SEC] [-p PORT] [-i ADDR] + +Small static DNS server daemon + + -c FILE Config file + -t SEC TTL + -p PORT Listen on PORT + -i ADDR Listen on ADDR + -d Daemonize + -v Verbose + -s Send successful replies only. Use this if you want + to use /etc/resolv.conf with two nameserver lines: + nameserver DNSD_SERVER + nameserver NORMAL_DNS_SERVER + +=item B + +dos2unix [-ud] [FILE] + +Convert FILE in-place from DOS to Unix format. +When no file is given, use stdin/stdout. + + -u dos2unix + -d unix2dos + +=item B + +du [-aHLdclsxhmk] [FILE]... + +Summarize disk space used for each FILE and/or directory + + -a Show file sizes too + -L Follow all symlinks + -H Follow symlinks on command line + -d N Limit output to directories (and files with -a) of depth < N + -c Show grand total + -l Count sizes many times if hard linked + -s Display only a total for each argument + -x Skip directories on different filesystems + -h Sizes in human readable format (e.g., 1K 243M 2G) + -m Sizes in megabytes + -k Sizes in kilobytes (default) + +=item B + +dumpkmap > keymap + +Print a binary keyboard translation table to stdout + +=item B + +dumpleases [-r|-a] [-f LEASEFILE] + +Display DHCP leases granted by udhcpd + + -f,--file=FILE Lease file + -r,--remaining Show remaining time + -a,--absolute Show expiration time + +=item B + +echo [-neE] [ARG]... + +Print the specified ARGs to stdout + + -n Suppress trailing newline + -e Interpret backslash escapes (i.e., \t=tab) + -E Don't interpret backslash escapes (default) + +=item B + +ed + +=item B + +eject [-t] [-T] [DEVICE] + +Eject DEVICE or default /dev/cdrom + + -s SCSI device + -t Close tray + -T Open/close tray (toggle) + +=item B + +env [-iu] [-] [name=value]... [PROG ARGS] + +Print the current environment or run PROG after setting up +the specified environment + + -, -i Start with an empty environment + -u Remove variable from the environment + +=item B + +envdir DIR PROG ARGS + +Set various environment variables as specified by files +in the directory DIR, run PROG + +=item B + +envuidgid USER PROG ARGS + +Set $UID to USER's uid and $GID to USER's gid, run PROG + +=item B + +ether-wake [-b] [-i iface] [-p aa:bb:cc:dd[:ee:ff]] MAC + +Send a magic packet to wake up sleeping machines. +MAC must be a station address (00:11:22:33:44:55) or +a hostname with a known 'ethers' entry. + + -b Send wake-up packet to the broadcast address + -i iface Interface to use (default eth0) + -p pass Append four or six byte password PW to the packet + +=item B + +expand [-i] [-t N] [FILE]... + +Convert tabs to spaces, writing to stdout + + -i,--initial Don't convert tabs after non blanks + -t,--tabs=N Tabstops every N chars + +=item B + +expr EXPRESSION + +Print the value of EXPRESSION to stdout + +EXPRESSION may be: + + ARG1 | ARG2 ARG1 if it is neither null nor 0, otherwise ARG2 + ARG1 & ARG2 ARG1 if neither argument is null or 0, otherwise 0 + ARG1 < ARG2 1 if ARG1 is less than ARG2, else 0. Similarly: + ARG1 <= ARG2 + ARG1 = ARG2 + ARG1 != ARG2 + ARG1 >= ARG2 + ARG1 > ARG2 + ARG1 + ARG2 Sum of ARG1 and ARG2. Similarly: + ARG1 - ARG2 + ARG1 * ARG2 + ARG1 / ARG2 + ARG1 % ARG2 + STRING : REGEXP Anchored pattern match of REGEXP in STRING + match STRING REGEXP Same as STRING : REGEXP + substr STRING POS LENGTH Substring of STRING, POS counted from 1 + index STRING CHARS Index in STRING where any CHARS is found, or 0 + length STRING Length of STRING + quote TOKEN Interpret TOKEN as a string, even if + it is a keyword like 'match' or an + operator like '/' + (EXPRESSION) Value of EXPRESSION + +Beware that many operators need to be escaped or quoted for shells. +Comparisons are arithmetic if both ARGs are numbers, else +lexicographical. Pattern matches return the string matched between +\( and \) or null; if \( and \) are not used, they return the number +of characters matched or 0. + +=item B + +fakeidentd [-fiw] [-b ADDR] [STRING] + +Provide fake ident (auth) service + + -f Run in foreground + -i Inetd mode + -w Inetd 'wait' mode + -b ADDR Bind to specified address + STRING Ident answer string (default: nobody) + +=item B + +false + +Return an exit code of FALSE (1) + +=item B + +fbset [OPTIONS] [MODE] + +Show and modify frame buffer settings + +=item B + +fbsplash -s IMGFILE [-c] [-d DEV] [-i INIFILE] [-f CMD] + + -s Image + -c Hide cursor + -d Framebuffer device (default /dev/fb0) + -i Config file (var=value): + BAR_LEFT,BAR_TOP,BAR_WIDTH,BAR_HEIGHT + BAR_R,BAR_G,BAR_B + -f Control pipe (else exit after drawing image) + commands: 'NN' (% for progress bar) or 'exit' + +=item B + +fdflush DEVICE + +Force floppy disk drive to detect disk change + +=item B + +fdformat [-n] DEVICE + +Format floppy disk + + -n Don't verify after format + +=item B + +fdisk [-ul] [-C CYLINDERS] [-H HEADS] [-S SECTORS] [-b SSZ] DISK + +Change partition table + + -u Start and End are in sectors (instead of cylinders) + -l Show partition table for each DISK, then exit + -b 2048 (for certain MO disks) use 2048-byte sectors + -C CYLINDERS Set number of cylinders/heads/sectors + -H HEADS + -S SECTORS + +=item B + +fgconsole + +Get active console + +=item B + +find [PATH]... [OPTIONS] [ACTIONS] + +Search for files and perform actions on them. +First failed action stops processing of current file. +Defaults: PATH is current directory, action is '-print' + + -follow Follow symlinks + -xdev Don't descend directories on other filesystems + -maxdepth N Descend at most N levels. -maxdepth 0 applies + actions to command line arguments only + -mindepth N Don't act on first N levels + -depth Act on directory *after* traversing it + +Actions: + + ( ACTIONS ) Group actions for -o / -a + ! ACT Invert ACT's success/failure + ACT1 [-a] ACT2 If ACT1 fails, stop, else do ACT2 + ACT1 -o ACT2 If ACT1 succeeds, stop, else do ACT2 + Note: -a has higher priority than -o + -name PATTERN Match file name (w/o directory name) to PATTERN + -iname PATTERN Case insensitive -name + -path PATTERN Match path to PATTERN + -ipath PATTERN Case insensitive -path + -regex PATTERN Match path to regex PATTERN + -type X File type is X (one of: f,d,l,b,c,...) + -perm MASK At least one mask bit (+MASK), all bits (-MASK), + or exactly MASK bits are set in file's mode + -mtime DAYS mtime is greater than (+N), less than (-N), + or exactly N days in the past + -mmin MINS mtime is greater than (+N), less than (-N), + or exactly N minutes in the past + -newer FILE mtime is more recent than FILE's + -inum N File has inode number N + -user NAME/ID File is owned by given user + -group NAME/ID File is owned by given group + -size N[bck] File size is N (c:bytes,k:kbytes,b:512 bytes(def.)) + +/-N: file size is bigger/smaller than N + -links N Number of links is greater than (+N), less than (-N), + or exactly N + -prune If current file is directory, don't descend into it +If none of the following actions is specified, -print is assumed + -print Print file name + -print0 Print file name, NUL terminated + -exec CMD ARG ; Run CMD with all instances of {} replaced by + file name. Fails if CMD exits with nonzero + -delete Delete current file/directory. Turns on -depth option + +=item B + +findfs LABEL=label or UUID=uuid + +Find a filesystem device based on a label or UUID + +=item B + +flash_eraseall [-jq] MTD_DEVICE + +Erase an MTD device + + -j Format the device for jffs2 + -q Don't display progress messages + +=item B + +flock [-sxun] FD|{FILE [-c] PROG ARGS} + +[Un]lock file descriptor, or lock FILE, run PROG + + -s Shared lock + -x Exclusive lock (default) + -u Unlock FD + -n Fail rather than wait + +=item B + +fold [-bs] [-w WIDTH] [FILE]... + +Wrap input lines in each FILE (or stdin), writing to stdout + + -b Count bytes rather than columns + -s Break at spaces + -w Use WIDTH columns instead of 80 + +=item B + +free [-b/k/m/g] + +Display the amount of free and used system memory + +=item B + +freeramdisk DEVICE + +Free all memory used by the specified ramdisk + +=item B + +fsck [-ANPRTV] [-C FD] [-t FSTYPE] [FS_OPTS] [BLOCKDEV]... + +Check and repair filesystems + + -A Walk /etc/fstab and check all filesystems + -N Don't execute, just show what would be done + -P With -A, check filesystems in parallel + -R With -A, skip the root filesystem + -T Don't show title on startup + -V Verbose + -C n Write status information to specified filedescriptor + -t TYPE List of filesystem types to check + +=item B + +fsck.minix [-larvsmf] BLOCKDEV + +Check MINIX filesystem + + -l List all filenames + -r Perform interactive repairs + -a Perform automatic repairs + -v Verbose + -s Output superblock information + -m Show "mode not cleared" warnings + -f Force file system check + +=item B + +fsync [-d] FILE... + +Write files' buffered blocks to disk + + -d Avoid syncing metadata + +=item B + +ftpd [-wvS] [-t N] [-T N] [DIR] + +Anonymous FTP server + +ftpd should be used as an inetd service. +ftpd's line for inetd.conf: + 21 stream tcp nowait root ftpd ftpd /files/to/serve +It also can be ran from tcpsvd: + + tcpsvd -vE 0.0.0.0 21 ftpd /files/to/serve + + -w Allow upload + -v Log errors to stderr. -vv: verbose log + -S Log errors to syslog. -SS: verbose log + -t,-T Idle and absolute timeouts + DIR Change root to this directory + +=item B + +ftpget [OPTIONS] HOST [LOCAL_FILE] REMOTE_FILE + +Download a file via FTP + + -c,--continue Continue previous transfer + -v,--verbose Verbose + -u,--username USER Username + -p,--password PASS Password + -P,--port NUM Port + +=item B + +ftpput [OPTIONS] HOST [REMOTE_FILE] LOCAL_FILE + +Upload a file to a FTP server + + -v,--verbose Verbose + -u,--username USER Username + -p,--password PASS Password + -P,--port NUM Port + +=item B + +fuser [OPTIONS] FILE or PORT/PROTO + +Find processes which use FILEs or PORTs + + -m Find processes which use same fs as FILEs + -4,-6 Search only IPv4/IPv6 space + -s Don't display PIDs + -k Kill found processes + -SIGNAL Signal to send (default: KILL) + +=item B + +getopt [OPTIONS] [--] OPTSTRING PARAMS + + -a,--alternative Allow long options starting with single - + -l,--longoptions=LOPT[,...] Long options to be recognized + -n,--name=PROGNAME The name under which errors are reported + -o,--options=OPTSTRING Short options to be recognized + -q,--quiet Disable error reporting by getopt(3) + -Q,--quiet-output No normal output + -s,--shell=SHELL Set shell quoting conventions + -T,--test Test for getopt(1) version + -u,--unquoted Don't quote the output + +Example: + + +O=`getopt -l bb: -- ab:c:: "$@"` || exit 1 +eval set -- "$O" +while true; do + case "$1" in + -a) echo A; shift;; + -b|--bb) echo "B:'$2'"; shift 2;; + -c) case "$2" in + "") echo C; shift 2;; + *) echo "C:'$2'"; shift 2;; + esac;; + --) shift; break;; + *) echo Error; exit 1;; + esac +done + +=item B + +getty [OPTIONS] BAUD_RATE[,BAUD_RATE]... TTY [TERMTYPE] + +Open TTY, prompt for login name, then invoke /bin/login + + -h Enable hardware RTS/CTS flow control + -L Set CLOCAL (ignore Carrier Detect state) + -m Get baud rate from modem's CONNECT status message + -n Don't prompt for login name + -w Wait for CR or LF before sending /etc/issue + -i Don't display /etc/issue + -f ISSUE_FILE Display ISSUE_FILE instead of /etc/issue + -l LOGIN Invoke LOGIN instead of /bin/login + -t SEC Terminate after SEC if no login name is read + -I INITSTR Send INITSTR before anything else + -H HOST Log HOST into the utmp file as the hostname + +BAUD_RATE of 0 leaves it unchanged + +=item B + +grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]... + +Search for PATTERN in FILEs (or stdin) + + -H Add 'filename:' prefix + -h Do not add 'filename:' prefix + -n Add 'line_no:' prefix + -l Show only names of files that match + -L Show only names of files that don't match + -c Show only count of matching lines + -o Show only the matching part of line + -q Quiet. Return 0 if PATTERN is found, 1 otherwise + -v Select non-matching lines + -s Suppress open and read errors + -r Recurse + -i Ignore case + -w Match whole words only + -x Match whole lines only + -F PATTERN is a literal (not regexp) + -E PATTERN is an extended regexp + -m N Match up to N times per file + -A N Print N lines of trailing context + -B N Print N lines of leading context + -C N Same as '-A N -B N' + -e PTRN Pattern to match + -f FILE Read pattern from file + +=item B + +groups [USER] + +Print the group memberships of USER or for the current process + +=item B + +gunzip [-cft] [FILE]... + +Decompress FILEs (or stdin) + + -c Write to stdout + -f Force + -t Test file integrity + +=item B + +gzip [-cfd] [FILE]... + +Compress FILEs (or stdin) + + -d Decompress + -c Write to stdout + -f Force + +=item B + +halt [-d DELAY] [-n] [-f] [-w] + +Halt the system + + -d SEC Delay interval + -n Do not sync + -f Force (don't go through init) + -w Only write a wtmp record + +=item B + +hd FILE... + +hd is an alias for hexdump -C + +=item B + +hdparm [OPTIONS] [DEVICE] + + -a Get/set fs readahead + -A Set drive read-lookahead flag (0/1) + -b Get/set bus state (0 == off, 1 == on, 2 == tristate) + -B Set Advanced Power Management setting (1-255) + -c Get/set IDE 32-bit IO setting + -C Check IDE power mode status + -d Get/set using_dma flag + -D Enable/disable drive defect-mgmt + -f Flush buffer cache for device on exit + -g Display drive geometry + -h Display terse usage information + -i Display drive identification + -I Detailed/current information directly from drive + -k Get/set keep_settings_over_reset flag (0/1) + -K Set drive keep_features_over_reset flag (0/1) + -L Set drive doorlock (0/1) (removable harddisks only) + -m Get/set multiple sector count + -n Get/set ignore-write-errors flag (0/1) + -p Set PIO mode on IDE interface chipset (0,1,2,3,4,...) + -P Set drive prefetch count + -Q Get/set DMA tagged-queuing depth (if supported) + -r Get/set readonly flag (DANGEROUS to set) + -R Register an IDE interface (DANGEROUS) + -S Set standby (spindown) timeout + -t Perform device read timings + -T Perform cache read timings + -u Get/set unmaskirq flag (0/1) + -U Unregister an IDE interface (DANGEROUS) + -v Defaults; same as -mcudkrag for IDE drives + -V Display program version and exit immediately + -w Perform device reset (DANGEROUS) + -W Set drive write-caching flag (0/1) (DANGEROUS) + -x Tristate device for hotswap (0/1) (DANGEROUS) + -X Set IDE xfer mode (DANGEROUS) + -y Put IDE drive in standby mode + -Y Put IDE drive to sleep + -Z Disable Seagate auto-powersaving mode + -z Reread partition table + +=item B + +head [OPTIONS] [FILE]... + +Print first 10 lines of each FILE (or stdin) to stdout. +With more than one FILE, precede each with a filename header. + + -n N[kbm] Print first N lines + -c N[kbm] Print first N bytes + -q Never print headers + -v Always print headers + +N may be suffixed by k (x1024), b (x512), or m (x1024^2). + +=item B + +hexdump [-bcCdefnosvxR] [FILE]... + +Display FILEs (or stdin) in a user specified format + + -b One-byte octal display + -c One-byte character display + -C Canonical hex+ASCII, 16 bytes per line + -d Two-byte decimal display + -e FORMAT_STRING + -f FORMAT_FILE + -n LENGTH Interpret only LENGTH bytes of input + -o Two-byte octal display + -s OFFSET Skip OFFSET bytes + -v Display all input data + -x Two-byte hexadecimal display + -R Reverse of 'hexdump -Cv' + +=item B + +hostid + +Print out a unique 32-bit identifier for the machine + +=item B + +hostname [OPTIONS] [HOSTNAME | -F FILE] + +Get or set hostname or DNS domain name + + -s Short + -i Addresses for the hostname + -d DNS domain name + -f Fully qualified domain name + -F FILE Use FILE's content as hostname + +=item B + +httpd [-ifv[v]] [-c CONFFILE] [-p [IP:]PORT] [-u USER[:GRP]] [-r REALM] [-h HOME] +or httpd -d/-e/-m STRING + +Listen for incoming HTTP requests + + -i Inetd mode + -f Don't daemonize + -v[v] Verbose + -p [IP:]PORT Bind to IP:PORT (default *:80) + -u USER[:GRP] Set uid/gid after binding to port + -r REALM Authentication Realm for Basic Authentication + -h HOME Home directory (default .) + -c FILE Configuration file (default {/etc,HOME}/httpd.conf) + -m STRING MD5 crypt STRING + -e STRING HTML encode STRING + -d STRING URL decode STRING + +=item B + +hush [-nxl] [-c 'SCRIPT' [ARG0 [ARGS]] / FILE [ARGS]] + +Unix shell interpreter + +=item B + +hwclock [-r|--show] [-s|--hctosys] [-w|--systohc] [-t|--systz] [-l|--localtime] [-u|--utc] [-f|--rtc FILE] + +Query and set hardware clock (RTC) + + -r Show hardware clock time + -s Set system time from hardware clock + -w Set hardware clock from system time + -t Set in-kernel timezone, correct system time + if hardware clock is in local time + -u Assume hardware clock is kept in UTC + -l Assume hardware clock is kept in local time + -f FILE Use specified device (e.g. /dev/rtc2) + +=item B + +id [OPTIONS] [USER] + +Print information about USER or the current user + + -u User ID + -g Group ID + -G Supplementary group IDs + -n Print names instead of numbers + -r Print real ID instead of effective ID + +=item B + +ifconfig [-a] interface [address] + +Configure a network interface + + [add ADDRESS[/PREFIXLEN]] + [del ADDRESS[/PREFIXLEN]] + [[-]broadcast [ADDRESS]] [[-]pointopoint [ADDRESS]] + [netmask ADDRESS] [dstaddr ADDRESS] + [outfill NN] [keepalive NN] + [hw ether|infiniband ADDRESS] [metric NN] [mtu NN] + [[-]trailers] [[-]arp] [[-]allmulti] + [multicast] [[-]promisc] [txqueuelen NN] [[-]dynamic] + [mem_start NN] [io_addr NN] [irq NN] + [up|down] ... + +=item B + +ifdown [-anmvf] [-i FILE] IFACE... + + -a De/configure all interfaces automatically + -i FILE Use FILE for interface definitions + -n Print out what would happen, but don't do it + (note: doesn't disable mappings) + -m Don't run any mappings + -v Print out what would happen before doing it + -f Force de/configuration + +=item B + +ifenslave [-cdf] MASTER_IFACE SLAVE_IFACE... + +Configure network interfaces for parallel routing + + -c,--change-active Change active slave + -d,--detach Remove slave interface from bonding device + -f,--force Force, even if interface is not Ethernet + +=item B + +ifplugd [OPTIONS] + +Network interface plug detection daemon + + -n Don't daemonize + -s Don't log to syslog + -i IFACE Interface + -f/-F Treat link detection error as link down/link up + (otherwise exit on error) + -a Don't up interface at each link probe + -M Monitor creation/destruction of interface + (otherwise it must exist) + -r PROG Script to run + -x ARG Extra argument for script + -I Don't exit on nonzero exit code from script + -p Don't run script on daemon startup + -q Don't run script on daemon quit + -l Run script on startup even if no cable is detected + -t SECS Poll time in seconds + -u SECS Delay before running script after link up + -d SECS Delay after link down + -m MODE API mode (mii, priv, ethtool, wlan, iff, auto) + -k Kill running daemon + +=item B + +ifup [-anmvf] [-i FILE] IFACE... + + -a De/configure all interfaces automatically + -i FILE Use FILE for interface definitions + -n Print out what would happen, but don't do it + (note: doesn't disable mappings) + -m Don't run any mappings + -v Print out what would happen before doing it + -f Force de/configuration + +=item B + +inetd [-fe] [-q N] [-R N] [CONFFILE] + +Listen for network connections and launch programs + + -f Run in foreground + -e Log to stderr + -q N Socket listen queue (default: 128) + -R N Pause services after N connects/min + (default: 0 - disabled) + +=item B + +init + +Init is the parent of all processes + +=item B + +insmod [-qfwrsv] MODULE [symbol=value]... + + -r Remove MODULE (stacks) or do autoclean + -q Quiet + -v Verbose + -f Force + -w Wait for unload + -s Report via syslog instead of stderr + +=item B + +install [-cdDsp] [-o USER] [-g GRP] [-m MODE] [SOURCE]... DEST + +Copy files and set attributes + + -c Just copy (default) + -d Create directories + -D Create leading target directories + -s Strip symbol table + -p Preserve date + -o USER Set ownership + -g GRP Set group ownership + -m MODE Set permissions + +=item B + +ionice [-c 1-3] [-n 0-7] [-p PID] [PROG] + +Change I/O priority and class + + -c Class. 1:realtime 2:best-effort 3:idle + -n Priority + +=item B + +iostat [-c] [-d] [-t] [-z] [-k|-m] [ALL|BLOCKDEV...] [INTERVAL [COUNT]] + +Report CPU and I/O statistics + + -c Show CPU utilization + -d Show device utilization + -t Print current time + -z Omit devices with no activity + -k Use kb/s + -m Use Mb/s + +=item B + +ip [OPTIONS] {address | route | link | tunnel | rule} {COMMAND} + +ip [OPTIONS] OBJECT {COMMAND} +where OBJECT := {address | route | link | tunnel | rule} +OPTIONS := { -f[amily] { inet | inet6 | link } | -o[neline] } + +=item B + +ipaddr { {add|del} IFADDR dev STRING | {show|flush} + [dev STRING] [to PREFIX] } + +ipaddr {add|delete} IFADDR dev STRING +ipaddr {show|flush} [dev STRING] [scope SCOPE-ID] + [to PREFIX] [label PATTERN] + IFADDR := PREFIX | ADDR peer PREFIX + [broadcast ADDR] [anycast ADDR] + [label STRING] [scope SCOPE-ID] + SCOPE-ID := [host | link | global | NUMBER] + +=item B + +ipcalc [OPTIONS] ADDRESS[[/]NETMASK] [NETMASK] + +Calculate IP network settings from a IP address + + -b,--broadcast Display calculated broadcast address + -n,--network Display calculated network address + -m,--netmask Display default netmask for IP + -p,--prefix Display the prefix for IP/NETMASK + -h,--hostname Display first resolved host name + -s,--silent Don't ever display error messages + +=item B + +ipcrm [-MQS key] [-mqs id] + +Upper-case options MQS remove an object by shmkey value. +Lower-case options remove an object by shmid value. + + -mM Remove memory segment after last detach + -qQ Remove message queue + -sS Remove semaphore + +=item B + +ipcs [[-smq] -i shmid] | [[-asmq] [-tcplu]] + + -i Show specific resource +Resource specification: + + -m Shared memory segments + -q Message queues + -s Semaphore arrays + -a All (default) +Output format: + + -t Time + -c Creator + -p Pid + -l Limits + -u Summary + +=item B + +iplink { set DEVICE { up | down | arp { on | off } | show [DEVICE] } + +iplink set DEVICE { up | down | arp | multicast { on | off } | + dynamic { on | off } | + mtu MTU } +iplink show [DEVICE] + +=item B + +iproute { list | flush | add | del | change | append | + replace | test } ROUTE + +iproute { list | flush } SELECTOR +iproute get ADDRESS [from ADDRESS iif STRING] + [oif STRING] [tos TOS] +iproute { add | del | change | append | replace | test } ROUTE + SELECTOR := [root PREFIX] [match PREFIX] [proto RTPROTO] + ROUTE := [TYPE] PREFIX [tos TOS] [proto RTPROTO] [metric METRIC] + +=item B + +iprule {[list | add | del] RULE} + +iprule [list | add | del] SELECTOR ACTION + SELECTOR := [from PREFIX] [to PREFIX] [tos TOS] [fwmark FWMARK] + [dev STRING] [pref NUMBER] + ACTION := [table TABLE_ID] [nat ADDRESS] + [prohibit | reject | unreachable] + [realms [SRCREALM/]DSTREALM] + TABLE_ID := [local | main | default | NUMBER] + +=item B + +iptunnel { add | change | del | show } [NAME] + [mode { ipip | gre | sit }] + [remote ADDR] [local ADDR] [ttl TTL] + +iptunnel { add | change | del | show } [NAME] + [mode { ipip | gre | sit }] [remote ADDR] [local ADDR] + [[i|o]seq] [[i|o]key KEY] [[i|o]csum] + [ttl TTL] [tos TOS] [[no]pmtudisc] [dev PHYS_DEV] + +=item B + +kbd_mode [-a|k|s|u] [-C TTY] + +Report or set the keyboard mode + + -a Default (ASCII) + -k Medium-raw (keyboard) + -s Raw (scancode) + -u Unicode (utf-8) + -C TTY Affect TTY instead of /dev/tty + +=item B + +kill [-l] [-SIG] PID... + +Send a signal (default: TERM) to given PIDs + + -l List all signal names and numbers + +=item B + +killall [-l] [-q] [-SIG] PROCESS_NAME... + +Send a signal (default: TERM) to given processes + + -l List all signal names and numbers + -q Don't complain if no processes were killed + +=item B + +killall5 [-l] [-SIG] [-o PID]... + +Send a signal (default: TERM) to all processes outside current session + + -l List all signal names and numbers + -o PID Don't signal this PID + +=item B + +klogd [-c N] [-n] + +Kernel logger + + -c N Print to console messages more urgent than prio N (1-8) + -n Run in foreground + +=item B + +last [-HW] [-f FILE] + +Show listing of the last users that logged into the system + + -W Display with no host column truncation + -f FILE Read from FILE instead of /var/log/wtmp + +=item B + +less [-EMmNh~I?] [FILE]... + +View FILE (or stdin) one screenful at a time + + -E Quit once the end of a file is reached + -M,-m Display status line with line numbers + and percentage through the file + -N Prefix line number to each line + -I Ignore case in all searches + -~ Suppress ~s displayed past EOF + +=item B + +ln [OPTIONS] TARGET... LINK|DIR + +Create a link LINK or DIR/TARGET to the specified TARGET(s) + + -s Make symlinks instead of hardlinks + -f Remove existing destinations + -n Don't dereference symlinks - treat like normal file + -b Make a backup of the target (if exists) before link operation + -S suf Use suffix instead of ~ when making backup files + +=item B + +loadfont < font + +Load a console font from stdin + +=item B + +loadkmap < keymap + +Load a binary keyboard translation table from stdin + + +=item B + +logger [OPTIONS] [MESSAGE] + +Write MESSAGE (or stdin) to syslog + + -s Log to stderr as well as the system log + -t TAG Log using the specified tag (defaults to user name) + -p PRIO Priority (numeric or facility.level pair) + +=item B + +login [-p] [-h HOST] [[-f] USER] + +Begin a new session on the system + + -f Don't authenticate (user already authenticated) + -h Name of the remote host + -p Preserve environment + +=item B + +logname + +Print the name of the current user + +=item B + +logread [-f] + +Show messages in syslogd's circular buffer + + -f Output data as log grows + +=item B + +losetup [-r] [-o OFS] LOOPDEV FILE - associate loop devices + losetup -d LOOPDEV - disassociate + losetup [-f] - show + + -o OFS Start OFS bytes into FILE + -r Read-only + -f Show first free loop device + +=item B + +lpd SPOOLDIR [HELPER [ARGS]] + +SPOOLDIR must contain (symlinks to) device nodes or directories +with names matching print queue names. In the first case, jobs are +sent directly to the device. Otherwise each job is stored in queue +directory and HELPER program is called. Name of file to print +is passed in $DATAFILE variable. +Example: + + tcpsvd -E 0 515 softlimit -m 999999 lpd /var/spool ./print + +=item B + +lpq [-P queue[@host[:port]]] [-U USERNAME] [-d JOBID]... [-fs] + + -P lp service to connect to (else uses $PRINTER) + -d Delete jobs + -f Force any waiting job to be printed + -s Short display + +=item B + +lpr -P queue[@host[:port]] -U USERNAME -J TITLE -Vmh [FILE]... + + -P lp service to connect to (else uses $PRINTER) + -m Send mail on completion + -h Print banner page too + -V Verbose + +=item B + +ls [-1AaCxdLHRFplinsehrSXvctu] [-w WIDTH] [FILE]... + +List directory contents + + -1 One column output + -a Include entries which start with . + -A Like -a, but exclude . and .. + -C List by columns + -x List by lines + -d List directory entries instead of contents + -L Follow symlinks + -H Follow symlinks on command line + -R Recurse + -p Append / to dir entries + -F Append indicator (one of */=@|) to entries + -l Long listing format + -i List inode numbers + -n List numeric UIDs and GIDs instead of names + -s List allocated blocks + -e List full date and time + -h List sizes in human readable format (1K 243M 2G) + -r Sort in reverse order + -S Sort by size + -X Sort by extension + -v Sort by version + -c With -l: sort by ctime + -t With -l: sort by mtime + -u With -l: sort by atime + -w N Assume the terminal is N columns wide + --color[={always,never,auto}] Control coloring + +=item B + +lsattr [-Radlv] [FILE]... + +List file attributes on an ext2 fs + + -R Recurse + -a Don't hide entries starting with . + -d List directory entries instead of contents + -l List long flag names + -v List the file's version/generation number + +=item B + +lsmod [-qfwrsv] MODULE [symbol=value]... + + -r Remove MODULE (stacks) or do autoclean + -q Quiet + -v Verbose + -f Force + -w Wait for unload + -s Report via syslog instead of stderr + +=item B + +lsof + +Show all open files + +=item B + +lspci [-mk] + +List all PCI devices + + -m Parsable output + -k Show driver + +=item B + +lzcat FILE + +Decompress to stdout + +=item B + +lzma -d [-cf] [FILE]... + +Decompress FILE (or stdin) + + -d Decompress + -c Write to stdout + -f Force + +=item B + +lzop [-cfvd123456789CF] [FILE]... + + -1..9 Compression level + -d Decompress + -c Write to stdout + -f Force + -v Verbose + -F Don't store or verify checksum + -C Also write checksum of compressed block + +=item B + +lzopcat [-vCF] [FILE]... + + -v Verbose + -F Don't store or verify checksum + +=item B + +makedevs [-d device_table] rootdir + +Create a range of special files as specified in a device table. +Device table entries take the form of: + + +Where name is the file name, type can be one of: + f Regular file + d Directory + c Character device + b Block device + p Fifo (named pipe) +uid is the user id for the target file, gid is the group id for the +target file. The rest of the entries (major, minor, etc) apply to +to device special files. A '-' may be used for blank entries. + +=item B + +makemime [OPTIONS] [FILE]... + +Create multipart MIME-encoded message from FILEs + + -o FILE Output. Default: stdout + -a HDR Add header(s). Examples: + "From: user@host.org", "Date: `date -R`" + -c CT Content type. Default: application/octet-stream + -C CS Charset. Default: us-ascii + +Other options are silently ignored + +=item B + +man [-aw] [MANPAGE]... + +Format and display manual page + + -a Display all pages + -w Show page locations + +=item B + +md5sum [-c[sw]] [FILE]... + +Print or check MD5 checksums + + -c Check sums against list in FILEs + -s Don't output anything, status code shows success + -w Warn about improperly formatted checksum lines + +=item B + +mdev [-s] + +mdev -s is to be run during boot to scan /sys and populate /dev. + +Bare mdev is a kernel hotplug helper. To activate it: + echo /sbin/mdev >/proc/sys/kernel/hotplug + +It uses /etc/mdev.conf with lines + [-]DEVNAME UID:GID PERM [>|=PATH]|[!] [@|$|*PROG] +where DEVNAME is device name regex, @major,minor[-minor2], or +environment variable regex. A common use of the latter is +to load modules for hotplugged devices: + + $MODALIAS=.* 0:0 660 @modprobe "$MODALIAS" + +If /dev/mdev.seq file exists, mdev will wait for its value +to match $SEQNUM variable. This prevents plug/unplug races. +To activate this feature, create empty /dev/mdev.seq at boot. + +=item B + +mesg [y|n] + +Control write access to your terminal + y Allow write access to your terminal + n Disallow write access to your terminal + +=item B + +microcom [-d DELAY] [-t TIMEOUT] [-s SPEED] [-X] TTY + +Copy bytes for stdin to TTY and from TTY to stdout + + -d Wait up to DELAY ms for TTY output before sending every + next byte to it + -t Exit if both stdin and TTY are silent for TIMEOUT ms + -s Set serial line to SPEED + -X Disable special meaning of NUL and Ctrl-X from stdin + +=item B + +mkdir [OPTIONS] DIRECTORY... + +Create DIRECTORY + + -m MODE Mode + -p No error if exists; make parent directories as needed + +=item B + +mkdosfs [-v] [-n LABEL] BLOCKDEV [KBYTES] + +Make a FAT32 filesystem + + -v Verbose + -n LBL Volume label + +=item B + +mke2fs [-Fn] [-b BLK_SIZE] [-i INODE_RATIO] [-I INODE_SIZE] [-m RESERVED_PERCENT] [-L LABEL] BLOCKDEV [KBYTES] + + -b BLK_SIZE Block size, bytes + -F Force + -i RATIO Max number of files is filesystem_size / RATIO + -I BYTES Inode size (min 128) + -L LBL Volume label + -m PERCENT Percent of blocks to reserve for admin + -n Dry run + +=item B + +mkfifo [-m MODE] NAME + +Create named pipe + + -m MODE Mode (default a=rw) + +=item B + +mkfs.ext2 [-Fn] [-b BLK_SIZE] [-i INODE_RATIO] [-I INODE_SIZE] [-m RESERVED_PERCENT] [-L LABEL] BLOCKDEV [KBYTES] + + -b BLK_SIZE Block size, bytes + -F Force + -i RATIO Max number of files is filesystem_size / RATIO + -I BYTES Inode size (min 128) + -L LBL Volume label + -m PERCENT Percent of blocks to reserve for admin + -n Dry run + +=item B + +mkfs.minix [-c | -l FILE] [-nXX] [-iXX] BLOCKDEV [KBYTES] + +Make a MINIX filesystem + + -c Check device for bad blocks + -n [14|30] Maximum length of filenames + -i INODES Number of inodes for the filesystem + -l FILE Read bad blocks list from FILE + -v Make version 2 filesystem + +=item B + +mkfs.vfat [-v] [-n LABEL] BLOCKDEV [KBYTES] + +Make a FAT32 filesystem + + -v Verbose + -n LBL Volume label + +=item B + +mknod [-m MODE] NAME TYPE MAJOR MINOR + +Create a special file (block, character, or pipe) + + -m MODE Creation mode (default a=rw) +TYPE: + b Block device + c or u Character device + p Named pipe (MAJOR and MINOR are ignored) + +=item B + +mkpasswd [OPTIONS] [PASSWORD] [SALT] + +Crypt PASSWORD using crypt(3) + + -P,--password-fd=N Read password from fd N + -m,--method=TYPE Encryption method + -S,--salt=SALT + +=item B + +mkswap [-L LBL] BLOCKDEV [KBYTES] + +Prepare BLOCKDEV to be used as swap partition + + -L LBL Label + +=item B + +mktemp [-dt] [-p DIR] [TEMPLATE] + +Create a temporary file with name based on TEMPLATE and print its name. +TEMPLATE must end with XXXXXX (e.g. [/dir/]nameXXXXXX). +Without TEMPLATE, -t tmp.XXXXXX is assumed. + + -d Make directory, not file + -t Prepend base directory name to TEMPLATE + -p DIR Use DIR as a base directory (implies -t) + -u Do not create anything; print a name + +Base directory is: -p DIR, else $TMPDIR, else /tmp + +=item B + +modinfo [-adlp0] [-F keyword] MODULE + + -a Shortcut for '-F author' + -d Shortcut for '-F description' + -l Shortcut for '-F license' + -p Shortcut for '-F parm' + -F keyword Keyword to look for + -0 Separate output with NULs + +=item B + +modprobe [-qfwrsv] MODULE [symbol=value]... + + -r Remove MODULE (stacks) or do autoclean + -q Quiet + -v Verbose + -f Force + -w Wait for unload + -s Report via syslog instead of stderr + +=item B + +more [FILE]... + +View FILE (or stdin) one screenful at a time + +=item B + +mount [OPTIONS] [-o OPTS] DEVICE NODE + +Mount a filesystem. Filesystem autodetection requires /proc. + + -a Mount all filesystems in fstab + -f Dry run + -r Read-only mount + -w Read-write mount (default) + -t FSTYPE[,...] Filesystem type(s) + -O OPT Mount only filesystems with option OPT (-a only) +-o OPT: + loop Ignored (loop devices are autodetected) + [a]sync Writes are [a]synchronous + [no]atime Disable/enable updates to inode access times + [no]diratime Disable/enable atime updates to directories + [no]relatime Disable/enable atime updates relative to modification time + [no]dev (Dis)allow use of special device files + [no]exec (Dis)allow use of executable files + [no]suid (Dis)allow set-user-id-root programs + [r]shared Convert [recursively] to a shared subtree + [r]slave Convert [recursively] to a slave subtree + [r]private Convert [recursively] to a private subtree + [un]bindable Make mount point [un]able to be bind mounted + [r]bind Bind a file or directory [recursively] to another location + move Relocate an existing mount point + remount Remount a mounted filesystem, changing flags + ro/rw Same as -r/-w + +There are filesystem-specific -o flags. + +=item B + +mountpoint [-q] <[-dn] DIR | -x DEVICE> + +Check if the directory is a mountpoint + + -q Quiet + -d Print major/minor device number of the filesystem + -n Print device name of the filesystem + -x Print major/minor device number of the blockdevice + +=item B + +mpstat [-A] [-I SUM|CPU|ALL|SCPU] [-u] [-P num|ALL] [INTERVAL [COUNT]] + +Per-processor statistics + + -A Same as -I ALL -u -P ALL + -I SUM|CPU|ALL|SCPU Report interrupt statistics + -P num|ALL Processor to monitor + -u Report CPU utilization + +=item B + +mt [-f device] opcode value + +Control magnetic tape drive operation + +Available Opcodes: + + +bsf bsfm bsr bss datacompression drvbuffer eof eom erase +fsf fsfm fsr fss load lock mkpart nop offline ras1 ras2 +ras3 reset retension rewind rewoffline seek setblk setdensity +setpart tell unload unlock weof wset + +=item B + +mv [-fin] SOURCE DEST +or: mv [-fin] SOURCE... DIRECTORY + +Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY + + -f Don't prompt before overwriting + -i Interactive, prompt before overwrite + -n Don't overwrite an existing file + +=item B + +nameif [-s] [-c FILE] [IFNAME SELECTOR]... + +Rename network interface while it in the down state. +The device matched by SELECTOR is renamed to IFACE. +SELECTOR can be a combination of: + + driver=STRING + bus=STRING + phy_address=NUM + [mac=]XX:XX:XX:XX:XX:XX + + -c FILE Configuration file (default: /etc/mactab) + -s Log to syslog + +=item B + +nanddump [-o] [-b] [-s ADDR] [-f FILE] MTD_DEVICE + +Dump the specified MTD device + + -o Omit oob data + -b Omit bad block from the dump + -s ADDR Start address + -l LEN Length + -f FILE Dump to file ('-' for stdout) + +=item B + +nandwrite [-p] [-s ADDR] MTD_DEVICE [FILE] + +Write to the specified MTD device + + -p Pad to page size + -s ADDR Start address + +=item B + +nbd-client HOST PORT BLOCKDEV + +Connect to HOST and provide a network block device on BLOCKDEV + +=item B + +nc [-iN] [-wN] [-l] [-p PORT] [-f FILE|IPADDR PORT] [-e PROG] + +Open a pipe to IP:PORT or FILE + + -e PROG Run PROG after connect + -l Listen mode, for inbound connects + (use -l twice with -e for persistent server) + -p PORT Local port + -w SEC Timeout for connect + -i SEC Delay interval for lines sent + -f FILE Use file (ala /dev/ttyS0) instead of network + +=item B + +netstat [-ral] [-tuwx] [-enWp] + +Display networking information + + -r Routing table + -a All sockets + -l Listening sockets + Else: connected sockets + -t TCP sockets + -u UDP sockets + -w Raw sockets + -x Unix sockets + Else: all socket types + -e Other/more information + -n Don't resolve names + -W Wide display + -p Show PID/program name for sockets + +=item B + +nice [-n ADJUST] [PROG ARGS] + +Change scheduling priority, run PROG + + -n ADJUST Adjust priority by ADJUST + +=item B + +nmeter [-d MSEC] FORMAT_STRING + +Monitor system in real time + + -d MSEC Milliseconds between updates (default:1000) + +Format specifiers: + + %Nc or %[cN] CPU. N - bar size (default:10) + (displays: S:system U:user N:niced D:iowait I:irq i:softirq) + %[nINTERFACE] Network INTERFACE + %m Allocated memory + %[mf] Free memory + %[mt] Total memory + %s Allocated swap + %f Number of used file descriptors + %Ni Total/specific IRQ rate + %x Context switch rate + %p Forks + %[pn] # of processes + %b Block io + %Nt Time (with N decimal points) + %r Print instead of at EOL + +=item B + +nohup PROG ARGS + +Run PROG immune to hangups, with output to a non-tty + +=item B + +nslookup [HOST] [SERVER] + +Query the nameserver for the IP address of the given HOST +optionally using a specified DNS server + +=item B + +ntpd [-dnqNwl] [-S PROG] [-p PEER]... + +NTP client/server + + -d Verbose + -n Do not daemonize + -q Quit after clock is set + -N Run at high priority + -w Do not set time (only query peers), implies -n + -l Run as server on port 123 + -S PROG Run PROG after stepping time, stratum change, and every 11 mins + -p PEER Obtain time from PEER (may be repeated) + +=item B + +od [-abcdfhilovxs] [-t TYPE] [-A RADIX] [-N SIZE] [-j SKIP] [-S MINSTR] [-w WIDTH] [FILE...] + +Print FILEs (or stdin) unambiguously, as octal bytes by default + +=item B + +openvt [-c N] [-sw] [PROG ARGS] + +Start PROG on a new virtual terminal + + -c N Use specified VT + -s Switch to the VT + -w Wait for PROG to exit + +=item B + +passwd [OPTIONS] [USER] + +Change USER's password (default: current user) + + -a ALG Encryption method + -d Set password to '' + -l Lock (disable) account + -u Unlock (enable) account + +=item B + +patch [OPTIONS] [ORIGFILE [PATCHFILE]] + + -p,--strip N Strip N leading components from file names + -i,--input DIFF Read DIFF instead of stdin + -R,--reverse Reverse patch + -N,--forward Ignore already applied patches + -E,--remove-empty-files Remove output files if they become empty + +=item B + +pgrep [-flnovx] [-s SID|-P PPID|PATTERN] + +Display process(es) selected by regex PATTERN + + -l Show command name too + -f Match against entire command line + -n Show the newest process only + -o Show the oldest process only + -v Negate the match + -x Match whole name (not substring) + -s Match session ID (0 for current) + -P Match parent process ID + +=item B + +pidof [OPTIONS] [NAME]... + +List PIDs of all processes with names that match NAMEs + + -s Show only one PID + -o PID Omit given pid + Use %PPID to omit pid of pidof's parent + +=item B + +ping [OPTIONS] HOST + +Send ICMP ECHO_REQUEST packets to network hosts + + -4,-6 Force IP or IPv6 name resolution + -c CNT Send only CNT pings + -s SIZE Send SIZE data bytes in packets (default:56) + -t TTL Set TTL + -I IFACE/IP Use interface or IP address as source + -W SEC Seconds to wait for the first response (default:10) + (after all -c CNT packets are sent) + -w SEC Seconds until ping exits (default:infinite) + (can exit earlier with -c CNT) + -q Quiet, only displays output at start + and when finished + +=item B + +ping6 [OPTIONS] HOST + +Send ICMP ECHO_REQUEST packets to network hosts + + -c CNT Send only CNT pings + -s SIZE Send SIZE data bytes in packets (default:56) + -I IFACE/IP Use interface or IP address as source + -q Quiet, only displays output at start + and when finished + +=item B + +pivot_root NEW_ROOT PUT_OLD + +Move the current root file system to PUT_OLD and make NEW_ROOT +the new root file system + +=item B + +pkill [-l|-SIGNAL] [-fnovx] [-s SID|-P PPID|PATTERN] + +Send a signal to process(es) selected by regex PATTERN + + -l List all signals + -f Match against entire command line + -n Signal the newest process only + -o Signal the oldest process only + -v Negate the match + -x Match whole name (not substring) + -s Match session ID (0 for current) + -P Match parent process ID + +=item B + +pmap [-xq] PID + +Display detailed process memory usage + + -x Show details + -q Quiet + +=item B + +popmaildir [OPTIONS] MAILDIR [CONN_HELPER ARGS] + +Fetch content of remote mailbox to local maildir + + -s Skip authorization + -T Get messages with TOP instead of RETR + -k Keep retrieved messages on the server + -t SEC Network timeout + -F "PROG ARGS" Filter program (may be repeated) + -M "PROG ARGS" Delivery program + +Fetch from plain POP3 server: +popmaildir -k DIR nc pop3.server.com 110 + +poweroff [-d DELAY] [-n] [-f] + +Halt and shut off power + + -d SEC Delay interval + -n Do not sync + -f Force (don't go through init) + +=item B + +powertop + +Analyze power consumption on Intel-based laptops + + +=item B + +printenv [VARIABLE]... + +Print environment VARIABLEs. +If no VARIABLE specified, print all. + +=item B + +printf FORMAT [ARG]... + +Format and print ARG(s) according to FORMAT (a-la C printf) + +=item B + +ps [-o COL1,COL2=HEADER] [-T] + +Show list of processes + + -o COL1,COL2=HEADER Select columns for display + -T Show threads + +=item B + +pscan [-cb] [-p MIN_PORT] [-P MAX_PORT] [-t TIMEOUT] [-T MIN_RTT] HOST + +Scan a host, print all open ports + + -c Show closed ports too + -b Show blocked ports too + -p Scan from this port (default 1) + -P Scan up to this port (default 1024) + -t Timeout (default 5000 ms) + -T Minimum rtt (default 5 ms, increase for congested hosts) + +=item B + +pstree [-p] [PID|USER] + +Display process tree, optionally start from USER or PID + + -p Show pids + +=item B + +pwd + +Print the full filename of the current working directory + +=item B + +pwdx PID... + +Show current directory for PIDs + + +=item B + +raidautorun DEVICE + +Tell the kernel to automatically search and start RAID arrays + +=item B + +rdate [-sp] HOST + +Get and possibly set the system date and time from a remote HOST + + -s Set the system date and time (default) + -p Print the date and time + +=item B + +rdev + +Print the device node associated with the filesystem mounted at '/' + +=item B + +readahead [FILE]... + +Preload FILEs to RAM + +=item B + +readlink [-fnv] FILE + +Display the value of a symlink + + -f Canonicalize by following all symlinks + -n Don't add newline + -v Verbose + +=item B + +readprofile [OPTIONS] + + -m mapfile (Default: /boot/System.map) + -p profile (Default: /proc/profile) + -M NUM Set the profiling multiplier to NUM + -i Print only info about the sampling step + -v Verbose + -a Print all symbols, even if count is 0 + -b Print individual histogram-bin counts + -s Print individual counters within functions + -r Reset all the counters (root only) + -n Disable byte order auto-detection + +=item B + +realpath FILE... + +Return the absolute pathnames of given FILE + +=item B + +reboot [-d DELAY] [-n] [-f] + +Reboot the system + + -d SEC Delay interval + -n Do not sync + -f Force (don't go through init) + +=item B + +reformime [OPTIONS] + +Parse MIME-encoded message on stdin + + -x PREFIX Extract content of MIME sections to files + -X PROG ARGS Filter content of MIME sections through PROG + Must be the last option + +Other options are silently ignored + +=item B + +remove-shell SHELL... + +Remove SHELLs from /etc/shells + +=item B + +renice {{-n INCREMENT} | PRIORITY} [[-p | -g | -u] ID...] + +Change scheduling priority for a running process + + -n Adjust current nice value (smaller is faster) + -p Process id(s) (default) + -g Process group id(s) + -u Process user name(s) and/or id(s) + +=item B + +reset + +Reset the screen + +=item B + +resize + +Resize the screen + +=item B + +rev [FILE]... + +Reverse lines of FILE + +=item B + +rm [-irf] FILE... + +Remove (unlink) FILEs + + -i Always prompt before removing + -f Never prompt + -R,-r Recurse + +=item B + +rmdir [OPTIONS] DIRECTORY... + +Remove DIRECTORY if it is empty + + -p|--parents Include parents + --ignore-fail-on-non-empty + +=item B + +rmmod [-qfwrsv] MODULE [symbol=value]... + + -r Remove MODULE (stacks) or do autoclean + -q Quiet + -v Verbose + -f Force + -w Wait for unload + -s Report via syslog instead of stderr + +=item B + +route [{add|del|delete}] + +Edit kernel routing tables + + -n Don't resolve names + -e Display other/more information + -A inet{6} Select address family + +=item B + +rpm -i PACKAGE.rpm; rpm -qp[ildc] PACKAGE.rpm + +Manipulate RPM packages + +Commands: + + -i Install package + -qp Query package + -i Show information + -l List contents + -d List documents + -c List config files + +=item B + +rpm2cpio package.rpm + +Output a cpio archive of the rpm file + +=item B + +rtcwake [-a | -l | -u] [-d DEV] [-m MODE] [-s SEC | -t TIME] + +Enter a system sleep state until specified wakeup time + + -a,--auto Read clock mode from adjtime + -l,--local Clock is set to local time + -u,--utc Clock is set to UTC time + -d,--device=DEV Specify the RTC device + -m,--mode=MODE Set the sleep state (default: standby) + -s,--seconds=SEC Set the timeout in SEC seconds from now + -t,--time=TIME Set the timeout to TIME seconds from epoch + +=item B + +run-parts [-t] [-l] [-a ARG] [-u MASK] DIRECTORY + +Run a bunch of scripts in DIRECTORY + + -t Print what would be run, but don't actually run anything + -a ARG Pass ARG as argument for every program + -u MASK Set the umask to MASK before running every program + -l Print names of all matching files even if they are not executable + +=item B + +runlevel [FILE] + +Find the current and previous system runlevel + +If no utmp FILE exists or if no runlevel record can be found, +print "unknown" + +=item B + +runsv DIR + +Start and monitor a service and optionally an appendant log service + +=item B + +runsvdir [-P] [-s SCRIPT] DIR + +Start a runsv process for each subdirectory. If it exits, restart it. + + -P Put each runsv in a new session + -s SCRIPT Run SCRIPT after signal is processed + +=item B + +rx FILE + +Receive a file using the xmodem protocol + +=item B