If we want to keep these variables, we can use redirection to append the environment variable to the so-called profile file.

Fantastic! With >>, we can append a PATH to the end of the  .bash_profile file.

Psst: this profile file sets environment variables at the beginning of a Terminal session.

Wouldn't that overwrite the profile file instead of just adding the PATH to it?