How to add a directory to system path

This tutorial explains how to add a directory to system path.

  1. Open ~/.profile
  2. Add the path to the line PATH=”$HOME/bin:$PATH
  3. Use : to separate each path
  4. Save the file
  5. Log out and log back in