Categories
Code Linux MAC UNIX Wordpress

WordPress Backup on CentOS

Now that I’ve moved my website over to CentOS, I’ll be showing you how I do backups. My Setup VirtualBox – CentOS web server running WordPress iMac – connected Drobo Goal Run daily mysql backups Run weekly website backups Only keep the latest two backups Run daily rsync’s to my Drobo from my iMac CentOS — […]

Categories
Linux UNIX

Useful Linux find Commands

General Find all files and directories starting from the current directory (including all subdirectories). find . Find all files starting from the current diretory (including all subdirectories). find . -type f Find all directories starting from the current directory (including all subdirectories). find . -type d Find all hidden files starting from the current directory […]

Categories
Linux UNIX

ZIP & UNZIP Files & Directories

I thought I’d create a quick reference of useful zip and unzip commands for those of you that aren’t too familiar doing it via command line. Definition: zip is a compression and file packaging utility for Unix, VMS, MSDOS, OS/2, Windows NT, Minix, Atari and Macintosh, Amiga and Acorn RISC OS. ZIP a File zip […]

Categories
Linux UNIX

chmod

I thought I’d share my notes on chmod for those of you that are just starting out. Enjoy! Categories Break the permissions up into 3 categories: User Group Other Each category can be given 3 types of permissions: Read (4) Write (2) Execute (1) To give the proper permissions, add up the total numbers within […]

Categories
Linux UNIX

lsof – List Of Open Files

Files opened by processes running on your system. # lsof List all opened internet sockets. # lsof -i List all opened internet sockets on port 80. # lsof -i :80 List all udp or tcp connections. # lsof -i udp # lsof -i tcp # lsof -i tcp:80 Files open by PID. # lsof -p […]