Useful stuff

Disk Space:

DF

Find and Remove Empty Directories:

find . –type d –empty

find . –type d –empty –exec rmdir {} ;

MYSQL to File Dump:

#!/bin/bash

mysqldump -uUSER -pPASS -t -T/HOME/MYDIR/ DATABASE SPECIFICTABLE --fields-enclosed-by=" --fields-terminated-by=,

HOST='MyServer'
USER='MyUser'
PASSWD='MyPass'
DESTDIR='DIR/DIR'
TEXTFILE="SPECIFICTABLE.txt"
FTPFILE=$$.ftp

echo "user ${USER} ${PASSWD}" > $FTPFILE
echo "cd ${DESTDIR}" >> $FTPFILE
echo "put $TEXTFILE" >> $FTPFILE
echo "quit"echo " >> $FTPFILE
cat $FTPFILE | ftp -n -i ${HOST}
rm $FTPFILE

Also this was enlightening http://www.gwern.net/Silk%20Road

http://linuxsagas.digitaleagle.net/2011/08/24/tips-for-webex-on-64-bit-fedora-15/

Leave Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.