No such file or directory

Hi,
I´m currently doing the Linux and python basic course and I keep getting the error message in the terminal whenever I try to execute a python code: “No such file or directory”

It appears in both courses so I´m not sure what the reason is… any suggestions?

cheers,
Karan

Hi @karan.moallim,
Welcome to the community :slight_smile:
This sounds like you forgot to make the file executable. To do this, run the following command:

chmod +x 'filename'

to check whether files have the execute permission, you can check with
ls
this should list all the files in your directory. If the name is green, the file is executable.

Hello my first introduction program says errno2 no such file or directory I’m a beginner please help

Hi @gigimuks,

are you still facing the problem?

If so, could you tell us which command you tried to execute and what was the output?

1 Like