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

Hello,

I have installed pgf90 by following

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 (c) 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 (c) 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: PGI Installation Guide Version 19.10 for x86 and NVIDIA Processors 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