Archive for the ‘Unix’ Category

Bash Shell Script

Saturday, September 22nd, 2007

A Quick guide to writing scripts using the Bash Shell

Recursively chmod

Saturday, September 22nd, 2007

/dev/movabletripe ยป Recursively chmod directories only

html

find . -type f -name ‘*.htm*’ -exec chmod 644 {} \;

ignore directories

find . -type f -exec chmod 644 {} \;

directories only

find . -type d -exec chmod 755 {} \;

Notes from Host Gator

Saturday, September 22nd, 2007

Php support

  • must have resolved dns name
  • cannot use php / php5 through ipaddress/~homedir
  • .htaccess file needs
    • AddHandler application/x-httpd-php5 .php
  • Folders need chmod 755
  • Files need chmod 644

Apachectl on CentOS 4

Friday, September 7th, 2007

/usr/sbin/apachectl restart

Installing ImageMagick on CentOS 4

Friday, September 7th, 2007

yum -y install ImageMagick

Must be root or admin to do this.

VI commands

Wednesday, September 5th, 2007

Don’t us the VI editor as efficiently as I should, so need some cheat sheets.

Unix Commands

Wednesday, August 29th, 2007

Unix Command:

  • wget url
  • ln -s ../../typo3_src-4.1.2 typo3_src-4.1.2
  • ln -s target source
  • tar -tvf appraisal.tar > appraisal.txt
  • tar –delete –file=collection.tar   blues

Mac OS X Commands