Skip to content

Instantly share code, notes, and snippets.

@nellynette
Last active October 21, 2017 09:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save nellynette/6057547 to your computer and use it in GitHub Desktop.
Save nellynette/6057547 to your computer and use it in GitHub Desktop.
nothing new. just to remember some commands on OS X
#to set the variable PATH to the value /bin:/sbin:/user/bin:/user/sbin:/system/Library/, you would enter the following command in a Terminal window:
$ PATH=/bin:/sbin:/user/bin:/user/sbin:/system/Library/ export PATH
#This modifies the environment variable PATH with the value assigned.
#To view all environment variables, enter:
$ env
# Prioritize local folder instead of system folder
$ PATH=/bin:/sbin:usr/local:usr/local/bin:/user/bin:/user/sbin:/system/Library/ export PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment