User:Sertonix/Shell utils comparison

From Alpine Linux
This material is work-in-progress ...

Do not follow instructions here until this notice is removed.
(Last edited by Sertonix on 26 Aug 2023.)

This is a comparison between the different commands available in different utilities. The lists (currently) includes the dependencies without any hint. Since some command lists vary depending on the build config, etc. this may not apply to other distributions.

List

busybox

[ [[ acpid add-shell addgroup adduser adjtimex arch arp arping ash awk base64 basename bbconfig bc beep blkdiscard blkid blockdev brctl bunzip2 bzcat bzip2 cal cat chattr chgrp chmod chown chpasswd chroot chvt cksum clear cmp comm cp cpio crond crontab cryptpw cut date dc dd deallocvt delgroup deluser depmod df diff dirname dmesg dnsdomainname dos2unix du dumpkmap echo egrep eject env ether-wake expand expr factor fallocate false fatattr fbset fbsplash fdflush fdisk fgrep find findfs flock fold free fsck fstrim fsync fuser getopt getty grep groups gunzip gzip halt hd head hexdump hostid hostname hwclock id ifconfig ifdown ifenslave ifup init inotifyd insmod install ionice iostat ip ipaddr ipcalc ipcrm ipcs iplink ipneigh iproute iprule iptunnel kbd_mode kill killall killall5 klogd last less link linux32 linux64 ln loadfont loadkmap logger login logread losetup ls lsattr lsmod lsof lsusb lzcat lzma lzop lzopcat makemime md5sum mdev mesg microcom mkdir mkdosfs mkfifo mkfs.vfat mknod mkpasswd mkswap mktemp modinfo modprobe more mount mountpoint mpstat mv nameif nanddump nandwrite nbd-client nc netstat nice nl nmeter nohup nologin nproc nsenter nslookup ntpd od openvt partprobe passwd paste pgrep pidof ping ping6 pipe_progress pivot_root pkill pmap poweroff printenv printf ps pscan pstree pwd pwdx raidautorun rdate rdev readahead readlink realpath reboot reformime remove-shell renice reset resize rev rfkill rm rmdir rmmod route run-parts sed sendmail seq setconsole setfont setkeycodes setlogcons setpriv setserial setsid sh sha1sum sha256sum sha3sum sha512sum showkey shred shuf slattach sleep sort split stat strings stty su sum swapoff swapon switch_root sync sysctl syslogd tac tail tar tee test time timeout top touch tr traceroute traceroute6 tree true truncate tty ttysize tunctl udhcpc udhcpc6 umount uname unexpand uniq unix2dos unlink unlzma unlzop unshare unxz unzip uptime usleep uudecode uuencode vconfig vi vlock volname watch watchdog wc wget which who whoami whois xargs xxd xzcat yes zcat zcip

busybox extra

arch conspy dnsd dumpleases fakeidentd ftpd ftpget ftpput httpd inetd readahead tcpsvd telnet telnetd tftp tftpd udhcpd

toybox

acpi arch ascii attr base32 base64 basename bash blkdiscard blkid blockdev bunzip2 bzcat cal cat chattr chgrp chmod chown chroot chrt chvt cksum clear cmp comm count cp cpio crc32 cut date dd deallocvt devmem df dirname dmesg dnsdomainname dos2unix du echo egrep eject env expand factor fallocate false fgrep file find flock fmt free freeramdisk fsfreeze fstype fsync ftpget ftpput getconf getfattr gpiodetect gpiofind gpioget gpioinfo gpioset grep groups gunzip halt head help hexedit host hostname httpd hwclock i2cdetect i2cdump i2cget i2cset i2ctransfer iconv id ifconfig inotifyd insmod install ionice iorenice iotop kill killall killall5 link linux32 ln logger login logname losetup ls lsattr lsmod lspci lsusb makedevs mcookie md5sum microcom mix mkdir mkfifo mknod mkpasswd mkswap mktemp modinfo mount mountpoint mv nbd-client nbd-server nc netcat netstat nice nl nohup nproc nsenter od oneit openvt partprobe passwd paste patch pgrep pidof ping ping6 pivot_root pkill pmap poweroff printenv printf prlimit ps pwd pwdx pwgen readahead readelf readlink realpath reboot renice reset rev rfkill rm rmdir rmmod rtcwake sed seq setfattr setsid sha1sum sha224sum sha256sum sha384sum sha3sum sha512sum shred shuf sleep sntp sort split stat strings su swapoff swapon switch_root sync sysctl tac tail tar taskset tee test time timeout top touch toysh true truncate tty tunctl uclampset ulimit umount uname unicode uniq unix2dos unlink unshare uptime usleep uudecode uuencode uuidgen vconfig vmstat w watch watchdog wc wget which who whoami xargs xxd yes zcat

coreutils

[ b2sum base32 base64 basename basenc cat chcon chgrp chmod chown chroot cksum comm coreutils cp csplit cut date dd df dir dircolors dirname du echo env expand expr factor false fmt fold head hostid id install join link ln logname ls md5sum mkdir mkfifo mknod mktemp mv nice nl nohup nproc numfmt od paste pathchk pinky pr printenv printf ptx pwd readlink realpath rm rmdir runcon seq sh sha1sum sha224sum sha256sum sha384sum sha512sum shred shuf sleep sort split stat stdbuf stty sum sync tac tail tee test timeout touch tr true truncate tsort tty uname unexpand uniq unlink users vdir wc who whoami yes

sbase

basename cal cat chgrp chmod chown chroot cksum cmp cols comm cp cron cut date dd dirname du echo ed env expand expr false find flock fold getconf grep head hostname install join kill link ln logger logname ls md5sum mkdir mkfifo mknod mktemp mv nice nl nohup od pathchk paste printenv printf pwd readlink renice rev rm rmdir sed seq setsid sh sha1sum sha224sum sha256sum sha238sum sha512sum sha512-224sum sha512-256sum sleep sort split sponge strings sync tail tar tee test tftp time touch tr true tsort tty uname unexpand uniq unlink uudecode uuencode wc which whoami xargs yes

ubase

blkdiscard chvt clear ctrlaltdel dd df dmesg eject fallocate free freeramdisk fsfreeze getty halt hwclock id insmod killall5 last lastlog login lsmod lsusb mesg mknod mkswap mount mountpoint nologin pagesize passwd pidof pivot root ps pwdx readahead respawn rmmod sh stat su swaplabel swapoff swapon switch root sysctl truncate umount unshare uptime vtallow watch who

util-linux

[ addpart agetty b2sum base32 base64 basename basenc bash blkdiscard blkid blkpr blkzone blockdev cal cat cfdisk chcon chcpu chgrp chmem chmod choom chown chroot chrt cksum col colcrt colrm column comm coreutils cp csplit ctrlaltdel cut date dd delpart df dir dircolors dirname dmesg du echo eject env expand expr factor fadvise fallocate false fdisk fincore find findfs findmnt flock fmt fold free fsck fsck.cramfs fsck.minix fsfreeze fstrim getopt hardlink head hexdump hostid hwclock id install ionice ipcmk ipcrm ipcs irqtop isosize join ldattach link ln logger logname look losetup ls lsblk lscpu lsfd lsipc lsirq lslocks lsmem lsns lzcat lzcmp lzdiff lzegrep lzfgrep lzgrep lzless lzma lzmadec lzmainfo lzmore mcookie md5sum mesg mkdir mkfifo mkfs mkfs.bfs mkfs.cramfs mkfs.minix mknod mkswap mktemp more mount mountpoint mv namei nice nl nohup nproc nsenter numfmt od partx paste pathchk pgrep pidof pidwait pinky pipesz pivot_root pkill pmap pr printenv printf prlimit ps ptx pwd pwdx readlink readprofile realpath rename renice resizepart rev rfkill rm rmdir rtcwake runcon runuser script scriptlive scriptreplay seq setarch setpriv setsid setterm sfdisk sh sha1sum sha224sum sha256sum sha384sum sha512sum shred shuf slabtop sleep sort split stat stdbuf stty sum swaplabel swapoff swapon switch_root sync sysctl tac tail taskset tee test timeout tload top touch tr true truncate tsort tty uclampset ul umount uname unexpand uniq unlink unlzma unshare unxz uptime users utmpdump uuidgen uuidparse vdir vmstat w waitpid wall watch wc wdctl whereis who whoami wipefs xargs xz xzcat xzcmp xzdec xzdiff xzegrep xzfgrep xzgrep xzless xzmore yes zramctl

util-linux-login

last lastb login lslogins newgrp nologin runuser su sulogin

Table

Command busybox util-linux toybox coreutils sbase ubase busybox-extra util-linux-login
[
[[
acpi
acpid
add-shell
addgroup
addpart
adduser
adjtimex
agetty
arch
arp
arping
ascii
ash
attr
awk
b2sum
base32
base64
basename
basenc
bash
bbconfig
bc
beep
blkdiscard
blkid
blkpr
blkzone
blockdev
brctl
bunzip2
bzcat
bzip2
cal
cat
cfdisk
chattr
chcon
chcpu
chgrp
chmem
chmod
choom
chown
chpasswd
chroot
chrt
chvt
cksum
clear
cmp
col
colcrt
colrm
cols
column
comm
conspy
coreutils
count
cp
cpio
crc32
cron
crond
crontab
cryptpw
csplit
ctrlaltdel
cut
date
dc
dd
deallocvt
delgroup
delpart
deluser
depmod
devmem
df
diff
dir
dircolors
dirname
dmesg
dnsd
dnsdomainname
dos2unix
du
dumpkmap
dumpleases
echo
ed
egrep
eject
env
ether-wake
expand
expr
factor
fadvise
fakeidentd
fallocate
false
fatattr
fbset
fbsplash
fdflush
fdisk
fgrep
file
fincore
find
findfs
findmnt
flock
fmt
fold
free
freeramdisk
fsck
fsck.cramfs
fsck.minix
fsfreeze
fstrim
fstype
fsync
ftpd
ftpget
ftpput
fuser
getconf
getfattr
getopt
getty
gpiodetect
gpiofind
gpioget
gpioinfo
gpioset
grep
groups
gunzip
gzip
halt
hardlink
hd
head
help
hexdump
hexedit
host
hostid
hostname
httpd
hwclock
i2cdetect
i2cdump
i2cget
i2cset
i2ctransfer
iconv
id
ifconfig
ifdown
ifenslave
ifup
inetd
init
inotifyd
insmod
install
ionice
iorenice
iostat
iotop
ip
ipaddr
ipcalc
ipcmk
ipcrm
ipcs
iplink
ipneigh
iproute
iprule
iptunnel
irqtop
isosize
join
kbd_mode
kill
killall
killall5
klogd
last
lastb
lastlog
ldattach
less
link
linux32
linux64
ln
loadfont
loadkmap
logger
login
logname
logread
look
losetup
ls
lsattr
lsblk
lscpu
lsfd
lsipc
lsirq
lslocks
lslogins
lsmem
lsmod
lsns
lsof
lspci
lsusb
lzcat
lzcmp
lzdiff
lzegrep
lzfgrep
lzgrep
lzless
lzma
lzmadec
lzmainfo
lzmore
lzop
lzopcat
makedevs
makemime
mcookie
md5sum
mdev
mesg
microcom
mix
mkdir
mkdosfs
mkfifo
mkfs
mkfs.bfs
mkfs.cramfs
mkfs.minix
mkfs.vfat
mknod
mkpasswd
mkswap
mktemp
modinfo
modprobe
more
mount
mountpoint
mpstat
mv
namei
nameif
nanddump
nandwrite
nbd-client
nbd-server
nc
netcat
netstat
newgrp
nice
nl
nmeter
nohup
nologin
nproc
nsenter
nslookup
ntpd
numfmt
od
oneit
openvt
pagesize
partprobe
partx
passwd
paste
patch
pathchk
pgrep
pidof
pidwait
ping
ping6
pinky
pipe_progress
pipesz
pivot
pivot_root
pkill
pmap
poweroff
pr
printenv
printf
prlimit
ps
pscan
pstree
ptx
pwd
pwdx
pwgen
raidautorun
rdate
rdev
readahead
readelf
readlink
readprofile
realpath
reboot
reformime
remove-shell
rename
renice
reset
resize
resizepart
respawn
rev
rfkill
rm
rmdir
rmmod
root
route
rtcwake
run-parts
runcon
runuser
script
scriptlive
scriptreplay
sed
sendmail
seq
setarch
setconsole
setfattr
setfont
setkeycodes
setlogcons
setpriv
setserial
setsid
setterm
sfdisk
sh
sha1sum
sha224sum
sha238sum
sha256sum
sha384sum
sha3sum
sha512-224sum
sha512-256sum
sha512sum
showkey
shred
shuf
slabtop
slattach
sleep
sntp
sort
split
sponge
stat
stdbuf
strings
stty
su
sulogin
sum
swaplabel
swapoff
swapon
switch
switch_root
sync
sysctl
syslogd
tac
tail
tar
taskset
tcpsvd
tee
telnet
telnetd
test
tftp
tftpd
time
timeout
tload
top
touch
toysh
tr
traceroute
traceroute6
tree
true
truncate
tsort
tty
ttysize
tunctl
uclampset
udhcpc
udhcpc6
udhcpd
ul
ulimit
umount
uname
unexpand
unicode
uniq
unix2dos
unlink
unlzma
unlzop
unshare
unxz
unzip
uptime
users
usleep
utmpdump
uudecode
uuencode
uuidgen
uuidparse
vconfig
vdir
vi
vlock
vmstat
volname
vtallow
w
waitpid
wall
watch
watchdog
wc
wdctl
wget
whereis
which
who
whoami
whois
wipefs
xargs
xxd
xz
xzcat
xzcmp
xzdec
xzdiff
xzegrep
xzfgrep
xzgrep
xzless
xzmore
yes
zcat
zcip
zramctl