I'm the maker of Nomad List, Remote OK, and Hoodmaps and I experiment w/ 3D. I travel to work from anywhere, bootstrap side projects into open startups and only own what fits in my backpack. I also made 12 startups in 12 months. Before doing startups, I started a YouTube w/ 100+ mln views. Follow me on Twitter or read my blog. You can buy my book MAKE now.

OSX Terminal Tricks

Here’s my list of tricks I use in the OSX terminal to work faster since switching from PC to Mac.

SHOW FILE CONTENTS IN BASH

cat filename

ZIP A FILE

zip filename

UNZIP A FILE

unzip filename

CONNECT TO TELNET SERVER IN TERMINAL

ssh username@hostname

DOWNLOAD FILES VIA SSH

scp your_username@remotehost.edu:foobar.txt /some/local/directory

MOVE TO BEGINNING OR END OF LINE IN SHELL

Fn-Cursor Left and Fn-Cursor Right (since Cmd-Left and Cmd-Right don’t work in the shell)

RUN SHELL COMMAND ASYNCHRONOUS/IN BACKGROUND

Do not wait for output until continueing
command &
e.g. curl http://google.com &

RUN APACHE WEB SERVER ON OSX
Apache is pre-installed (!) on OSX. Insane. You can activate it in the terminal:

sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist

Apache’s config files are located in:

/private/etc/apache2/httpd.conf

EDITING YOUR HOSTS FILE
It’s located at:

/private/etc/hosts

FLUSH YOUR DNS CACHE AFTER EDITING YOUR HOSTS FILE

sudo killall -HUP mDNSResponder

CREATE SYMBOLIC LINKS (Fake folders that mirror other folders, e.g. like Substr on Windows/DOS)

ln -s /users/username/photos /photos

P.S. I just wrote a book on bootstrapping indie startups called MAKE. And I'm now on Twitter too if you'd like to follow more of my adventures. I don't use email so tweet me your questions.

My adventures