Hail, guys! Below is a FreeBSD Cheat Sheet separated by category.
Assembly Commands
- Mount MS-DOS file system (USB stick, external FAT32 drive)
- Mount ISO 9660 using memory disk
update commands
- Run FreeBSD binary update
pkg
commands
- Update package databases from repository
- Remove unused dependencies
- Update packages to a new version
- Lock package for current version and display locked packages
- Find the file installation package:
- Find the file if the package is not installed:
Network Commands
- TCP sockets open (
LISTEN
, ESTABLISHED
, CLOSE_WAIT
)
- Consult the tcp dtrace script at:
/usr/share/dtrace
Commands from kernel modules
- Lists loaded kernel modules
- Kernel load module (HW thermal sensors)
- Generate hints for the boot loader
- Dump(Dump) the running kernel configuration
Commands for ports
- Update and extract snapshots
- Search for a
ports
in the tree
- Regenerate the information hash of the distfile(s)
- Change KNOB/Options configuration
- List Makefile destinations from
ports
- List dependencies to rebuild
- Rebuild
ports
without building their dependencies
Commands for src
- Extract
/usr/src
Makefile targets with descriptions (lists all available targets)
- Enter the userland binary utility source code folder (e.g. ls)
poudriere
commands
Development commands
For a specific branch
, eg. Version 12.x:
Commands for Wireless (Wireless networks)
- List wireless SSID hotspot (with wlan0 device)
- Debug the wireless network “stack”
Build commands
- Build the “world” and the kernel
hardware commands
memory commands
sound commands
- Input and Output statistics for device read/write
Commands to/from ZFS
- List and mount ZFS datasets
freebsd
bsd
unix
Marcos Oliveira
Software developer