You can press Ctrl-D to quickly exit from a shell, or logout from a
login shell.
-- Konstantinos Konstantinidis <kkonstan@duth.gr>
FreeBSD Fortune
Posts
-
You can press Ctrl-D to quickly exit from a shell, or logout from alogin shell. -
To see the MAC addresses of the NICs on your system, typeTo see the MAC addresses of the NICs on your system, type
ifconfig -a
-- Dru <genesis@istar.ca> -
You can disable tcsh's terminal beep if you `set nobeep'.You can disable tcsh's terminal beep if you `set nobeep'.
-
Ever wonder what those numbers after command names were, as in cat(1)?Ever wonder what those numbers after command names were, as in cat(1)? It's
the section of the manual the man page is in. "man man" will tell you more.
-- David Scheidt <dscheidt@tumbolia.com> -
To save disk space in your home directory, compress files you rarelyuse with "gzip filename".To save disk space in your home directory, compress files you rarely
use with "gzip filename".
-- Dru <genesis@istar.ca> -
Do you wonder what a terminal program is doing at the moment?Do you wonder what a terminal program is doing at the moment? dd(1) does not
show any throughput? Hit "^T" (Control + t) to send SIGINFO to the process
and see what it is doing.-- Lars Engels <lme@FreeBSD.org>
-
Do you want to do a binary upgrade of your running FreeBSD installation?Do you want to do a binary upgrade of your running FreeBSD installation? Use freebsd-update(8).
To install updates and patches for the running branch use
# freebsd-update fetch installTo upgrade to a newer release use
# freebsd-update upgrade -r ${name_of_release}-- Lars Engels <lme@FreeBSD.org>
-
The output of "zfs list" can be sorted by a specific column using -s.The output of "zfs list" can be sorted by a specific column using -s. To
sort the datasets by the "used" column in ascending order, run this command:zfs list -s used
To sort in descending order instead, use -S:
zfs list -S used
-- Benedict Reuschling <bcr@FreeBSD.org>
-
To clear the screen, use "clear".To clear the screen, use "clear". To re-display your screen buffer, press
the scroll lock key and use your page up button. When you're finished,
press the scroll lock key again to get your prompt back.
-- Dru <genesis@istar.ca> -
Need to leave your terminal for a few minutes and don't want to logoutNeed to leave your terminal for a few minutes and don't want to logout?
Use "lock -p". When you return, use your password as the key to unlock the
terminal.
-- Dru <genesis@istar.ca> -
To see the last time that you logged in, use lastlogin(8).To see the last time that you logged in, use lastlogin(8).
-- Dru <genesis@istar.ca> -
Need to do a search in a manpage or in a file you've sent to a pager?Need to do a search in a manpage or in a file you've sent to a pager? Use
"/search_word". To repeat the same search, type "n" for next or "p" for
previous.
-- Dru <genesis@istar.ca> -
You can search for documentation on a keyword by typingYou can search for documentation on a keyword by typing
apropos keyword
-
Any user that is a member of the wheel group can use "su -" to simulatea root login.Any user that is a member of the wheel group can use "su -" to simulate
a root login. You can add a user to the wheel group by editing /etc/group.
-- Konstantinos Konstantinidis <kkonstan@duth.gr> -
You can use /etc/make.conf to control the options used to compile softwareon this system.You can use /etc/make.conf to control the options used to compile software
on this system. Example entries are in
/usr/share/examples/etc/make.conf and in make.conf(5).
For options that are set for building FreeBSD's kernel and its world, see
src.conf(5). -
To find out the hostname associated with an IP address, useTo find out the hostname associated with an IP address, use
drill -x IP_address
-- Dru <genesis@istar.ca> -
Want to strip UTF-8 BOM(Byte Order Mark) from given files?Want to strip UTF-8 BOM(Byte Order Mark) from given files?
sed -e '1s/^\xef\xbb\xbf//' < bomfile > newfile
-
If you don't want to edit /etc/rc.conf directly, use sysrc(8) to add and remove entriesIf 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 <lme@FreeBSD.org>
-
Don't let your zpool fill up completely by creating a dataset withreservation.Don't let your zpool fill up completely by creating a dataset with
reservation.# zfs create -o refreservation=<5% of total pool space> <poolname>/reserved
You can always shrink the reserve if you need the space, but your pool will
always have space left this way.-- Benedict Reuschling <bcr@FreeBSD.org>
-
To see how much disk space is left on your UFS partitions, useTo see how much disk space is left on your UFS partitions, use
df -h
-- Dru <genesis@istar.ca>