man <commnad>
. = current directory
~ = home directory
$HOME = home directory
pwd = print current directory
cat <file> = print file content
cat > <file> << EOF = write output stream into a file
export VAR=VALUE = export environment variable
hitting TAB will auto-complete
id -u - get the current user id
cd - move to the home directory
cd - - move to latest directory
get the path of a symbolically linked file
>> where zsh
>> /usr/local/bin/zsh
>> readlink /usr/local/bin/zsh
>> ../Cellar/zsh/5.3.1/bin/zshenvironment variables are usually stored here cat ~/.profile
vim <file> = open vim for theis file
Esc or Ctrl+[ = get into command palette
commands:
i= insert mode - editing:w= write the changes into the file:q= quit vim:wq= write and quit vim
echo 'export GOPATH=$HOME/code/go' >> $HOME/.profile
echo 'export PATH=$PATH:/usr/local/go/bin' >> $HOME/.profile