-->
NameService Troubleshooting Commands
nslookup -query=any wackytronix.com Lookup name for wackytronix. Get any info. dig -x 198.139.168.65 Similar to nslookup named-xfer -f test -z riptideweb.com mail.riptideweb.com Get zone file for riptideweb.com from mail.riptideweb.com Put zone file into file called "file"Yet More Commands
rsync -az -e ssh local_dir/ target.host.net:target_dir recusive rsync perl -MData::Dumper -e exit Test weather a particular Perl Module is installed perl -wpe 's/\r//;' < filename Rid a file of those pesky linefeeds that Windose puts in text groff -man /full/path/manpage.1 | lpr print a manpage man -t ls > cmd.ps generates a printable postscript file from a manpage of ls man ls | col -b > local_man convert the ls manpage to text and redirect output to file names "local_man" 30 1 * * * /usr/bin/find /mnt/disk3/oracle/hot_backups -mtime +0 -exec rm {} \; Cron Entry: Removes backup files more than a day old at 1:30 AM find / -local -type f \( -perm -4000 -o -perm -2000 \) -print Find setuid and setgid files find / -local -type f \( -perm -4000 -o -perm -2000 \) -exec ls -ld '{}' \; Find setuid and setgid filesPowerful stuff
find . -type f -exec grep -l STRING '{}' \; Way cool command! This will recursively go down the current directory tree and print out every file that has 'STRING' in it. perl -e "s/OLD_STRING/NEW_STRING/g;" -pi $(find . -type f) Recursively goes down from the current directory replacing every instance of 'OLD_STRING' with 'NEW_STRING' within every file. perl -MFile::Find -e 'finddepth sub {rename $_, lc($_)}, "."' Recursively lower case filenames below current directory below current directory
Bash Prompt HOWTO
BASH Programming HOW-TO