Skip to content

Latest commit

 

History

History
96 lines (84 loc) · 1.14 KB

File metadata and controls

96 lines (84 loc) · 1.14 KB

Basics

  • echo
  • cd/ls
  • mv/cp
  • !$
  • man
  • which/type
  • chmod
  • sudo
  • bc
  • wc
  • tar
  • say

Envinronment

  • ~/.bash_profile
  • $PATH
  • alias
  • export
  • history
  • !#/usr/bin/env

Package Managers

  • brew (osx)
  • apt-get (linux)
  • pip/conda (python)
  • gem (ruby)
  • npm (js)

Interface with the outside world

  • ssh
  • curl
  • scp
  • sftp

Process management

  • ctrl+c
  • ctrl+z
  • bg/fg
  • jobs
  • sleep
  • kill
  • crontab/launchctl
  • screen
    • ctrl+a + d (detach)
    • screen -ls (list)
    • screen -r (reattach)
  • ps
  • purge

Display/manipulate file content

  • cat
  • head/tail
  • less
  • sort
  • uniq

Find/replace

  • find
  • grep
  • sed
  • awk
  • tr
  • cut

Csvkit

  • pip install csvkit
  • csvlook | less -S
  • csvcut
  • csvsort
  • csvstat

Working with Json

Git Basics

  • git help
  • git add/rm/mv
  • git commit
  • git pull/push
  • git remote add/-v
  • git log --oneline --graph
  • git diff
  • git init/clone
  • git branch
  • git reset

Recommendations

  • brew for osx
  • oh-my-zsh

Controling OSX

  • osascript