2

Following the instructions on the Arduino install page, once I arrive in my extracted directory and run install.sh in the terminal, I get the message:

install.sh: command not found

How do I install the Arduino software on Ubuntu 20.04 64-bit?

1 Answer 1

4

You need to type ./install.sh instead.

The ./ indicates that you want to run a file in your current working directiry. Without the leading ./ linux will search in your $PATH for an executable program with that name.

4
  • I don't fully understand this. 'install.sh' is inside my cwd. What is ./ doing? I thought by typing xyz.xxx in my cwd it would indicate that I want to run that file.
    – gfries
    Feb 13, 2022 at 16:13
  • 3
    The ./ indicates that you want to run a file in your current working directiry. Feb 13, 2022 at 16:14
  • 1
    Note that . (dot) implied your current directory.
    – Liso
    Feb 13, 2022 at 16:27
  • 1
    A bit of explanation: only files in your $PATH will be executed without the need of specifying their full path. By typing ./ before the executable name, you provide the full path. You could add "." to your $PATH, meaning "whatever the current directory is", in order to avoid having to type ./ before every executable in your current directory. However, this is not recommended, as it is a security exposure.
    – Jos
    Feb 13, 2022 at 16:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.