comment 0

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: https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/virtualization-guest-virtualbox.html

# cd /usr/ports/emulators/virtualbox-ose-additions && make install clean
/etc/rc.conf:
vboxguest_enable="YES"
vboxservice_enable="YES"
vboxservice_flags="--disable-timesync"

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.

Filed under: bsd

Leave a Reply

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

WordPress.com Logo

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

Google photo

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

Twitter picture

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

Facebook photo

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

Connecting to %s