Skip to content

Instantly share code, notes, and snippets.

@press0
Last active December 6, 2022 14:08
Show Gist options
  • Save press0/e571766a623291283384 to your computer and use it in GitHub Desktop.
Save press0/e571766a623291283384 to your computer and use it in GitHub Desktop.
find all 2 character unix utilities in PATH
# get all 2 char unix utilities
for i in /usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin ; do find $i >> qq ; done
while read i; do basename $i >> qq.basename ; done < qq
cat qq.basename |sort|uniq|grep -w '^\w\{2\}$' > qq.basename.sort.2
# print man description
while read i; do man -f $i >> qq.basename.sort.2.man ; done < qq.basename.sort.2
7z (1) - A file archiver with highest compression ratio
ar (1) - create, modify, and extract from archives
as (1) - the portable GNU assembler.
bc (1) - An arbitrary precision calculator language
cc (1) - GNU project C and C++ compiler
cp (1) - copy files and directories
dd (1) - convert and copy a file
df (1) - report file system disk space usage
dh (1) - debhelper command sequencer
du (1) - estimate file space usage
ed (1) - line-oriented text editor
ex (1) - Vi IMproved, a programmers text editor
gs (1) - Ghostscript (PostScript and PDF language interpreter a...
hd (4) - MFM/IDE hard disk devices
hd (1) - ASCII, decimal, hexadecimal, octal dump
hg (1) - Mercurial source code management system
id (1) - print real and effective user and group IDs
ip (8) - show / manipulate routing, devices, policy routing and...
ip (7) - Linux IPv4 protocol implementation
ld (1) - The GNU linker
ln (1) - make links between files
lp (4) - line printer devices
lp (1) - print files
ls (1) - list directory contents
lz (1) - gunzips and shows a listing of a gzip'd tar'd archive
m4 (1) - macro processor
mc (1) - Visual shell for Unix-like systems.
mt (1) - control magnetic tape drive operation
mv (1) - move (rename) files
nc (1) - arbitrary TCP and UDP connections and listens
nl (1) - number lines of files
nm (1) - list symbols from object files
od (1) - dump files in octal and other formats
pg (1) - browse pagewise through text files
pr (1) - convert text files for printing
ps (1) - report a snapshot of the current processes.
pv (1) - monitor the progress of data through a pipe
ri (1) - Ruby API reference front end
rm (1) - remove files or directories
sg (1) - execute command as different group ID
sh (1) - command interpreter (shell)
ss (8) - another utility to investigate sockets
su (1) - change user ID or become superuser
tc (8) - show / manipulate traffic control settings
tr (1) - translate or delete characters
ul (1) - do underlining
uz (1) - gunzips and extracts a gzip'd tar'd archive
vi (1) - Vi IMproved, a programmers text editor
wc (1) - print newline, word, and byte counts for each file
xz (1) - Compress or decompress .xz and .lzma files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment