HomePage » GeneralUnix
UNIX Area
Distributions
FreeBSDHPUX
Solaris
AIX
Services / Tools
ZFSssh
Daemontools
vi editor
Disk Quota
System monitoring w/ sar
Expect scripts
screen
crontab
* * * * * command to be executed - - - - - | | | | | | | | | +----- day of week (0 - 6) (Sunday=0) | | | +------- month (1 - 12) | | +--------- day of month (1 - 31) | +----------- hour (0 - 23) +------------- min (0 - 59)
IO redirection
http://linuxreviews.org/beginner/abs-guide/en/c12753.htmlgrepping multiple strings
grep -e "string1" -e "string2" $INFILE
Testing regex
cat << end|perl -e 'while (<>) { $blah .= $_ }; $blah =~ s/REGEXP/\1/g; print $blah;'DST fix
DST fix verificationzdump -v <timezone> | grep 2007
If your systems's zoneinfo files are up to date, you'll get output showing DST changes on March 11 and November 4, eg:
$ zdump -v EST5EDT | grep 2007 EST5EDT Tue Mar 6 13:59:24 2007 UTC = Tue Mar 6 08:59:24 2007 EST isdst=0 EST5EDT Sun Mar 11 06:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 EST isdst=0 EST5EDT Sun Mar 11 07:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 EDT isdst=1 EST5EDT Sun Nov 4 05:59:59 2007 UTC = Sun Nov 4 01:59:59 2007 EDT isdst=1 EST5EDT Sun Nov 4 06:00:00 2007 UTC = Sun Nov 4 01:00:00 2007 EST isdst=0
tcpserver problem
If you see this error
@40000000478326f0206cc9f4 tcpserver: fatal: temporarily unable to figure out IP address for 0.0.0.0: file does not exist
Do this and it fixes it instantly. Stupid FreeBSD, don't ask me why
touch /etc/dnsrewrite