Skip to content

The Monster Manual II

Hubert Tournier edited this page May 31, 2021 · 1 revision

This page lists non-POSIX commands available in modern FreeBSD, along with the short description provided by the whatis(1) command, links to manual pages, FreeBSD source code, number of Single Lines of Code (without comments), languages identified, and eventual Jargon file or Wikipedia entry..

We also made a selection of commands that would be interesting to reimplement, though it's by no means a limitation to your creativity :-)

FreeBSD /bin commands

FreeBSD /bin commands selected for reimplementation

Command Whatis man src SLOC Languages Other Comments
domainname set or print name of current YP/NIS domain freebsd(1) src 40 C
getfacl get ACL information freebsd(1) src 229 C
hostname set or print name of current host system freebsd(1) src 58 C
realpath return resolved physical path freebsd(1) src 40 C
setfacl set ACL information freebsd(1) src 764 C
uuidgen generate universally unique identifiers freebsd(1) src 76 C

Other FreeBSD /bin commands

Command Whatis man src SLOC Languages Other Comments
chflags change file flags freebsd(1) src 173 C, Bash Non portable
chio medium changer control utility freebsd(1) src 777 C Non portable
csh C shell with file name completion and command line editing freebsd(1) src 147 C Other shell
freebsd-version freebsd-version(1) - print the version and patch level of the installed system freebsd(1) src 0 Non portable
kenv dump or modify the kernel environment freebsd(1) src 140 C Non portable
pgrep find or signal processes by name freebsd(1) Multi process
pkill find or signal processes by name freebsd(1) src 1484 Bash, C Multi process
pwait wait for processes to terminate freebsd(1) src 357 Bash, C Multi process
red text editor freebsd(1) Editor
rmail handle remote mail received via uucp freebsd(8) src 0 UUCP
sync force completion of pending disk writes (flush cache) freebsd(8) src 14 C jargon System
tcsh C shell with file name completion and command line editing freebsd(1) src 40933 C, Tcsh, EmacsLisp Other shell

FreeBSD /usr/bin commands

FreeBSD /usr/bin commands selected for reimplementation

Command Whatis man src SLOC Languages Other Comments
apply apply a command to a set of arguments freebsd(1) src 156 C, Bash
apropos search manual page databases freebsd(1)
banner print large banner on printer freebsd(6) src 1086 C jargon
caesar decrypt caesar ciphers freebsd(6) src 77 C, Bash
col filter reverse line feeds from input freebsd(1) src 484 C, Bash
colrm remove columns from a file freebsd(1) src 84 C
column columnate lists freebsd(1) src 242 C
cpio copy files to and from archives src 13 Bash
dc dc freebsd(1) src 2124 C, Bash
dialog display dialog boxes from shell scripts freebsd(1) src 16721 C, Perl, Python, Bash
egrep file pattern searcher freebsd(1)
factor factor a number, generate primes freebsd(6) src 240 C jargon
fetch retrieve a file by Uniform Resource Locator freebsd(1) src 837 C
fgrep file pattern searcher freebsd(1)
fmt simple text formatter freebsd(1) src 386 C
fortune print a random, hopefully interesting, adage freebsd(6) src 1329 C, Python
getopt parse command options freebsd(1) src 31 C
hd ASCII, decimal, hexadecimal, octal dump freebsd(1)
hexdump ASCII, decimal, hexadecimal, octal dump src 1418 C, Bash
ident identify RCS keyword string in files freebsd(1) src 169 C, Bash
install install binaries freebsd(1)
jot print sequential or random data freebsd(1) src 443 C, Bash
less opposite of more freebsd(1) src 122 C, Bash
locate find filenames quickly freebsd(1) src 859 C, Bash
look display lines beginning with a given string freebsd(1) src 185 C
makewhatis index UNIX manuals freebsd(8)
manpath display search path for manual pages freebsd(1)
morse reformat input as morse code freebsd(6) src 335 C
nawk pattern-directed scanning and processing language freebsd(1)
nc arbitrary TCP and UDP connections and listens freebsd(1) src 0
ncal displays a calendar and the date of Easter freebsd(1) src 803 C, Bash
number convert Arabic numerals to English freebsd(6) src 176 C
pom display the phase of the moon freebsd(6) src 153 C
primes factor a number, generate primes freebsd(6) src 1160 C
printenv print out the environment freebsd(1) src 48 C
random random lines from a file or random numbers freebsd(6) src 296 C jargon
rev reverse lines of a file freebsd(1) src 62 C
rgrep file pattern searcher freebsd(1)
rot13 decrypt caesar ciphers freebsd(6) jargon
script make typescript of terminal session freebsd(1) src 402 C
sdiff side-by-side diff freebsd(1) src 898 C, Bash
seq print sequences of numbers freebsd(1) src 318 C, Bash
shar create a shell archive of files freebsd(1) src 33 Bash
strfile create a random access file for storing strings freebsd(8)
sum display file checksums and block counts freebsd(1)
tar manipulate tape archives src 13 Bash
timeout run a command with a time limit freebsd(1) src 391 C, Bash
truncate truncate or extend the length of files freebsd(1) src 359 Bash, C
units conversion calculator freebsd(1) src 643 C, Bash
whatis search manual page databases freebsd(1)
whereis locate programs freebsd(1) src 457 C
which locate a program file in the user's path freebsd(1) src 83 C
xo emit formatted output based on format string and arguments freebsd(1) src 30 Bash
yes be repetitively affirmative freebsd(1) src 40 C

Other FreeBSD /usr/bin commands

Command Whatis man src SLOC Languages Other Comments
CC
Mail
addr2line src 0
asn1_compile
atq queue, examine or delete jobs for later execution freebsd(1)
atrm queue, examine or delete jobs for later execution freebsd(1)
b64decode encode/decode a binary file freebsd(1)
b64encode encode/decode a binary file freebsd(1)
backlight configure backlight hardware freebsd(8) src 163 C
biff be notified if mail arrives and who it is from freebsd(1) src 60 C jargon
brandelf mark an ELF binary for a specific ABI freebsd(1) src 151 C
bsdcat src 13 Bash
bsdcpio
bsdiff generate a patch between two binary files freebsd(1) src 505 C
bsdtar
bsnmpget simple tools for querying SNMP agents freebsd(1)
bsnmpset simple tools for querying SNMP agents freebsd(1)
bsnmpwalk simple tools for querying SNMP agents freebsd(1)
bspatch apply a patch built with bsdiff 1 freebsd(1)
bthost look up Bluetooth host names and Protocol Service Multiplexor values freebsd(1)
btsockstat show Bluetooth sockets information freebsd(1)
bunzip2 a block-sorting file compressor, v1.0.8 bzcat - decompresses files to stdout bzip2recover - recovers data from damaged bzip2 files freebsd(1)
byacc an LALR(1) parser generator freebsd(1) src 84795 C, Bash
bzcat a block-sorting file compressor, v1.0.8 bzcat - decompresses files to stdout bzip2recover - recovers data from damaged bzip2 files freebsd(1)
bzegrep grep compressed files freebsd(1)
bzfgrep grep compressed files freebsd(1)
bzgrep grep compressed files freebsd(1)
bzip2 a block-sorting file compressor, v1.0.8 bzcat - decompresses files to stdout bzip2recover - recovers data from damaged bzip2 files freebsd(1) src 0
bzip2recover a block-sorting file compressor, v1.0.8 bzcat - decompresses files to stdout bzip2recover - recovers data from damaged bzip2 files freebsd(1) src 0
bzless
c++
c++filt
c89 POSIX.2 C language compiler freebsd(1) src 46 C
calendar reminder service freebsd(1) src 2667 C, Bash
cap_mkdb create capability database freebsd(1) src 149 C
cc
chat Automated conversational script with a modem freebsd(8) src 978 C
chfn add or change user database information freebsd(1)
chkey change your encryption key freebsd(1) src 177 C
chpass add or change user database information freebsd(1) src 704 C
chsh add or change user database information freebsd(1)
clang src 1 Bash
clang++
clang-cpp clang, c++, cc, CC, clang++, clang-cpp, cpp(1) - the Clang C, C++, and Objective-C compiler freebsd(1)
clang-tblgen
clear terminal capability interface
compile_et error table compiler freebsd(1) src 0
cpp clang, c++, cc, CC, clang++, clang-cpp, cpp(1) - the Clang C, C++, and Objective-C compiler freebsd(1)
cpuset configure processor sets freebsd(1) src 332 C
crunchgen generates build environment for a crunched binary freebsd(1)
crunchide hides symbol names from ld, for crunching programs together freebsd(1)
crypt
ctfconvert convert debug data to CTF data freebsd(1)
ctfdump dump the SUNW_ctf section of an ELF file freebsd(1)
ctfmerge merge several CTF data sections into one freebsd(1)
ctlstat CAM Target Layer statistics utility freebsd(8) src 555 C
cu call UNIX freebsd(1)
diff3 compare three files line by line freebsd(1) src 520 C, Bash
dpv stream data from stdin or multiple paths with dialog progress view freebsd(1) src 365 C
drill get (debug) information out of DNS(SEC) freebsd(1) src 0
dtc device tree compiler freebsd(1) src 3221 C++
edit easy editor freebsd(1)
ee easy editor freebsd(1) src 0
elfctl change an ELF binary's feature control note freebsd(1) src 288 C
elfdump display information about ELF files freebsd(1) src 989 C
enigma very simple file encryption freebsd(1) src 112 C
etdump Dump El Torito boot catalog information from ISO images freebsd(1, 8) src 261 C
file2c convert file to c-source freebsd(1) src 79 C, Bash
finger user information lookup program freebsd(1) src 1066 C jargon
flex fast lexical analyzer generator freebsd(1) src 6254 C, Bash
flex++
from print names of those who have sent mail freebsd(1) src 106 C
fstat identify active files freebsd(1) src 740 C
fsync synchronize a file's in-core state with that on disk freebsd(1) src 35 C
ftp src 135 C
gate-ftp ftp, gate-ftp, pftp(1) - Internet file transfer program freebsd(1)
gcore get core images of running process freebsd(1) src 857 C
gcov llvm-cov, gcov(1) - emit coverage information freebsd(1)
getaddrinfo resolve names to socket addresses freebsd(1) src 228 C, Awk
getent get entries from administrative database freebsd(1) src 489 C
gprof src 2017 C
grdc grand digital clock (curses) freebsd(6) src 185 C
groups show group memberships freebsd(1)
gunzip compression/decompression tool using Lempel-Ziv coding (LZ77) freebsd(1)
gzcat compression/decompression tool using Lempel-Ziv coding (LZ77) freebsd(1)
gzexe create auto-decompressing executables freebsd(1)
gzip compression/decompression tool using Lempel-Ziv coding (LZ77) freebsd(1) src 2753 C
host DNS lookup utility src 0
hxtool
ibstat open InfiniBand diagnostics
ibv_asyncwatch display asynchronous events freebsd(1)
ibv_devices list RDMA devices freebsd(1)
ibv_devinfo query RDMA devices freebsd(1)
ibv_rc_pingpong simple InfiniBand RC transport test freebsd(1)
ibv_srq_pingpong simple InfiniBand shared receive queue test freebsd(1)
ibv_uc_pingpong simple InfiniBand UC transport test freebsd(1)
ibv_ud_pingpong simple InfiniBand UD transport test freebsd(1)
indent indent and format C program source freebsd(1) src 2464 C, Bash, Prolog
iscsictl iSCSI initiator management utility freebsd(8) src 960 C
kadmin Kerberos administration utility freebsd(8)
kcc
kdestroy remove one credential or destroy the current ticket file freebsd(1)
kdump display kernel trace data freebsd(1) src 1855 C
keylogin decrypt and store secret key freebsd(1) src 35 C
keylogout delete stored secret key freebsd(1) src 20 C
kf securely forward tickets freebsd(1)
kgetcred get a ticket for a particular service freebsd(1)
killall kill processes by name freebsd(1) src 347 C
kinit acquire initial tickets freebsd(1)
klist list Kerberos credentials freebsd(1)
kpasswd Kerberos 5 password changing program freebsd(1)
krb5-config krb5-config(1) - give information on how to link code against Heimdal libraries freebsd(1)
ksu
kswitch switch between default credential caches freebsd(1, SECTION)
ktrace src 235 C
ktrdump print kernel ktr trace buffer freebsd(8) src 286 C
kyua Testing framework for infrastructure software freebsd(1) src 0
lam laminate files freebsd(1) src 165 C
last indicate last logins of users and ttys freebsd(1) src 415 C
lastcomm show last commands executed freebsd(1) src 379 C, Bash
ld The GNU linker freebsd(1)
ld.lld ELF linker from the LLVM project freebsd(1)
ldd list dynamic object dependencies freebsd(1) src 327 C
ldd32 list dynamic object dependencies freebsd(1) src 0
leave remind you when you have to leave freebsd(1) src 113 C
lessecho expand metacharacters freebsd(1) src 0
lesskey specify key bindings for less freebsd(1) src 0
lesspipe.sh
lex++
limits set or display process resource limits freebsd(1) src 574 C, Bash
lldb LLDB Documentation freebsd(1)
lldb-tblgen
llvm-addr2line llvm-addr2line(1) - a drop-in replacement for addr2line freebsd(1)
llvm-ar llvm-ar(1) - LLVM archiver freebsd(1)
llvm-cov
llvm-cxxfilt
llvm-nm llvm-nm(1) - list LLVM bitcode and object file's symbol table freebsd(1)
llvm-objdump llvm-objdump(1) - LLVM object file dumper freebsd(1)
llvm-profdata llvm-profdata(1) - Profile data tool freebsd(1)
llvm-ranlib llvm-ranlib(1) - generates an archive index freebsd(1)
llvm-symbolizer llvm-symbolizer(1) - convert addresses into source code locations freebsd(1)
llvm-tblgen llvm-tblgen, tblgen(1) - Target Description To C++ Code Generator freebsd(1)
lock reserve a terminal freebsd(1) src 205 C
lockf execute a command while holding a file lock freebsd(1) src 129 C
login log into the computer freebsd(1) src 780 C
logins display account information freebsd(1) src 278 C
lorder list dependencies for object files freebsd(1) src 30 Bash
lpq
lpr src 8839 C, Bash
lprm
lsvfs list installed virtual file systems freebsd(1) src 68 C
lzcat Compress or decompress .xz and .lzma files freebsd(1)
lzdec
lzegrep grep compressed files freebsd(1)
lzfgrep grep compressed files freebsd(1)
lzgrep grep compressed files freebsd(1)
lzless
lzma Compress or decompress .xz and .lzma files freebsd(1)
lzmainfo show information stored in the .lzma file header freebsd(1) src 0
mail src 5672 C
mailq print the mail queue freebsd(1)
make-roken
mandoc format manual pages freebsd(1) src 0
mckey RDMA CM multicast setup and simple data transfer test. freebsd(1)
minigzip minimal implementation of the 'gzip' compression tool freebsd(1) src 0
ministat statistics utility freebsd(1) src 535 C
mkcsmapper generates hashed conversion data for iconv 3 freebsd(1) src 10 C
mkdep construct Makefile dependency list freebsd(1) src 88 Bash
mkesdb generates conversion catalog for iconv 3 freebsd(1) src 8 C
mkimg utility to make disk images freebsd(1) src 3249 C, Bash
mkstr create an error message file by massaging C source freebsd(1) src 210 C
mktemp make temporary file name (unique) freebsd(1) src 87 C
mkuzip compress disk image for use with geom_uzip 4 class freebsd(8) src 967 C
msgs system messages and junk mail program freebsd(1) src 611 C
mt magnetic tape manipulating program freebsd(1) src 1138 C
netstat show network status and statistics freebsd(1) src 6065 C
newaliases rebuild the data base for the mail aliases file freebsd(1)
newkey create a new key in the publickey database freebsd(8) src 432 C
nex text editors freebsd(1)
nfsstat display NFS statistics freebsd(1) src 835 C
ntpq standard NTP query program freebsd(8)
nvi text editors freebsd(1) src 26920 C, Awk
nview text editors freebsd(1)
objcopy src 0
openssl
opieinfo Extract sequence number and seed for future OPIE challenges. freebsd(1) src 0
opiekey opiekey, otp-md4, otp-md5, otp-sha1(1) - Programs for computing responses to OTP challenges. freebsd(1) src 0
opiepasswd Change or set a user's password for the OPIE authentication system. freebsd(1) src 0
otp-md4 opiekey, otp-md4, otp-md5, otp-sha1(1) - Programs for computing responses to OTP challenges. freebsd(1)
otp-md5 opiekey, otp-md4, otp-md5, otp-sha1(1) - Programs for computing responses to OTP challenges. freebsd(1)
otp-sha1 opiekey, otp-md4, otp-md5, otp-sha1(1) - Programs for computing responses to OTP challenges. freebsd(1)
pagesize print system page size freebsd(1) src 2 Bash
pargs get detailed process information freebsd(1)
passwd src 96 C
penv get detailed process information freebsd(1)
perror src 29 C
pftp ftp, gate-ftp, pftp(1) - Internet file transfer program freebsd(1)
pgrep find or signal processes by name freebsd(1)
pkill find or signal processes by name freebsd(1) src 1484 Bash, C
pmcstudy Perform various studies on a system's overall PMCs freebsd(8) src 2587 C
posixshmcontrol Control POSIX shared memory segments freebsd(1) src 401 C
proccontrol Control some process execution aspects freebsd(1) src 301 C
procstat get detailed process information freebsd(1) src 2284 C, Bash
protect protect processes from being killed when swap space is exhausted freebsd(1) src 75 C
pwdx get detailed process information freebsd(1)
quota display disk usage and limits freebsd(1) src 485 C
ranlib generate an index to an archive freebsd(1)
rctl display and update resource limits database freebsd(8) src 452 C
readelf src 0
readlink
ree easy editor freebsd(1)
reset terminal initialization freebsd(1)
resizewin update terminal size freebsd(1) src 88 C
revoke revoke a character device freebsd(1) src 20 C
rfcomm_sppd RFCOMM Serial Port Profile daemon freebsd(1)
rpcgen an RPC protocol compiler freebsd(1) src 4076 C
rpcinfo report RPC information freebsd(8) src 1222 C
rping RDMA CM connection and RDMA ping-pong test. freebsd(1)
rs reshape a data array freebsd(1) src 535 C, Bash
rup remote status display freebsd(1) src 150 C
ruptime show host status of local machines freebsd(1) src 223 C
rusers who is logged in to machines on local network freebsd(1) src 164 C
rwall send a message to users logged on a host freebsd(1) src 91 C
rwho who is logged in on local machines freebsd(1) src 168 C
scp secure copy (remote file copy program) freebsd(1)
sftp secure file transfer program freebsd(1)
showmount show remote nfs mounts on host freebsd(8) src 292 C
size src 0
slc
slogin OpenSSH SSH client (remote login program) freebsd(1)
smbutil interface to the SMB requester freebsd(1) src 0
sockstat list open sockets freebsd(1) src 1148 C
soelim src 165 C, Bash
sscop SSCOP transport protocol freebsd(1)
ssh
ssh-add ssh-add(1) - adds private key identities to the authentication agent freebsd(1)
ssh-agent ssh-agent(1) - authentication agent freebsd(1)
ssh-copy-id ssh-copy-id(1) - copy public keys to a remote host freebsd(1) src 56 Bash
ssh-keygen ssh-keygen(1) - authentication key generation, management and conversion freebsd(1)
ssh-keyscan ssh-keyscan(1) - gather SSH public keys freebsd(1)
stat src 963 C, Bash
stdbuf change standard streams initial buffering freebsd(1) src 64 C
string2key map a password into a key freebsd(8)
su substitute user identity freebsd(1) src 426 C
svnlite Subversion command line client tool freebsd(1)
svnliteadmin
svnlitebench
svnlitedumpfilter
svnlitefsfs
svnlitelook
svnlitemucc
svnliterdump
svnliteserve
svnlitesync
svnliteversion
systat display system statistics freebsd(1) src 4795 C
tcopy copy and/or verify mag tapes freebsd(1) src 233 C
telnet user interface to the TELNET protocol freebsd(1) src 0
tftp trivial file transfer program freebsd(1) src 878 C
tip connect to a remote system freebsd(1) src 3889 C
top display and update information about the top cpu processes freebsd(1) src 3224 C
truss trace system calls freebsd(1) src 3263 C
tset terminal initialization freebsd(1) src 738 C
ucmatose RDMA CM connection and simple ping-pong test. freebsd(1)
udaddy RDMA CM datagram setup and simple ping-pong test. freebsd(1)
ul do underlining freebsd(1) src 424 C
unifdef remove preprocessor conditionals from code freebsd(1) src 1145 C, Bash
unifdefall remove preprocessor conditionals from code freebsd(1)
unlzma Compress or decompress .xz and .lzma files freebsd(1)
unstr create a random access file for storing strings freebsd(8)
unvis revert a visual representation of data back to original form freebsd(1) src 0
unxz Compress or decompress .xz and .lzma files freebsd(1)
unzip extract files from a ZIP archive freebsd(1) src 637 C
unzstd
uptime show how long system has been running freebsd(1) jargon
usbhidaction perform actions according to USB HID controls freebsd(1) src 386 C
usbhidctl manipulate USB HID devices freebsd(1) src 412 C
users list current users freebsd(1) src 32 C++
vacation E-mail auto-responder freebsd(1) src 0
verify_krb5_conf checks krb5.conf for obvious errors freebsd(8)
view text editors freebsd(1)
vis display non-printable characters in a visual format freebsd(1) src 0
vmstat report virtual memory statistics freebsd(8) src 1309 C
vtfontcvt convert font files for use by the video console freebsd(8) src 800 C
w display who is logged in and what they are doing freebsd(1) src 519 C
wall write a message to users freebsd(1) src 295 C jargon
whoami display effective user id freebsd(1)
whois Internet domain name and network number directory service freebsd(1) src 419 C
xstr extract strings from C programs to implement shared strings freebsd(1) src 343 C
xz Compress or decompress .xz and .lzma files freebsd(1) src 0
xzcat Compress or decompress .xz and .lzma files freebsd(1)
xzdec Small .xz and .lzma decompressors freebsd(1) src 0
xzdiff compare compressed files freebsd(1)
xzegrep grep compressed files freebsd(1)
xzfgrep grep compressed files freebsd(1)
xzgrep grep compressed files freebsd(1)
xzless
ypcat print the values of all keys in a NIS database freebsd(1) src 78 C
ypchfn add or change user database information freebsd(1)
ypchpass add or change user database information freebsd(1)
ypchsh add or change user database information freebsd(1)
ypmatch print the values of one or more keys in a NIS database freebsd(1) src 77 C
yppasswd modify a user's password freebsd(1)
ypwhich return hostname of NIS server of map master freebsd(1) src 182 C
zcmp compare compressed files freebsd(1)
zdiff compare compressed files freebsd(1)
zegrep grep compressed files freebsd(1)
zfgrep grep compressed files freebsd(1)
zforce force gzip files to have a .gz suffix freebsd(1)
zgrep grep compressed files freebsd(1)
zinject ZFS Fault Injector freebsd(8)
zless view compressed files freebsd(1)
zmore view compressed files freebsd(1)
znew convert compressed files to gzipped files freebsd(1)
zstd src 0
zstdcat
zstdegrep grep compressed files freebsd(1)
zstdfgrep grep compressed files freebsd(1)
zstdgrep print lines matching a pattern in zstandard-compressed files freebsd(1)
zstdless view zstandard-compressed files freebsd(1)
zstdmt
zstream manipulate zfs send streams freebsd(8)
zstreamdump filter data in zfs send stream freebsd(8)
ztest was written by the ZFS Developers as a ZFS unit test. freebsd(1)