Skip to main content
2 of 5
Fixed formatting
ajgringo619
  • 3.6k
  • 2
  • 18
  • 41

Trying to add a directory with various scripts to my PATH, but it is not running the script when called from outside the directory

I am very new to Linux and I am trying to run scripts that someone else created. I recently learned about the $PATH variable, and realized that I need to add my scripts folder to my $PATH variable in order to make it callable from anywhere on the terminal. However, even when I add the folder containing my script to the $PATH variable, the script inside is not being recognized.

I have edited my bashrc file in a text editor, at the bottom to include:

#Modify $PATH
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/eli/miniconda3/bin:$HOME/Scripts/2bRAD_Edwards_Lab"

My script is located in $HOME/Scripts/2bRAD_Edwards_Lab, but when I try to run it it says the directory is not found. Can anyone help?