-
-
Save windyinsc/f7008ccfc9472e89e2ad5cef6fa74994 to your computer and use it in GitHub Desktop.
nothing new. just to remember some commands on OS X
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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