Category FreeBSD

download http directory

Here’s a quick note on how to download the contents of an http directory via command line. Using lftp to download an HTTP directory Forget wget, lftp is what you covet! What is lftp? LFTP is a sophisticated ftp/http client,…

cURL Examples

Great examples of how to use cURL from  1. Download a Single File The following command will get the content of the URL and display it in the STDOUT (i.e on your terminal). $ curl To store the output…

ossec clear database

To delete all currently stored alerts and related data in the ossec database execute these commands in MySQL Editor: truncate table alert; truncate table data; Bash Script: #!/usr/local/bin/bash # #Stop ossec, remove old alerts, start ossec echo “stopping ossec” /var/ossec/bin/ossec-control…

howto move mysql freebsd without dump

to move mysql on freebsd without using a dump file follow these steps: stop mysql copy /var/db/mysql to its new location chown -R mysql:mysql modify and add line mysql_dbdir=”“ modify and change mysql_dbdir=”/var/db/mysql” to the new location of…