From owner-freebsd-bugs Fri Jan 18 7:50:29 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4064237B420 for ; Fri, 18 Jan 2002 07:50:05 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0IFo5e44654; Fri, 18 Jan 2002 07:50:05 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id C6C4C37B400 for ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/34039: [PATCH] - New Freebsd-Tips for fortune(6) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 34039 >Category: misc >Synopsis: [PATCH] - New Freebsd-Tips for fortune(6) >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: wish >Submitter-Id: current-users >Arrival-Date: Fri Jan 18 07:50:05 PST 2002 >Closed-Date: >Last-Modified: >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 - >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 % +"man security" gives very good advice on how to tune the security of your +FreeBSD system. + -- Hiten Pandya +% +Want to find a specific port, just type the following under your ports directory: + "make search key="" + + -- Hiten Pandya +% +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 +% +Want to specify additional "swap and pagging" devices, just type: + swapon + +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 +% 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 % 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 % -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 @@ -430,7 +460,7 @@ Got some time to kill? Try typing "hangman". -- Dru % -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 % To repeat the last command in the C shell, type "!!". >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message