pgf90: command not found in new terminal (disapper when close the terminal)

Hello,

I have installed pgf90 by following
https://www.pgroup.com/resources/docs/18.4/x86/pgi-install-guide/
for my Linux Centos 7 system.
After installation, I check by following command
which pgf90
pgf90 -V
both command showing
[IqbalHossan@localhost pgi]$ pgf90 -V

pgf90 19.10-0 LLVM 64-bit target on x86-64 Linux -tp skylake
PGI Compilers and Tools
Copyright © 2019, NVIDIA CORPORATION. All rights reserved.
[IqbalHossan@localhost pgi]$ which pgf90
/home/IqbalHossan/Documents/software/pgi/linux86-64/19.10/bin/pgf90
[IqbalHossan@localhost pgi]$ pgf90 -V

pgf90 19.10-0 LLVM 64-bit target on x86-64 Linux -tp skylake
PGI Compilers and Tools
Copyright © 2019, NVIDIA CORPORATION. All rights reserved.


But when I close the terminal or open a new terminal and use those same commands (which pgf90 & pgf90 -V),
It is giving me
pgf90: Command not found.

IqbalHossan@localhost software]$ which pgf90
pgf90: Command not found.
[IqbalHossan@localhost software]$ cd pgi
[IqbalHossan@localhost pgi]$ which pgf90
pgf90: Command not found.

Would you please help me?
Thanks in advance

Hi Hossan,

Linux does not retain environment settings by default so each time you open a new terminal you need to reset your environment.

Though if you add the PATH settings as described at: https://www.pgroup.com/resources/docs/19.10/x86/pgi-install-guide/#install-linux-end-usr-env-settings to your shell’s local rc file found in your home directory (such as ~/.bashrc for Bash, ~/.chsrc for CSH), which gets run each time you open a new terminal, you wont need to manually set it each time.

Hope this helps,
Mat

Thank you so much