The ultimate list of Linux terminal commands

CaffeineAddict

Well-Known Member
Joined
Jan 21, 2024
Messages
3,373
Reaction score
3,168
Credits
27,471
Here's something special from my hand crafted Linux grimoire, enjoy!

Want to be terminal ninja?
Need to recall how a command is called?
Need to explore various commands?

No problem, here is a list of 1786 commonly used commands I've been studying so far, nicely sorted according to topic.
Please note that commands themself are universal for any distro, only marks and package names are Debian specific.

Due to thread character limitations I had to split this to 2 posts.
If you have commands to share that aren't listed but are commonly used, please do.

You can use CTRL+F to search or copy this list to an *.md file and use appropriate markdown formatter in your code editor (e.g. VSCode) to have a functional local copy.


Markdown (GitHub flavored):
# A list of Linux terminal commands and CLI programs (1786)

Includes CLI programs, GRUB commands, scripts and bash scripting keywords</br>
Small portion of the commands is specific to Debian and Kali</br>
NOTE: Verify which tools are available from backports prior installing

The following marks are assigned to commands as applicable:

- Entries with `*` (667) are not installed by default (netint.iso with "standard system utilities" only)
- Entries with `**` (2) are from contrib component
- Entries with `***` (3) are from non-free component
- Entries with `+` (19) are both bourne and bash shell builtins
- Entries with `++` (39) are bash shell builtins
- Entries with `?` (11) are documented but not packaged, e.g. due to a bug or not available in stable release
- Entries with `??` (147) don't exist in Debian

The following types of commands are counted as one and are listed on same line,
under condition that those commands belong to same package:

- Synonymous commands or commands which call other commands with parameters for convenience
- Fundamentally same commands but called differently with very little difference among each other
- One time configuration commands that are exclusive to a command
- Commands that are provided for backward compatibility with other command

## Table of Contents

- [A list of Linux terminal commands and CLI programs (1786)](#a-list-of-linux-terminal-commands-and-cli-programs-1786)
  - [Table of Contents](#table-of-contents)
  - [Help (5)](#help-5)
  - [File and directory operations (35)](#file-and-directory-operations-35)
  - [File info and manipulation (24)](#file-info-and-manipulation-24)
  - [Text and text file manipulation (42)](#text-and-text-file-manipulation-42)
  - [Regex and regex-like (4)](#regex-and-regex-like-4)
  - [File system permissions and ownership (9)](#file-system-permissions-and-ownership-9)
  - [Users and groups management (37)](#users-and-groups-management-37)
  - [Terminal and shell (44)](#terminal-and-shell-44)
  - [Process info and management (63)](#process-info-and-management-63)
  - [Hardware info and management (43)](#hardware-info-and-management-43)
    - [Power management (4)](#power-management-4)
  - [System info and management (29)](#system-info-and-management-29)
    - [Time and date (16)](#time-and-date-16)
    - [Logs (8)](#logs-8)
  - [systemd (43)](#systemd-43)
    - [systemd-container (6)](#systemd-container-6)
    - [systemd-cryptsetup (4)](#systemd-cryptsetup-4)
    - [systemd-repart (3)](#systemd-repart-3)
  - [Package management (25)](#package-management-25)
    - [Package configuration (9)](#package-configuration-9)
    - [Package development (19)](#package-development-19)
  - [Module management (8)](#module-management-8)
  - [Archives (58)](#archives-58)
  - [Fonts (7)](#fonts-7)
  - [Keyboard (39)](#keyboard-39)
  - [Clipboard (3)](#clipboard-3)
  - [Audio (23)](#audio-23)
  - [Graphics and gaming (3)](#graphics-and-gaming-3)
  - [Printing (29)](#printing-29)
  - [Networking (48)](#networking-48)
    - [Bluetooth (18)](#bluetooth-18)
    - [mDNS (4)](#mdns-4)
  - [Remoting and file transfer (12)](#remoting-and-file-transfer-12)
  - [Boot management (4)](#boot-management-4)
    - [Secure boot (14)](#secure-boot-14)
    - [GRUB (27)](#grub-27)
  - [Security (53)](#security-53)
  - [Cryptography (28)](#cryptography-28)
    - [ssh (6)](#ssh-6)
    - [gpg (19)](#gpg-19)
    - [Encoding and decoding (12)](#encoding-and-decoding-12)
  - [Storage and file system (65)](#storage-and-file-system-65)
    - [fuse3 (4)](#fuse3-4)
    - [NTFS (27)](#ntfs-27)
    - [LVM and cryptsetup (46)](#lvm-and-cryptsetup-46)
  - [Virtual machine (3)](#virtual-machine-3)
    - [qemu-system-x86 (5)](#qemu-system-x86-5)
    - [libvirt-clients (6)](#libvirt-clients-6)
    - [virt-install (3)](#virt-install-3)
    - [qemu-utils (4)](#qemu-utils-4)
    - [swtpm-tools (7)](#swtpm-tools-7)
    - [openvswitch-switch (21)](#openvswitch-switch-21)
    - [libguestfs-tools (35)](#libguestfs-tools-35)
    - [virt-p2v (7)](#virt-p2v-7)
  - [Build and development (28)](#build-and-development-28)
  - [GNU roff utilities (52)](#gnu-roff-utilities-52)
  - [Miscellaneous (15)](#miscellaneous-15)
  - [Fun (10)](#fun-10)
  - [Shell scripting (27)](#shell-scripting-27)
  - [Scripting keywords (15)](#scripting-keywords-15)
  - [Deprecated (50)](#deprecated-50)
    - [iptables (46)](#iptables-46)
  - [Obsolete (10)](#obsolete-10)
  - [Pentesting (7)](#pentesting-7)
    - [cowpatty (2)](#cowpatty-2)
    - [nmap (4)](#nmap-4)
    - [hydra (4)](#hydra-4)
    - [aircrack-ng (27)](#aircrack-ng-27)
    - [metasploit-framework (24)](#metasploit-framework-24)
    - [john (124)](#john-124)
  - [GRUB CLI](#grub-cli)
    - [Loader commands (37)](#loader-commands-37)
    - [General commands (4)](#general-commands-4)
    - [Command-line commands (80)](#command-line-commands-80)
    - [Networking commands (16)](#networking-commands-16)
    - [Undocumented commands (84)](#undocumented-commands-84)
  - [Reference](#reference)

## Help (5)

- help ++
- whatis
- man
- apropos
- info *

```bash
# Recommended
sudo apt install info
```

## File and directory operations (35)

- ls
- dir
- vdir
- tree *
- cd +
- pwd +
- ln
- link
- unlink
- hardlink
- cp
- mv
- rm
- touch
- stat
- mkdir
- mktemp
- rmdir
- install
- mklost+found
- pushd ++
- popd ++
- dirs ++
- find
- mknod
- readlink
- realpath
- basename
- dirname
- namei
- pathchk
- rename *
- locate *
- updatedb *
- updatedb.findutils *

```bash
# Recommended
sudo apt install tree

# Optional
sudo apt install rename locate
```

## File info and manipulation (24)

- file
- flock
- lslocks
- lsinitrafs *
- mkinitramfs *
- unmkinitramfs *
- split
- shred
- od
- hexdump, hd
- xxd *
- wrestool *
- extresso *
- genresscript *
- icotool *
- fincore
- isosize
- genisoimage *
- isoinfo *
- isodump *
- isovfy *
- devdump *
- fmt
- truncate

```bash
# Recommended
sudo apt install genisoimage

# Optional
sudo apt install initramfs-tools-core xxd icoutils
```

## Text and text file manipulation (42)

- editor
- nano
- vi
- vim *
- ed, red *
- cat
- tac
- cut
- rev
- fold
- tee
- less
- more
- most *
- tail
- multitail *
- head
- wc
- nl
- diff
- diff3
- wdiff *
- sdiff
- patch
- cmp
- comm
- join
- paste
- sort
- uniq
- column
- shuf
- tr
- jq
- dos2unix *
- unix2dos *
- highlight *
- echo ++
- printf ++
- numfmt
- pr
- ptx

```bash
# Recommended
sudo apt install multitail wdiff dos2unix highlight

# Optional
sudo apt install most vim ed
```

## Regex and regex-like (4)

- grep
- pgrep
- sed
- awk, gawk, navk, mawk, jawk, bwk

## File system permissions and ownership (9)

- chown
- chgrp
- chmod
- umask +
- chacl *
- getfacl *
- setfacl *
- lsattr
- chattr

```bash
# Recommended
sudo apt install acl
```

## Users and groups management (37)

- w
- who (`/var/run/utmp`)
- pinky
- finger *
- id
- whoami
- logname
- lslogins
- users
- groups
- passwd
- gpasswd (`/etc/group` and `/etc/gshadow`)
- chage
- chfn
- newgrp
- pwconv
- pwunconv
- grpconv
- grpunconv
- pwck
- grpck
- useradd
- userdel
- usermod
- groupadd
- groupdel
- groupmod
- adduser
- deluser
- addgroup
- delgroup
- visudo
- vipw
- vigr
- update-passwd (`/etc/passwd`, `/etc/shadow`, `/etc/group`)
- newusers
- chpasswd

```bash
# Recommended
sudo apt install finger
```

## Terminal and shell (44)

- sh, bash, zsh
- chsh
- login
- sulogin
- logout ++
- env
- printenv
- type ++
- which
- whereis
- bind ++
- script
- clear
- exit +
- history ++
- hash +
- alias ++
- unalias ++
- eval +
- xargs
- source ++
- compgen ++
- complete ++
- compopt ++
- suspend ++
- fc ++
- tty
- stty
- agetty
- tabs
- expand
- unexpand
- tput
- tset
- tic
- infocmp
- infotocap
- captoinfo
- setterm
- dircolors
- setfont
- chvt
- openvt
- deallocvt

## Process info and management (63)

- ps
- pstree
- pmap
- pidof
- lsof
- fuser
- kill ++
- killall
- pkill
- pidwait
- wait
- watch
- top
- htop *
- iotop *
- time
- times +
- strace, strace64 *
- ltrace *
- xtrace *
- chroot
- schroot *
- pivot_root
- nice
- renice
- ionice
- chrt
- prlimit
- setpriv
- run-parts
- runuser
- runcon
- pkexec *
- su
- sg
- sudo
- setsid
- setuid *
- super *
- lsns
- nsenter
- unshare
- nohup
- uclampset
- stdbuf
- timeout
- ulimit ++
- jobs ++
- bg ++
- fg ++
- disown ++
- nocache *
- cachedel *
- cachestats *
- newuidmap *
- newgidmap *
- getsubids *
- pidstat *
- at *
- atd *
- atq *
- atrm *
- batch *

```bash
# Recommended
sudo apt install htop iotop strace ltrace xtrace

# Optional
sudo apt install schroot pkexec super nocache uidmap sysstat at
```

## Hardware info and management (43)

- nproc
- lscpu
- lsusb
- lspci
- lsmem
- lsscsi *
- chcpu
- chmem
- eject
- setpci
- update-pciids
- dmidecode
- biosdecode
- vpddecode
- ownership
- clinfo
- hdparm *
- acpi *
- acpitool *
- ratbagctl *
- inxi *
- lshw *
- hwinfo *
- usbreset
- usb-devices
- usbhid-dump
- xrandr
- autorandr *
- pcm *
- nvtop **
- nvidia-smi ***
- rfkill *
- uhubctl *
- tapestat *
- iostat *
- mpstat *
- cvt
- ldattach
- taskset
- wdctl
- fwupdmgr
- fwupdtool
- dbxtool

```bash
# NOTE: nvidia-smi is part of Nvidia driver package

# Recommended
sudo apt install lsscsi hdparm acpi ratbagd inxi pcm nvtop rfkill

# Optional
sudo apt install acpitool lshw hwinfo autorandr uhubctl sysstat
```

### Power management (4)

- upower
- powertop *
- powerstat *
- tlp *

```bash
# Optional
sudo apt install powertop powerstat tlp
```

## System info and management (29)

- hostname
- hostid
- uname
- arch
- setarch
- lsb_release
- locale
- localedef
- locale-gen
- getent
- udevadm
- crontab
- free
- vmstat
- slabtop
- ctrlaltdel
- choom
- readprofile
- rtcwake
- wall
- write ?
- mesg ?
- talk *
- sa1 *
- sa2 *
- sadc *
- sadf *
- sar, sar.sysstat *
- atop *

```bash
# Optional
sudo apt install talk sysstat atop
```

### Time and date (16)

- date
- hwclock
- uptime
- ntpd *
- ntpq *
- ntpkeygen *
- ntpleapfetch *
- ntpmon *
- ntptime *
- ntptrace *
- ntpwait *
- ntpdig *
- ntploggps *
- ntplogtemp *
- ntpviz *
- ncal, cal *

```bash
# Recommended
sudo apt install ntpsec

# Optional
sudo apt install ntpdig ntpsec-ntpviz ncal
```

### Logs (8)

- lnav *
- dmesg
- wtmpdb (recommended `libpam-wtmpdb`)
- lastlog2 * (recommended `libpam-lastlog2`)
- utmpdump ? (`/var/run/utmp` and `/var/log/wtmp`)
- logger
- savelog
- logrotate

```bash
# Recommended
sudo apt install lnav

# Optional
sudo apt install lastlog2
```

## systemd (43)

- sysctl
- systemctl
- journalctl
- networkctl
- bluetoothctl
- timedatectl
- localectl
- loginctl
- hostnamectl
- resolvectl
- coredumpctl
- busctl
- run0
- systemd-ac-power
- systemd-analyze
- systemd-ask-password
- systemd-cat
- systemd-cgls
- systemd-cgtop
- systemd-creds
- systemd-delta
- systemd-detect-virt
- systemd-escape
- systemd-firstboot
- systemd-hwdb
- systemd-id128
- systemd-inhibit
- systemd-machine-id-setup
- systemd-mount
- systemd-notify
- systemd-path
- systemd-run
- systemd-stdio-bridge
- systemd-confext
- systemd-sysext
- systemd-sysusers
- systemd-tmpfiles
- systemd-tty-ask-password-agent
- systemd-umount
- systemd-vpick
- bootctl ?
- systemd-socket-active ?
- systemd-vmspawn ?

### systemd-container (6)

- importctl *
- machinectl *
- portablectl *
- systemd-dissect, mount.ddi *
- systemd-nspawn *
- systemd-sysupdate *

```bash
# Optional
sudo apt install systemd-container
```

### systemd-cryptsetup (4)

- systemd-cryptenroll *
- systemd-cryptsetup *
- systemd-integritysetup *
- systemd-veritysetup *

```bash
# Optional
sudo apt install systemd-cryptsetup
```

### systemd-repart (3)

- systemd-keyutil *
- systemd-repart *
- systemd-sbsign *

```bash
# Optional
sudo apt install systemd-repart
```

## Package management (25)

- apt
- aptitude *
- apt-get
- apt-cache
- apt-file *
- apt-rdepends *
- apt-mark
- apt-config
- apt-cdrom
- apt-show-versions *
- tasksel
- dpkg
- dpkg-deb
- dpkg-divert
- dpkg-query
- dpkg-realpath
- dpkg-split
- dpkg-statoverride
- dpkg-trigger
- start-stop-daemon
- update-alternatives
- dpkg-maintscript-helper
- dselect *
- rmadison *
- flatpak *

```bash
# Recommended
sudo apt install aptitude apt-file apt-rdepends devscripts

# Optional
sudo apt install apt-show-versions flatpak
```

### Package configuration (9)

- debconf-apt-progress *
- debconf-communicate *
- debconf-copydb *
- debconf-escape *
- debconf-set-selections *
- debconf-show *
- debconf *
- dpkg-preconfigure *
- dpkg-reconfigure *

```bash
# Optional
sudo apt install debconf
```

### Package development (19)

- dpkg-architecture *
- dpkg-buildapi *
- dpkg-buildflags *
- dpkg-buildpackage *
- dpkg-buildtree *
- dpkg-checkbuilddeps *
- dpkg-distaddfile *
- dpkg-genbuildinfo *
- dpkg-genchanges *
- dpkg-gencontrol *
- dpkg-gensymbols *
- dpkg-mergechangelogs *
- dpkg-name *
- dpkg-parsechangelog *
- dpkg-scanpackages *
- dpkg-scansources *
- dpkg-shlibdeps *
- dpkg-source *
- dpkg-vendor *

```bash
# Optional
sudo apt install dpkg-dev
```

## Module management (8)

- kmod
- lsmod
- modinfo
- insmod
- modprobe
- rmmod
- depmod
- dkms *

```bash
# Recommended
sudo apt install dkms
```

## Archives (58)

- 7z, 7za, 7zr *
- zip *
- unzip *
- rar ***
- unrar ***
- cabextract *
- tar
- gzip
- gunzip
- zcat
- bzip2
- bunzip2
- bzcat
- bzip2recover
- xz
- unxz
- xzcat
- lzma
- unlzma
- lzcat
- zstd
- unzstd
- zstdcat
- zstdless
- plzip, lzip *
- lzop *
- znew
- zforce
- gzexe
- zdiff
- bzdiff
- xzdiff
- lzdiff
- zcmp
- bzcmp
- xzcmp
- lzcmp
- zless
- bzless
- xzless
- lzless
- zmore
- bzmore
- xzmore
- lzmore
- zgrep
- bzgrep
- xzgrep
- lzgrep
- zegrep
- bzegrep
- xzegrep
- lzegrep
- zfgrep
- bzfgrep
- xzfgrep
- lzfgrep
- cpio

```bash
# Recommended
sudo apt install 7zip 7zip-rar

# Optional
sudo apt install zip unzip lzip lzop rar unrar
```

## Fonts (7)

- fc-list
- fc-match
- fc-cache
- fc-cat
- fc-pattern
- fc-query
- fc-scan

## Keyboard (39)

- setxkbmap
- xkbbell
- xkbcomp
- xkbevd
- xkbprint
- xkbvleds
- xkbwatch
- codepage
- dumpkeys
- fgconsole
- getkeycodes
- kbd_mode
- kbdinfo
- kbdrate
- loadkeys
- loadunimap
- mapscrn
- mk_modmap
- psfaddtable
- psfgettable
- psfstriptable
- psfxtable
- resizecons
- screendump
- setkeycodes
- setleds
- setlogcons
- setmetamode
- setvesablank
- setvtrgb
- showconsolefont
- showkey
- splitfont
- unicode_start
- unicode_stop
- vcstime
- ibus *
- ibus-daemon *
- ibus-setup *

```bash
# Optional
sudo apt install ibus
```

## Clipboard (3)

- xclip *
- wl-copy *
- wl-paste *

```bash
# Recommended
sudo apt install xclip wl-clipboard
```

## Audio (23)

- wpctl
- pw-dump
- pulseaudio *
- start-pulseaudio-x11 *
- pactl
- pacmd
- pamixer *
- alsactl *
- alsaloop *
- alsamixer *
- alsaucm *
- amixer *
- amidi *
- aplay *
- arecord *
- aplaymidi
- arecordmidi *
- aconnect *
- aseqnet *
- aseqdump *
- iecset *
- speaker-test *
- fluidsynth *

```bash
# Recommended
sudo apt install alsa-utils

# Optional
sudo apt install pulseaudio pamixer fluidsynth
```

## Graphics and gaming (3)

- glxinfo
- vulkaninfo
- winetricks **

```bash
# Optional
sudo apt install winetricks
```

## Printing (29)

- lp *
- lpadmin *
- lpmove *
- lpoptions *
- lpstat *
- cancel *
- cupsaccept *
- cupsctl *
- cupsdisable *
- cupsenable *
- cupsreject *
- cupstestppd *
- lpbanner *
- lpc *
- lpd *
- lpf *
- lpq *
- lpr *
- lprm *
- lprng_certs *
- lprng_index_certs *
- monitor *
- pclbanner *
- psbanner *
- checkpc *
- ippeveprinter *
- ippfind *
- ippserver *
- ipptool *

```bash
# Optional
sudo apt install cups-client cups-ipp-utils lprng
```

## Networking (48)

- ip
- ss
- host
- ping
- nmcli
- nm-online
- nmtui
- nft
- dig
- mdig
- nslookup
- traceroute
- tc
- bridge
- wpa_cli
- wpa_supplicant
- wpa_passphrase
- whois *
- iw *
- ethtool *
- arping *
- tcpdump *
- iftop *
- tor *
- conntrack *
- vnstat *
- unbound *
- unbound-control, unbound-control-setup *
- unbound-checkconf *
- unbound-host *
- unbound-anchor *
- routel
- delv
- nsupdate
- genl
- lnstat
- nstat
- rtacct
- rtmon
- rtstat
- arpd
- ctstat
- dcb
- devlink
- rdma
- tipc
- vdpa
- dnstap-read

```bash
# Recommended
sudo apt install whois iw tcpdump iftop
sudo apt install ethtool tor unbound

# Optional
sudo apt install arping conntrack vnstat unbound-host unbound-anchor
```

### Bluetooth (18)

- bluetoothctl
- bluemoon
- btattach
- btmgmt
- btmon
- ciptool
- gatttool
- hciattach
- hciconfig
- hcitool
- hex2hcd
- obexctl
- rctest
- rfcomm
- sdptool
- l2ping
- l2test
- mpris-proxy

### mDNS (4)

- avahi-browse, avahi-browse-domains *
- avahi-publish, avahi-publish-address, avahi-publish-service *
- avahi-resolve, avahi-resolve-address, avahi-resolve-host-name *
- avahi-set-host-name *

```bash
# Optional
sudo apt install avahi-utils
```
 
Last edited:


Continuation of the post above...

Markdown (GitHub flavored):
## Remoting and file transfer (12)

- wget
- curl *
- rsync
- ssh
- sftp
- tnftp *
- ftp-ssl *
- exim4, mailq, rsmtp, rmail, runq, newaliases *
- rdiff-backup *
- rdiff-backup-delete *
- rdiff-backup-old *
- rdiff-backup-statistics *

```bash
# Recommended
sudo apt install curl

# Optional
sudo atp install tnftp ftp-ssl exim4 rdiff-backup
```

## Boot management (4)

- efivar *
- efibootmgr
- update-initramfs
- kernel-install

```bash
# Recommended
sudo apt install efivar
```

### Secure boot (14)

- mokutil
- sbsign *
- sbverify *
- sbattach *
- sbkeysync *
- sbsiglist *
- sbvarsign *
- efi-readvar *
- efi-updatevar *
- cert-to-efi-hash-list *
- cert-to-efi-sig-list *
- hash-to-efi-sig-list *
- sig-list-to-certs *
- sign-efi-sig-list *

```bash
# Recommended
sudo apt install efitools sbsigntool
```

### GRUB (27)

- grub-mkconfig
- grub-kbdcomp
- grub-mkimage
- grub-mkrescue
- grub-mknetdir
- grub-editenv
- grub-file
- grub-fstest
- grub-glue-efi
- grub-macbless
- grub-menulst2cfg
- grub-mkdevicemap
- grub-mkfont
- grub-mklayout
- grub-mkpasswd-pbkdf2
- grub-mkrelpath
- grub-mkstandalone
- grub-mount
- grub-probe
- grub-render-label
- grub-script-check
- grub-syslinux2cfg
- grub-install
- grub-reboot
- grub-set-default
- update-grub, update-grub2
- grub-imageboot *

```bash
# Optional
sudo apt install grub-imageboot
```

## Security (53)

- capsh
- getcap
- getpcaps
- setcap
- captree ?
- firejail *
- captest *
- filecap *
- netcap *
- pscap *
- aide *
- debsums *
- debsecan, debsecan-create-cron *
- tiger *
- tigexp *
- chkrootkit *
- chklastlog *
- chkwtmp *
- logcheck *
- logcheck-test *
- logtail *
- logtail2 *
- auditctl *
- aureport *
- ausearch *
- augenrules *
- aa-enabled
- aa-exec
- aa-features-abi
- aa-load
- aa-remove-unknown
- aa-teardown
- apparmor_parser
- aa-status, apparmor_status
- aa-unconfined *
- aa-enforce *
- aa-complain *
- aa-disable *
- aa-audit *
- aa-autodep *
- aa-easyprof *
- aa-genprof *
- aa-cleanprof *
- aa-mergeprof *
- aa-logprof *
- aa-decode *
- aa-update-browser *
- aa-notify *
- pwgen *
- xauth
- mcookie
- secret-tool *
- chcon

```bash
# Recommended
sudo apt install aide debsums debsecan apparmor-utils apparmor-notify auditd

# Optional
sudo apt install firejail libcap-ng-utils tiger chkrootkit logcheck logtail
sudo apt install pwgen libsecret-tools
```

## Cryptography (28)

- keychain *
- osslsigncode *
- keyctl *
- request-key *
- sum
- cksum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
- b2sum
- openssl
- dscverify *
- update-ca-certificates
- certutil *
- cmsutil *
- crlutil *
- derdump *
- modutil *
- nss-pp *
- pk12util *
- signtool *
- signver *
- ssltap *
- vfychain *
- vfyserv *

```bash
# Recommended
sudo apt install osslsigncode devscripts

# Optional
sudo apt install keychain keyutils libnss3-tools
```

### ssh (6)

- ssh-agent
- ssh-add
- ssh-keygen
- ssh-keyscan
- ssh-copy-id
- ssh-argv0

### gpg (19)

- gpg
- keyboxd ?
- dirmngr
- dirmngr-client
- gpg-card *
- scdaemon *
- gpg-connect-agent
- gpgconf
- addgnupghome
- applygnupgdefaults
- gpg-mail-tube
- gpgparsemail
- gpgsplit
- gpgtar
- kbxutil
- lspgpot
- migrate-pubring-from-classic-gpg
- watchgnupg
- gpgsm

```bash
# Optional
sudo apt install scdaemon
```

### Encoding and decoding (12)

- basenc
- base64
- base32
- base16 *
- base32hex *
- base32plain *
- base64mime *
- base64pem *
- base64plain *
- base64url *
- basez *
- hex *

```bash
# Optional
sudo apt install basez
```

## Storage and file system (65)

- fdisk
- cfdisk
- sfdisk
- parted
- dd
- sync
- du
- df
- mountpoint
- findmnt
- findfs
- blkid
- blkzone
- blockdev
- wipefs
- lsblk
- mount
- umount
- swapon
- swapoff
- swaplabel
- losetup
- partprobe
- fstrim
- fsfreeze
- blkdiscard
- fsck
- badblocks
- e2fsck
- mkfs
- mke2fs
- mkswap
- resize2fs
- e2label
- e4defrag
- e2freefrag
- tune2fs
- dumpe2fs
- e2mmpstatus
- e2image
- e2scrub
- e2scrub_all
- e2undo
- e4crypt
- debugfs
- mdadm *
- mdmon *
- addpart ?
- delpart ?
- partx
- resizepart
- fallocate
- fdformat
- smartctl
- nvme-cli *
- wodim *
- cifsiostat *
- switch_root
- zramctl
- udisks
- udisksctl
- udisksd ?
- extundelete *
- testdisk *
- photorec *

```bash
# Recommended
sudo apt install nvme-cli

# Optional
sudo apt install mdadm wodim sysstat extundelete testdisk
```

### fuse3 (4)

- fusermount
- fusermount3
- mount.fuse
- mount.fuse3

### NTFS (27)

- lowntfs-3g *
- mkfs.ntfs *
- mkntfs *
- mount.lowntfs-3g *
- mount.ntfs-3g *
- mount.ntfs *
- ntfs-3g *
- ntfs-3g.probe *
- ntfscat *
- ntfsclone *
- ntfscluster *
- ntfscmp *
- ntfscp *
- ntfsdecrypt *
- ntfsfallocate *
- ntfsfix *
- ntfsinfo *
- ntfslabel *
- ntfsls *
- ntfsprogs *
- ntfsrecover *
- ntfsresize *
- ntfssecaudit *
- ntfstruncate *
- ntfsundelete *
- ntfsusermap *
- ntfswipe *

```bash
# Optional
sudo apt install ntfs-3g
```

### LVM and cryptsetup (46)

- pvmove *
- pvchange *
- pvck *
- pvcreate *
- pvdisplay *
- pvmove *
- pvremove *
- pvresize *
- pvs *
- pvscan *
- vgcfgbackup *
- vgcfgrestore *
- vgchange *
- vgck *
- vgconvert *
- vgcreate *
- vgdisplay *
- vgexport *
- vgextend *
- vgimport *
- vgimportclone *
- vgimportdevices *
- vgmerge *
- vgmknodes *
- vgreduce *
- vgremove *
- vgrename *
- vgs *
- vgscan *
- vgsplit *
- lvchange *
- lvconvert *
- lvcreate *
- lvdisplay *
- lvextend *
- lvmconfig *
- lvmdevices *
- lvmdiskscan *
- lvmdump *
- lvreduce *
- lvremove *
- lvrename *
- lvresize *
- lvs *
- lvscan *
- cryptsetup *

```bash
# Recommended
sudo apt install lvm2 cryptsetup
```

## Virtual machine (3)

NOTE: Specific to KVM\QEMU, libvirt and openvswitch

- spice-vdagent *
- swtpm *
- virt-top *

```bash
# Recommended
sudo apt install spice-vdagent swtpm

# Optional
sudo apt install virt-top
```

### qemu-system-x86 (5)

- kvm *
- qemu-system-amd64 *
- qemu-system-i386 *
- qemu-system-x86_64-microvm *
- qemu-system-x86_64 *

```bash
# Recommended
sudo apt install qemu-system-x86
```

### libvirt-clients (6)

- virsh *
- virt-admin *
- virt-host-validate *
- virt-login-shell *
- virt-pki-validate *
- virt-xml-validate *

```bash
# Recommended
sudo apt install libvirt-clients
```

### virt-install (3)

- virt-install *
- virt-clone *
- virt-xml *

```bash
# Recommended
sudo apt install virt-install # rec: qemu-utils
```

### qemu-utils (4)

- qemu-img *
- qemu-io *
- qemu-make-debian-root *
- qemu-nbd *

```bash
# Recommended
sudo apt install qemu-utils
```

### swtpm-tools (7)

- swtpm-create-tpmca *
- swtpm-localca *
- swtpm_bios *
- swtpm_cert *
- swtpm_ioctl *
- swtpm_localca *
- swtpm_setup *

```bash
# Optional
sudo apt install swtpm-tools
```

### openvswitch-switch (21)

- ovs-ctl *
- ovs-dpctl-top *
- ovs-dpctl *
- ovs-pcap *
- ovs-tcpdump *
- ovs-tcpundump *
- ovs-vlan-test *
- ovs-vsctl *
- ovs-vswitchd *
- ovsdb-server *
- ovs-appctl *
- ovs-kmod-ctl *
- ovs-l3ping *
- ovs-ofctl *
- ovs-parse-backtrace *
- ovs-pki *
- ovs-test *
- ovs-testcontroller *
- ovsdb-client *
- ovsdb-tool *
- vtep-ctl *

```bash
# Recommended
sudo apt install openvswitch-switch
```

### libguestfs-tools (35)

- guestfish *
- guestmount *
- guestunmount *
- libguestfs-make-fixed-appliance *
- libguestfs-test-tool *
- virt-alignment-scan *
- virt-builder-repository *
- virt-builder *
- virt-cat *
- virt-copy-in *
- virt-copy-out *
- virt-customize *
- virt-df *
- virt-dib *
- virt-diff *
- virt-edit *
- virt-filesystems *
- virt-format *
- virt-get-kernel *
- virt-index-validate *
- virt-inspector *
- virt-list-filesystems *
- virt-list-partitions *
- virt-log *
- virt-ls *
- virt-make-fs *
- virt-rescue *
- virt-resize *
- virt-sparsify *
- virt-sysprep *
- virt-tail *
- virt-tar-in *
- virt-tar-out *
- virt-tar *
- virt-win-reg *

```bash
# Optional
sudo apt install libguestfs-tools # guestmount, guestfs-tools, guestfish, rec: virt-p2v
```

### virt-p2v (7)

- p2v-building *
- p2v-hacking *
- p2v-release-notes *
- virt-p2v-make-disk *
- virt-p2v-make-kickstart *
- virt-p2v-make-kiwi *
- virt-p2v *

```bash
# Optional
sudo apt install virt-p2v
```

## Build and development (28)

- git
- perl
- python3
- bison *
- m4 *
- autoconf *
- automake *
- make *
- gcc *
- g++ *
- ar *
- ld *
- ld.so, ld-linux.so *
- ldconfig
- ldd
- pldd
- sprof *
- size *
- readelf *
- objdump *
- objcopy *
- nm *
- fakeroot *
- debchage, dch *
- checkbashisms *
- cmake *
- pipx *
- nasm *

```bash
# Recommended
sudo apt install build-essential binutils packaging-dev devscripts cmake nasm

# Optional
sudo apt install pipx
```

## GNU roff utilities (52)

- eqn
- geqn
- gpic
- groff
- grog
- grops
- grotty
- gtbl
- neqn
- nroff
- pic
- preconv
- soelim
- tbl
- troff
- addftinfo *
- afmtodit *
- chem *
- eqn2graph *
- gdiffmk *
- glilypond *
- gperl *
- gpinyin *
- grap2graph *
- grn *
- grodvi *
- groffer *
- grohtml *
- grolbp *
- grolj4 *
- gropdf *
- gxditview *
- hpftodit *
- indxbib *
- lkbib *
- lookbib *
- mmroff *
- pdfmom *
- pdfroff *
- pfbtops *
- pic2graph *
- post-grohtml *
- pre-grohtml *
- refer *
- roff2dvi *
- roff2html *
- roff2pdf *
- roff2ps *
- roff2text *
- roff2x *
- tfmtodit *
- xtotroff *

```bash
# Optional
sudo apt install groff
```

## Miscellaneous (15)

- yes
- seq
- expr
- factor
- dc *
- reportbug
- uuidgen *
- rig *
- progress *
- mt
- rmt
- ffmpeg *
- irssi *
- yt-dlp *
- espeak *

```bash
# Recommended
sudo apt install uuid-runtime rig progress ffmpeg irssi

# Optional
sudo apt install dc yt-dlp espeak-ng-espeak
```

## Fun (10)

- cmatrix *
- cowsay *
- sl *
- lolcat *
- toilet *
- fortune *
- aafire, aainfo, aasavefont, aatest *
- bb *
- tty-clock *
- hollywood *

```bash
# Recommended
sudo apt install cmatrix cowsay sl lolcat toilet fortune

# Optional
sudo apt install libaa-bin bb tty-clock hollywood
```

## Shell scripting (27)

- line
- read ++
- readarray ++
- readonly +
- getopt
- getopts +
- export +
- sleep
- builtin ++
- caller ++
- command ++
- declare, typeset ++
- enable ++
- let ++
- local ++
- mapfile ++
- trap +
- set +
- unset +
- shopt ++
- test +
- shift +
- exec +
- select ++
- until ++
- true ++
- false ++

## Scripting keywords (15)

- break +
- continue +
- return +
- if
- elif
- else
- then
- fi
- case
- esac
- for
- in
- while
- do
- done

## Deprecated (50)

TODO: Replacements missing

- dhclient
- arp * (replacement: `ip n`)
- ifconfig * (replacement: `ip`)
- iptunnel *
- mii-tool * (replacement: `ethtool`)
- nameif * (replacement: `ip link`)
- netstat * (replacement: `ss`)
- route * (replacement: `ip r`)
- iwconfig *
- iwevent *
- iwgetid *
- iwlist *
- iwpriv *
- iwspy *
- ifctrstat
- ifdown
- ifparse
- ifquery
- ifup
- egrep (replacement: `grep -E`)
- fgrep (replacement: `grep -F`)
- rgrep (replacement: `grep -r`)
- ipset *
- cron
- invoke-rc.d
- service
- update-rc.d
- lesskey
- skill
- snice
- ftp *
- scp
- init
- telinit
- runlevel
- poweroff
- reboot
- shutdown
- halt
- brctl *
- telnet *
- lsipc
- ipcs
- ipcmk
- ipcrm
- last (reads: `/var/log/wtmp`, replacement: `wtmpdb`)
- lpinfo *
- pg
- tailf (replacement: `tail -f`)
- tunelp

```bash
# Optional
sudo apt install net-tools wireless-tools ifupdown-ng ipset ftp-ssl sysvinit-core
sudo apt install bridge-utils telnet
```

### iptables (46)

- iptables *
- ip6tables *
- arptables *
- ebtables *
- iptables-nft *
- ip6tables-nft *
- arptables-nft *
- ebtables-nft *
- iptables-legacy *
- ip6tables-legacy *
- iptables-translate *
- ip6tables-translate *
- ebtables-translate *
- iptables-restore-translate *
- ip6tables-restore-translate *
- iptables-save *
- ip6tables-save *
- arptables-save *
- ebtables-save *
- iptables-nft-save *
- ip6tables-nft-save *
- arptables-nft-save *
- ebtables-nft-save *
- iptables-legacy-save *
- ip6tables-legacy-save *
- iptables-restore *
- ip6tables-restore *
- arptables-restore *
- ebtables-restore *
- iptables-nft-restore *
- ip6tables-nft-restore *
- arptables-nft-restore *
- ebtables-nft-restore *
- iptables-legacy-restore *
- ip6tables-legacy-restore *
- iptables-apply *
- ip6tables-apply *
- iptables-extensions *
- iptables-xml *
- nfnl_osf *
- xtables-nft *
- xtables-legacy-multi *
- xtables-legacy *
- xtables-monitor *
- xtables-nft-multi *
- xtables-translate *

```bash
# Optional
sudo apt install iptables
```

## Obsolete (10)

- rarp * (no replacement)
- plipconfig * (no replacement)
- slattach * (no replacement)
- airdriver-ng *
- faillog (reads `/var/log/faillog`, replacement: `pam_faillock`)
- lastb (reads: `/var/log/btmp`, replacement: `journalctl -u systemd-logind`)
- lastlog (reads: `/var/log/lastlog`, replacement: `lastlog2`)
- bccmd
- hid2hci
- raw

```bash
# Optional
sudo apt install net-tools
```

## Pentesting (7)

Pentesting tools present in Kali-Linux

TODO: List more pentesting tools

- nc, netcat
- hping3 *
- medusa *
- mdk3 *
- macchanger *
- crunch *
- hashcat *

```bash
# Recommended
sudo apt install hping3 macchanger crunch hashcat

# Optional
sudo apt install medusa mdk3
```

### cowpatty (2)

- cowpatty *
- genpmk *

```bash
# Recommended
sudo apt install cowpatty
```

### nmap (4)

- nmap *
- ncat *
- ndiff *
- nping *

```bash
# Recommended
sudo apt install nmap
```

### hydra (4)

- hydra *
- dpl4hydra *
- hydra-wizard *
- pw-inspector *

```bash
# Recommended
sudo apt install hydra
```

### aircrack-ng (27)

- airbase-ng *
- aircrack-ng *
- airdecap-ng *
- airdecloak-ng *
- airdrop-ng *
- aireplay-ng *
- airgraph-ng *
- airodump-join *
- airmon-ng *
- airodump-ng *
- airodump-ng-oui-update *
- airolib-ng *
- airserv-ng *
- airtun-ng *
- besside-ng *
- besside-ng-crawler *
- easside-ng *
- packetforge-ng *
- tkiptun-ng *
- wesside-ng *
- airventriloquist-ng *
- buddy-ng *
- makeivs-ng *
- ivstools *
- kstats *
- wpaclean *
- dcrack *

```bash
# Recommended
sudo apt install aircrack-ng

# Optional
sudo apt install airgraph-ng
```

### metasploit-framework (24)

- msf-egghunter ??
- msf-exe2vba ??
- msf-exe2vbs ??
- msf-find_badchars ??
- msf-halflm_second ??
- msf-hmac_sha1_crack ??
- msf-java_deserializer ??
- msf-jsobfu ??
- msf-makeiplist ??
- msf-md5_lookup ??
- msf-metasm_shell ??
- msf-msf_irb_shell ??
- msf-nasm_shell ??
- msf-pattern_create ??
- msf-pattern_offset ??
- msf-pdf2xdp ??
- msf-virustotal ??
- msfconsole ??
- msfd ??
- msfdb ??
- msfrpc ??
- msfrpcd ??
- msfupdate ??
- msfvenom ??

### john (124)

- john *
- SIPdump ??
- base64conv ??
- bitlocker2john ??
- calc_stat ??
- cprepair ??
- dmg2john ??
- eapmd5tojohn ??
- genmkvpwd ??
- gpg2john ??
- hccap2john ??
- keepass2john ??
- mailer ??
- mkvcalcproba ??
- putty2john ??
- racf2john ??
- rar2john ??
- raw2dyna ??
- tgtsnarf ??
- uaf2john ??
- unafs ??
- undrop ??
- unique ??
- unshadow ??
- vncpcap2john ??
- wpapcap2john ??
- zip2john ??
- 1password2john ??
- 7z2john ??
- DPAPImk2john ??
- adxcsouf2john ??
- aem2john ??
- aix2john ??
- andotp2john ??
- androidbackup2john ??
- androidfde2john ??
- ansible2john ??
- apex2john ??
- applenotes2john ??
- aruba2john ??
- atmail2john ??
- axcrypt2john ??
- bestcrypt2john ??
- bitcoin2john ??
- bitshares2john ??
- bitwarden2john ??
- bks2john ??
- blockchain2john ??
- ccache2john ??
- cisco2john ??
- cracf2john ??
- dashlane2john ??
- deepsound2john ??
- diskcryptor2john ??
- dmg2john ??
- ecryptfs2john ??
- ejabberd2john ??
- electrum2john ??
- encfs2john ??
- enpass2john ??
- enpass5tojohn ??
- ethereum2john ??
- filezilla2john ??
- geli2john ??
- hccapx2john ??
- htdigest2john ??
- ibmiscanner2john ??
- ikescan2john ??
- ios7tojohn ??
- itunes_backup2john ??
- iwork2john ??
- kdcdump2john ??
- keychain2john ??
- keyring2john ??
- keystore2john ??
- kirbi2john ??
- known_hosts2john ??
- krb2john ??
- kwallet2john ??
- lastpass2john ??
- ldif2john ??
- libreoffice2john ??
- lion2john ??
- lotus2john ??
- luks2john ??
- mac2john ??
- mcafee_epo2john ??
- monero2john ??
- money2john ??
- mosquitto2john ??
- mozilla2john ??
- multibit2john ??
- neo2john ??
- office2john ??
- openbsd_softraid2john ??
- openssl2john ??
- padlock2john ??
- pcap2john ??
- pdf2john ??
- pem2john ??
- pfx2john ??
- pgpdisk2john ??
- pgpsda2john ??
- pgpwde2john ??
- prosody2john ??
- ps_token2john ??
- pse2john ??
- pwsafe2john ??
- radius2john ??
- restic2john ??
- sap2john ??
- sense2john ??
- signal2john ??
- sipdump2john ??
- ssh2john ??
- sspr2john ??
- staroffice2john ??
- strip2john ??
- telegram2john ??
- tezos2john ??
- truecrypt2john ??
- vdi2john ??
- vmx2john ??
- zed2john ??

```bash
# Optional
sudo apt install john
```

## GRUB CLI

### Loader commands (37)

- appleloader
- freedos
- kfreebsd_loadenv
- kfreebsd_module_elf
- kfreebsd_module
- kfreebsd
- knetbsd_module_elf
- knetbsd_module
- knetbsd
- kopenbsd
- kopenbsd_ramdisk
- legacy_initrd_nounzip
- legacy_initrd
- legacy_kernel
- module2
- module
- multiboot2
- multiboot
- ntldr
- plan9
- pxechainloader
- truecrypt
- xnu_kernel64
- xnu_kernel
- xnu_kextdir
- xnu_kext
- xnu_mkext
- xnu_ramdisk
- xnu_resume
- xnu_splash
- chainloader
- initrd
- initrd16
- linux
- linux16
- xen_hypervisor
- xen_module

### General commands (4)

- serial
- terminal_input
- terminal_output
- terminfo

### Command-line commands (80)

- [
- acpi
- authenticate
- background_color
- background_image
- badram
- blocklist
- boot
- cat
- clear
- cmosclean
- cmosdump
- cmostest
- cmp
- configfile
- cpuid
- crc
- cryptomount
- cutmem
- date
- devicetree
- distrust
- drivemap
- echo
- efitextmode
- eval
- export
- false
- fwsetup
- gdbinfo
- gettext
- gptsync
- halt
- hashsum
- help
- hexdump
- insmod
- keystatus
- list_env
- list_trusted
- load_env
- loadfont
- loopback
- ls
- lsfonts
- lsmod
- md5sum
- module
- multiboot
- nativedisk
- normal
- normal_exit
- parttool
- password
- password_pbkdf2
- plainmount
- play
- probe
- rdmsr
- read
- reboot
- regexp
- rmmod
- save_env
- search
- sendkey
- set
- sha1sum
- sha256sum
- sha512sum
- sleep
- smbios
- source
- test
- true
- trust
- unset
- verify_detached
- videoinfo
- wrmsr

### Networking commands (16)

- net_add_addr
- net_add_dns
- net_add_route
- net_bootp
- net_del_addr
- net_del_dns
- net_del_route
- net_dhcp
- net_get_dhcp_option
- net_ipv6_autoconf
- net_ls_addr
- net_ls_cards
- net_ls_dns
- net_ls_routes
- net_nslookup
- net_set_vlan

### Undocumented commands (84)

- all_functional_test
- backtrace
- boottime
- cacheinfo
- cbmemc
- cmosset
- coreboot_boottime
- dump
- efiemu_loadcore
- efiemu_prepare
- efiemu_unload
- exit
- extract_entries_configfile
- extract_entries_source
- extract_legacy_entries_configfile
- extract_legacy_entries_source
- extract_syslinux_entries_configfile
- extract_syslinux_entries_source
- fakebios
- file
- fix_video
- fpswa
- functional_test
- gdbstub_break
- gdbstub
- gdbstub_stop
- hdparm
- hexdump_random
- inb
- inl
- inw
- jpegtest
- keymap
- legacy_check_password
- legacy_configfile
- legacy_password
- legacy_source
- loadbios
- lsacpi
- lsapm
- lscoreboot
- lsdev
- lsefi
- lsefimmap
- lsefisystab
- lsmmap
- lspci
- lssal
- lsspd
- macppcbless
- mactelbless
- net_set_vlan
- outb
- outl
- outw
- pcidump
- pngtest
- read_byte
- read_dword
- read_word
- setpci
- suspend
- syslinux_configfile
- syslinux_source
- test_blockarg
- testload
- testspeed
- tgatest
- time
- tr
- usb
- vbeinfo
- vbetest
- videotest
- write_byte
- write_dword
- write_word
- xen_cat
- xen_ls
- xnu_devprop_load
- xnu_uuid
- zfs-bootfs
- zfsinfo
- zfskey

## Reference

The following sources have been useful to assemble this document:

- [Binary packages containing manpages in Debian trixie](https://manpages.debian.org/contents-trixie.html)
- [Shell Builtin Commands](https://www.gnu.org/software/bash/manual/html_node/Shell-Builtin-Commands.html)
- [Kali Tools](https://www.kali.org/tools/)
- [GRUB Available commands](https://www.gnu.org/software/grub/manual/grub/html_node/Commands.html)
- `info`
- `compgen -b`

[//]: # (regex patters for counting)
[//]: # (\s\*\*\*\n)
[//]: # (\s\+\+\n)
[//]: # (\s\?\?\n)
[//]: # (^-\s)
 
Last edited:
Thank you indeed for that cornucopia of commands, and for the sheer conscientiousness and dedication for the creation of this impressive database.

There are so many commands that I've never seen before, and many many more I've never used, my head could spin itself right off my shoulders going through them I think. I guess I'd use a little over a 100 system commands, plus a number of boutique script commands during my normal work on the machines here. One uses what one needs I suppose.

In thinking about the executable commands available on this computer, I guess a reasonable approximation could come from the following:
Code:
$ find /usr/bin /usr/sbin /usr/libexec -perm -111 | wc -l
3273
That command is not bash-specific.

The total number of executable commands is going to depend on the number of packages installed, which on this debian machine is the following:
Code:
$ dpkg -l | grep ^ii | wc -l
2255
Congratulations on the diligent job you have accomplished.
 
Last edited:
I gotta insert something important about efibootmgr, since nowadays so many are using it. Especially if you're with dual boot and wanna remove Windows. Apart from the brutal commands to remove Windows which remove it without a trace:

(in all commands below "#" stands for "sudo" and "$" stands for "user")
(you can use them either by running a live desktop of any distro, or by booting into your linux installation, if you remember on which disk it's installed)
Code:
# wipefs -a /dev/sdx
# mkfs.ext4 /dev/sdx
(where x is the letter of the storage where Windows partitions are, like sdd, for instance) Use the designation for the entire Windows storage, not partition numbers! That will erase ALL Windows partitions at once and replace them with one single filesystem - ext4 or another, depending on what you've entered. I prefer XFS.
This is for the most typical use case: Windows in a small partition on sdx and the rest of the free space serves as D:\.
If Windows uses more than one partition for data (games, etc), then you'll have to use the above commands + the same but with partition number.

If you run just efibootmgr without any additional commands, it will show you a list of all possible entries. But if you follow its own help page to delete an entry, it will keep spitting errors. I discovered that the hard way. The real command to delete an entry (Spyware has 2 entries, btw - one obvious and one hidden. The hidden comes to play when you remove the obvious.) is:

Code:
# efibootmgr -Bb [the four digits of an entry number]

Example:

Code:
# efibootmgr -Bb 0000

Spyware always rewrites the boot order in BIOS and makes itself first (so much for the "We love Linux" BS...). After you delete the first entry, use $ efibootmgr again to look for the hidden leftover. Usually it's the last available entry or closer to the last, which means the entry number will be like 0016 or greater. You may even have to reboot before seeing the hidden entry because it doesn't always become obvious from the first run. So, after you reboot to a live desktop again, run $ efibootmgr again to look for the hidden entry.
 
Last edited:
Spyware always rewrites the boot order in BIOS
Now that's something, will certainly add to my procedure for system reinstall, thanks for sharing!

But if not using dual boot with Windows then this can't happen without root right?
Editing grub boot manager requires root.
 
Now that's something, will certainly add to my procedure for system reinstall, thanks for sharing!

But if not using dual boot with Windows then this can't happen without root right?
Editing grub boot manager requires root.
Only Spyware does this rewriting. Linux doesn't and AFAIK you can't install either one on an Apple computer. That leaves to think about only Spyware.

I've added a note about sudo but I guess you didn't see it, so now I made it larger and better visible in the post.

P. S. $ efibootmgr works, since it's about reading the list of entries. Only deleting them requires sudo.
 
Last edited:
Checkout the debram package:
Code:
Debian GNU/Linux provides thousands upon daunting thousands of commands.
Sorting them into broad classes then dividing and redividing them into finer,
more specific branches, the Debram ramifies Debian's commands in much the same
manner as a university library ramifies its books.  If you know what you want
your computer to do but do not yet know the command to do it, you can find the
command here.

(The Debram package used also -- indeed mainly -- to include a much larger and
more important ramification of Debian *packages,* along with a browsing tool;
but Debtags has superseded Debram in those respects.  What the Debram package
still includes however is the Command Selection Guide, which though somewhat
outdated may still be of use.)

And the debian-refcard: https://www.debian.org/doc/user-manuals#refcard
printable reference card for the Debian system
 
To get a few pages of all the terminal commands use
compgen -A function -abck | sort -u | xargs printf "%s . "
 
To get a few pages of all the terminal commands use
compgen -A function -abck | sort -u | xargs printf "%s . "
Without stealing thunder from that cracker command, perhaps some additional info about it might be of interest to readers.

Firstly, the compgen command is bash specific, so it will be informative on systems running the bash shell. The command thus will include:
system commands;
bash shell builtin commands;
bash aliases;
bash shell functions;
bash shell reserved words;

It will also output users' commands set in /home/$USER/bin, if such has been configured.

As the command appears in post #8, the output separates the list of commands by a dot in what is likely to be output as a long single line. A tweak to make the listing one command per line would be accomplished by amending the printf command to: printf "%s\n" . In that case, one can pipe the whole command through: wc -l to output a total number of the commands found, thus:
Code:
compgen -A function -abck | sort -u | xargs printf "%s\n" | wc -l
The output can be redirected to a file if desired:
Code:
compgen -A function -abck | sort -u | xargs printf "%s\n" > terminal-commands.txt

For outputting system commands in any linux shell, one may need to be more specific by specifying the directories in which executables occur and hunt the commands out with a find command. For example one might start with the executables in one's $PATH:
Code:
$ echo $PATH
/home/ben/bin:/usr/local/bin:/usr/bin
and then, insert the directories in a find command and output the result in a file that will list the commands one to a line with full paths:
Code:
$ find /home/ben/bin /usr/local/bin /usr/bin -perm -111 > terminal-commands.txt

To find all the directories in a system that contain executables, one could run something like the following to put the output into a file. It takes a while to run because it runs over the whole filesystem, but for the seeker of the comprehensive, it might be of interest:
Code:
$ find / -type f -executable -exec dirname {} \; 2>/dev/null | sort -u > directories-with-executables
 
I used the dot to make sure the commands were separated, and I did not want more than a couple of dozen pages with just left had side used, I find it quicker looking for things on just 5 pages
 
GOOD ONE
Has anybody thought of putting all these command into say LibreOffice Database, (equivalent to excel) so could list all the commands in alphabetical order, or with the click of a mouse and absolutely no magic, divide them up into say "Files Management", Network Commands, Packages management, System Management, etc ..... just to start with 4 and do other things with it , that could be done
 
@EricRP
Not bad idea, I was thinking about something else a while ago, putting them into 2 plain text files, 1 file with commands only, 2nd with their short descriptions, and then writing a script that picks a random command or description and you have have to guess the other part and this way learn them every day a little until you become, well, guru hehe.

The file entries would be enumerated somehow so that the script knows the correct answer.

So far I like like *.md format because I'm using markdown and vscode for quick find and study, still 1700+ commands is a lot so something automated and random would be better and faster.
 
It would be good if anybody could add in knowledge to make it grow and a "super editor" to check and fix any errors, or improve the quality.
 
It would be good if anybody could add in knowledge to make it grow and a "super editor" to check and fix any errors, or improve the quality.
That's already done but I didn't say it in previous post.
What I did was run a VM in fresh installed Debian netinst.iso and then run every command from the list to make sure it's default installed and added marks.
Some commands are new default in Trixie, some are deprecated or obsolete, and I took many commands from man pages initially without testing them.
Many commands explained in man pages are not commands at all but just man page about single command with arguments, that's done too.

I didn't test those with asterisks, only some did. but that's not critical issue IMO because they have to be installed anyway.
 
I am very sorry I am doing half a dozen thing at once and going around in circles, I wonder if we can delete some "previous post" so others do not read the same thing wasting time, unless I edit it so it reads "deleted due to mistake"
 
I don't see a problem with replies, every hint or suggestion is useful.
If somebody can make something special from this list and share it here (or spot errors) that would justify my sharing of this list here on forums.
 
Top