tricks

Disk destroyer tips and tricks

DD is an extremly usefull tool for the seasoned and novice sys-admin here are some commands I have found usefull...

Create a file xKb in size containing random data.

dd if=/dev/urandom of=/tmp/my_random.dat bs=1kb count=10

 

Simple time command for testing disk rw

time dd if=/dev/zero of=/tmp/writetest.tmp bs=1M count=1024

Apache tweaks for production.

*Note: Incomplete

Here are some of the options I have found useful / acceptable in a production apache setup, please note I make no guarantee that these settings will work for your setup. that said enjoy your tweaking.

When every byte counts...

Cleaning all comments from apaches configuration files.
sed '/^\#/d' /etc/apache2/apache2.conf > /tmp/production_apache2.conf

When you are sure its ok to replace it.
mv /tmp/production_apache2.conf /etc/apache2/apache2.conf

Syndicate content