Tag Archives: mac terminal

How to use dig to get the TTL (time to load) of a domain

Obtaining the TTL for a domain is quite simple. Open up a terminal and meet your new friend ‘dig’. Type the follow, replacing my website …

View more

Tagged: Leave a Comment

Terminal Mv command including hidden files

I often forget how to do this, so this time im going to blog it so that I can always look back at it and …

View more

Tagged: Leave a Comment

Move files from one directory into another without affecting the existing directory using mac terminal

As part of using mac terminal more and more in my own day to day work, I today needed to be able to move all …

View more

Tagged: 1 Comment

Download a file / folder using mac terminal and curl

Simply use the following command: curl -O http://www.yoursite.com/backup/mybackup.tar.gz Will simply download the file to your local machine and your current location. To change the current …

View more

Tagged: 1 Comment

How to create a tar gzip backup of your websites files and folders mac terminal

Simply use the following command: Firstly cd into the directory you want the backup to go into so cd /sites/backups/ tar cvfz backupname.tar.gz /sites/yoursite.com/http This …

View more

Tagged: Leave a Comment

How to remove a entire directory, files and sub directories using mac terminal

Terminal Mac Simply use the following command: rm -rf /sites/yoursite/http2 This will force remove all files and folders under the toplevel folder you specified so …

View more

Tagged: Leave a Comment