Archive for the ‘Unix’ Category
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, 2007Php 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, 2007yum -y install ImageMagick
Must be root or admin to do this.
VI commands
Wednesday, September 5th, 2007Don’t us the VI editor as efficiently as I should, so need some cheat sheets.
Unix Commands
Wednesday, August 29th, 2007Unix 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
- OS X commands
- Macosxhints.com - 10.3: Use fast user switching from the Terminal
-
/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -switchToUserID $USERID