I typed export in the terminal and found two variables that were related to cuda (I’m a newbie, pardon if I am wrong)
declare -x LD_LIBRARY_PATH="/usr/local/cuda-11.4/lib64:/usr/local/cuda/lib
declare -x PATH="/home/ansh.arora/tmp/ENTER/bin:/home/ansh.arora/tmp/ENTER/condabin:/usr/local/cuda-11.4/bin:/usr/lib64/qt-3.3/bin:/usr/local/cuda/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/ansh.arora/.local/bin:/home/ansh.arora/bin