FreeBSD Cheat Sheet

To update the system, type:

# freebsd-update fetch
# freebsd-update install

To search for new software and install it, type:

# pkg search vim
# pkg install emacs

To search the ports collection, type:

# cd /usr/ports
# make search name=lsof

Using the portupgrade utility:

# cd /usr/ports/ports-mgmt/portupgrade
# make install clean
# portupgrade -a
# portsclean -C

Running as a guest in VirtualBox:

# cd /usr/ports/emulators/virtualbox-ose-additions && make install clean

To scroll the console up or down, press Scroll Lock. Then you can use the arrow keys, page up/down to scroll around in the console window. When you’re done, press Scroll Lock again.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s