From nobody@FreeBSD.org  Fri Jan 18 07:41:41 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id C6C4C37B400
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 18 Jan 2002 07:41:40 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g0IFfeB43214;
	Fri, 18 Jan 2002 07:41:40 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200201181541.g0IFfeB43214@freefall.freebsd.org>
Date: Fri, 18 Jan 2002 07:41:40 -0800 (PST)
From: Hiten Pandya <hiten@uk.FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] - New Freebsd-Tips for fortune(6)
X-Send-Pr-Version: www-1.0

>Number:         34039
>Category:       misc
>Synopsis:       [PATCH] - New Freebsd-Tips for fortune(6)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          wish
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 18 07:50:05 PST 2002
>Closed-Date:    Mon Apr 01 00:54:19 PST 2002
>Last-Modified:  Mon Apr 01 00:54:19 PST 2002
>Originator:     Hiten Pandya
>Release:        5.0-CURRENT
>Organization:
The FreeBSD Project
>Environment:
FreeBSD hpdi.ath.cx 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Fri Jan  4 20:46:33 GMT 2002     root@hpdi.ath.cx:/local1/obj/data/dev/src/sys/CURRENT5  i386

>Description:
I am submitting a few good tips for the fortune(6) freebsd-tips which
are displayed on login.  There are 3 new tips I have added, and I
added some information to a tip about changing the BLOCKSIZE environment
variable.

I hope it is useful.
thanks,
regards,

 - Hiten
 - <hiten@uk.FreeBSD.org>
>How-To-Repeat:
n/a
>Fix:
--- freebsd-tips.old    Fri Jan 18 12:06:33 2002
+++ freebsd-tips        Fri Jan 18 12:56:18 2002
@@ -61,7 +61,10 @@
 %
 If you want df(1) and other commands to display disk sizes in
 kilobytes instead of 512-byte blocks, set BLOCKSIZE in your
-environment to 'K'.
+environment to 'K'. You can also use 'M' for Megabytes, 'G' for 
+Gigabytes respectively.  A specific block value can also be
+specified, which can be appended by one of the above specified
+suffixes. (All block values should should be 512 bytes and above)
 %
 To change an environment variable in tcsh you use: setenv NAME "value"
 where NAME is the name of the variable and "value" its new value.
@@ -256,6 +259,33 @@
 "man firewall" will give advice for building a FreeBSD firewall
                -- David Scheidt <dscheidt@tumbolia.com>
 %
+"man security" gives very good advice on how to tune the security of your
+FreeBSD system.
+               -- Hiten Pandya <hiten@uk.FreeBSD.org>
+%
+Want to find a specific port, just type the following under your ports directory:
+     "make search key="<port-name or keyword>"
+
+               -- Hiten Pandya <hiten@uk.FreeBSD.org>
+%
+Want to see the state of your swap partitions, just type "swapinfo" in your
+shell. This command will show information various important pieces of information
+about your swap partitions.
+
+               -- Hiten Pandya <hiten@uk.FreeBSD.org>
+%
+Want to specify additional "swap and pagging" devices, just type:
+       swapon <swap_device>
+
+Examples:
+       1) swapon -a (to turn on all swap devices from /etc/fstab)
+       2) swapon /dev/ad1s2b
+
+This can be useful if you added a swap partition and do not want to
+reboot.
+
+               -- Hiten Pandya <hiten@uk.FreeBSD.org>
+%
 You can often get answers to your questions about FreeBSD by searching in the
 FreeBSD mailing list archives at
 
@@ -306,7 +336,7 @@
 "man boot0cfg" for details.
 %
 Need to see the calendar for this month? Simply type "cal".  To see the 
-whole year, type "cal 2001". 
+whole year, type "cal 2002". 
                -- Dru <genesis@istar.ca>
 %
 Need to quickly return to your home directory? Type "cd". 
@@ -376,7 +406,7 @@
 Need to find the location of a program? Use "locate program_name". 
                -- Dru <genesis@istar.ca>
 %
-Forget how to spell a word or a variation of a word? Use 
+Forgot how to spell a word or a variation of a word? Use 
 
        look portion_of_word_you_know
                -- Dru <genesis@istar.ca>
@@ -430,7 +460,7 @@
 Got some time to kill? Try typing "hangman". 
                -- Dru <genesis@istar.ca>
 %
-To erase a line you've written at the command prompt, use "Ctrl u". 
+To erase a line you've written at the command prompt, use "Ctrl + u". 
                -- Dru <genesis@istar.ca>
 %
 To repeat the last command in the C shell, type "!!". 

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: joe 
State-Changed-When: Mon Apr 1 00:53:31 PST 2002 
State-Changed-Why:  
I've tweaked the existing ones, and added most of the new ones. 
I wasn't sure that the 'swapon' one was relevant to a user. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=34039 
>Unformatted:
