Tips and Tricks for FreeBSD

1. Want to have your prompt to display something like this ?

username@hostname currentpath>

Example:

ghostrdr@defcon1.org /usr/home/ghostrdr>

If so, here is the command to do such: set prompt = %n@%m %~>

For other options that you can have off the command prompt, do man tcsh


2. Problems with version 3.1 not seeing your hosts.allow, and hosts.deny after installing FreeBSD v3.1 ?

The problem with this is, if you compiled TCP Wrappers from the ports, then the 3.1 expects them to be in the /usr/local/etc not in the /etc directory. So, these files are no longer seen in the /etc directory anymore, they are seen in the /usr/local/etc instead, so to make sure your system is able to use these files, make sure they are in the /usr/local/etc and NOT in the /etc directory.


3. Want to tar up a directory, then gzip it once you are done with the tar ?

Do the following :

tar cvvfz target.tar.gz dir\