Category: Linux Administration

Oct 11 2009

FIND Command to remove files in a Directory

FIND Command to remove files in a Directory

- remove all files in a directory:

find /var/spool/mqueue ?type f ?exec rm {} \;

Oct 11 2009

Split the large file

Split the large file

- to split a large file. creates numerous output files with a suffix added

split -l 10000

ex. split -l 10000 alertTEST.log alertTEST_

Oct 11 2009

APACHE configure Information

APACHE Server Information
- dirs

– $ORACLE_HOME/Apache/.

– $APACHE_HOME: $ORACLE_HOME/Apache/Apache/.

- logs: $APACHE_HOME/logs/.

- main apache server config files

– $APACHE_HOME/conf/httpd.conf

– $APACHE_HOME/conf/oracle_apache.conf

- apachectl (version 9)

– in $APACHE_HOME/bin

– to check config: $APACHE_HOME/bin/apachectl configtest
– start: $APACHE_HOME/bin/apachectl start
– stop: $APACHE_HOME/bin/apachectl stop

- httpdsctl (version 8)

– in $APACHE_HOME/bin

– httpdsctl help

– httpdsctl configtest

– httpdsctl stop: stop apache

– httpdsctl start: start apache

– httpdsctl startssl: start apache with SSL enabled

– httpdsctl restart

Alibi3col theme by Themocracy