Skip to content

Instantly share code, notes, and snippets.

@eggplants
Last active January 20, 2025 09:22
Show Gist options
  • Save eggplants/d925afd73dd1b352bc8a815d1da41a31 to your computer and use it in GitHub Desktop.
Save eggplants/d925afd73dd1b352bc8a815d1da41a31 to your computer and use it in GitHub Desktop.
All preinstalled commands in Alpine linux

What?

Show all preinstalled commands in Alpine Linux

How?

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