If you `set watch = (0 any any)' in tcsh, you will be notified when
someone logs in or out of your system.
To make the "zfs list" output more script-friendly, you can suppress the
output of the headers for each column by passing the -H parameter:
zfs list -H
Another helpful option for script writers is -p, which displays the numbers
in non-rounded, exact values:
zfs list -p
-- Benedict Reuschling
Nice bash prompt: PS1='(\[$(tput md)\]\t <\w>\[$(tput me)\]) $(echo $?) \$ '
-- Mathieu
If you need a reminder to leave your terminal, type "leave +hhmm" where
"hhmm" represents in how many hours and minutes you need to leave.
-- Dru
Can't remember if you've installed a certain port or not? Try "pkg info
-x port_name".
If other operating systems have damaged your Master Boot Record, you can
reinstall it with gpart(8). See
"man gpart" for details.
Need to remove all those ^M characters from a DOS file? Try
tr -d \\r < dosfile > newfile
-- Originally by Dru
Need to quickly empty a file? Use ": > filename".
-- Dru
"man hier" will explain the way FreeBSD filesystems are normally laid out.
-- David Scheidt
Having trouble using fetch through a firewall? Try setting the environment
variable FTP_PASSIVE_MODE to yes, and see fetch(3) for more details.
After you compiled and installed a new version of FreeBSD, use etcupdate(8) to merge
configuration updates.
Run "etcupdate extract" once when your sources match your running system, then run
"etcupdate" after every upgrade and "etcupdate resolve" to resolve any conflicts.
-- Lars Engels
To erase a line you've written at the command prompt, use "Ctrl-U".
-- Dru
Want to go the directory you were just in?
Type "cd -"
You can press Ctrl-L while in the shell to clear the screen.
If you want to get a sorted list of all services that are started when FreeBSD boots,
enter "service -e".
-- Lars Engels
If you don't want to edit /etc/rc.conf directly, use sysrc(8) to add and remove entries.
Use "sysrc name=value" to add an entry and "sysrc -x name" to delete an entry.
-- Lars Engels
"man security" gives very good advice on how to tune the security of your
FreeBSD system.
When you want your users to be able to reboot or shutdown FreeBSD, add them
to the group "operator" and they are allowed to use shutdown(8) and poweroff(8).
-- Lars Engels
Need to see your routing table? Type "netstat -rn". The entry with the G
flag is your gateway.
-- Dru
You can press Ctrl-D to quickly exit from a shell, or logout from a
login shell.
-- Konstantinos Konstantinidis