as we install new drivers , their binary updations to system path becomes neccesityas there is one temporary method to export path via terminal
but when i want to make it permannent i have to set in root/.bashrc,root/.profile& home/.bashrc, home/.profile
after updating a path here as
export PATH=`$PATH:/usr/local/cuda-11.8/bin`export LD_LIBRARY_PATH=`$LD_LIBRARY_PATH:/usr/local/cuda-11.8/lib64`in all four files mentioned abovesthe PATH Defination gets updated and basic linux commands like clear and ls also not works
i get to realise it has to be insert in a list/array faishon so i refer this post how-to-multiple-entries-to-path
so i updated PATH in all above four files as
export PATH='/bin:\ /usr/bin:\ /usr/sbin:\ /usr/local/cuda-11.8/bin:\'
but even after this my basic linux commands are working but cuda is not able to detect when i am hitting nvcc -v in terminal as nvcc location is already at exported as export PATH=$PATH:/usr/local/cuda-11.8/bin`
i dont know where i am making mistake please help
to help me which knowldege and awareness i am lacking so i am stuck to this problem