# FreeBSD Cheat Sheet A collection of commands I use frequently and still don't remember. ## pkg ### Display the message after first installing the application ```sh pkg show -D ``` ## iocage ### Setup a new jail with vnet ```sh iocage create -n ip4_addr="10.192.0.28/24" defaultrouter="10.192.0.1" allow_raw_sockets=1 vnet=on boot=on interfaces="vnet0:em0bridge" -r 13.2-RELEASE ``` ## zfs ### Show holds on a specific snapshot If snapshots return as dataset is busy upon deletion, they are either dependent or use a tag that prevents them from being deleted. The command below will display any holds on a snapshot. ```sh zfs holds -r ``` To release the snapshot from a tag ```sh zfs release -r ``` ### Migrate dataset to new pool ```sh zfs snapshot -r old_pool/@relocate zfs send -Rv old_pool/@relocate | zfs receive -d new_pool/ ``` ## tcsh ### Execute command from history ```sh history | grep ! ```