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
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.
- fish
- git
- Ipython notebook ****** <- really though try this
- pip # python package manager
- rvm # ruby virtual env, consider using this
- tree # outputs the directory as a tree
- htop # cool stats
- npm # package manager for javascript