Skip to content

Instantly share code, notes, and snippets.

@fenimore
Last active December 20, 2017 15:29
Show Gist options
  • Save fenimore/414ab1a9f1a35f630d5a38cd16d5168c to your computer and use it in GitHub Desktop.
Save fenimore/414ab1a9f1a35f630d5a38cd16d5168c to your computer and use it in GitHub Desktop.
Post install help

Install homebrew: https://brew.sh/

run this: (I just pasted this from the site)

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

/usr/bin is a directory where a lot of binaries are located

brew is the application one uses (among others) for Mac to download and install packages -- it's called a package manager. It's pretty super useful for all things developer related. Get it

Basic commands

here are some commmand to run in the terminal that will be useful: (off the top of my head)

$ man cd # `man` any program to read it's documentation
$ cd # change directory
$ cd .. # go up a directory
$ ls # list files
$ ls -l # list details
$ rm -r # remove directory recursively
$ rm * # remove all files
$ rm *.txt #remove all txt files
$ mkdir # make directory
$ cp # copy
$ grep -r "Some string" # search recursively for a string in the files
$ touch TODO.txt # create empty file
$ top # check cpu, install `htop` for more :)
$ cat file.txt # print contents of file to stdout
$ echo Hello # print hello to standard out
$ which python # path to binary
$ whomai  # who is the user
$ pwd # current working directory
$ ping google.com # ping goolge to check connection
$ ps -A # list running processes
$ ps -A | grep "firefox" #find a process called firefox
$ wget everythingisreally.com # or curl, makes HTTP request

Instead of the shell bash, which is the default, try installing fish

brew install fish

and changing your shell to it by either running fish (For just one session)

fish

or by changing your shell

chsh -s $(which fish) # or chsh -s /usr/local/bin/fish

that'll give you shell completion and autocorrect, which is really useful to begin with.

Useful applications you'll probably install

  1. fish
  2. git
  3. Ipython notebook ****** <- really though try this
  4. pip # python package manager
  5. rvm # ruby virtual env, consider using this
  6. tree # outputs the directory as a tree
  7. htop # cool stats
  8. npm # package manager for javascript
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment