Archive for February, 2009

How to list the total size of a directory with ls or du in LINUX CENTOS 5

tom on February 11th, 2009

simply issue du -sh

or ls -lah | grep “filename”

Post a comment | Comments Off

How to list the contents or files from a tar.gz file in LINUX CENTOS 5.2

tom on February 11th, 2009

I keep forgetting how to do this… so here goes:

tar -tvzf tarfile.tar.gz

non gzip file:

tar -tfv tarfile.tar

Post a comment | Comments Off

php 5.2.x with curl, GD as fastcgi

tom on February 7th, 2009

./configure –enable-fastcgi –enable-discard-path –enable-force-redirect –with-gd –with-jpeg-dir=/usr/local/lib –with-png-dir=/usr/local/lib –with-curl=/usr

for media server on php 5 under lighty

use yum install curl*

and further:

yum update lvm2 pcre yum libxml2 python pcre-devel rhnlib xorg libxml2-devel libxml2-python

just to be safe

then make
make install

Post a comment | Comments Off