How to allow Terminal to Find Commands without Export PATH?

The terminal on my Macbook Pro cannot find any commands until I enter this before every session I use :

export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"

How can I make it so that I do not have to enter this every time I use the terminal to use commands?


Solution 1:

Each shell has ‘profile’ files, the contents of which are run when the shell is launched. For bash, this includes ~/.bash_profile. Create this file and add any commands you wish to run in that file, then relaunch your shell.