Archive for March, 2012

Great terminal and useful mac osx commands I came across recently

Having never actually known about these commands in the past, i’m quite taken by them.

I am documenting them here for future reference.

ctrl+u – clears current line in terminal
ctrl+l – clears terminal commands without having to run the cmd ‘clear’

cmd+d – creates a split terminal window
cmd+d+shft – removes the split terminal window

cmd+shft+{ – previous terminal tab
cmd+shft+} – next terminal tab

mkdir -p /this/is/avery/long/directory/structure/and/would/be/annoying/tocreate/

Will create the directory structure in one command for you rather than doing many commands.

top – Shows the running processes on your mac

Checking out remote branch in Git

Simply blogging this for future reference and in the hope it will be useful for someone else.

To checkout a remote branch into your local use the following commands.

git clone
git branch -r

Will show you all the remote branches pick the one you like…

For instance for me it would be origin/dave.

Run the following command.

git checkout --track origin/dave

WordPress in two sentences

Recently tasked with doing this for work, what is WordPress? Explain in two easily understandable sentences:-

WordPress is web software you can use to create a beautiful website or blog quickly, feature full and user friendly. We like to say that WordPress is both free and priceless at the same time.