Posts

Showing posts from June, 2020

[Mac OS] How to Add to the Shell Path in macOS Catalina 10.5 using Terminal

Image
The  shell path  for a user in macOS is a set of paths in the filing system whereby the user has permissions to use certain applications, commands, and programs without the need to specify the full path to that command or program in the  Terminal . So instead of running something like this, with a path to the command: /usr/local/mysql/bin/mysql You can just type the command, regardless of where you are in the filing system: mysql Your  shell path  is a bunch of absolute paths of the filing system separated by colons  : You can find out what's in your path by launching  Terminal  in  Applications/Utilities  and entering: echo $PATH And the result should be like this… /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin So this is stating that you can run Unix style applications or commands located in 5 default locations of a certain  path  in the filing system: /usr/local/bin /usr/bin /bin /usr/sbin /sbin These directories are not visible by default in the filin