I'm working with the JetBrains Clion IDE. To be able to start Clion from any directory, I added cide/bin to your $PATH environment variable. Here cide is the installation home.

The updated $PATH variable for the machine is:


When I try to execute the file clion.sh that is in cide/bin gets the error

bash: ./clion.sh: No such file or directory
  • 2
    You're specifying the directory to find the script (./), so the $PATH is not involved. Does the script reside in the current directory? Does it have execute permissions? Dec 30, 2020 at 4:07
  • No the file is not in the cwd. It do have the execute permission. @glennjackman Dec 30, 2020 at 4:09
  • 1
    Invoke it like clion.sh without ./ Dec 30, 2020 at 4:10
  • Thanks @glennjackman it worked. Dec 30, 2020 at 4:11
  • Use $PWD/clion.h Dec 30, 2020 at 5:05


Browse other questions tagged .