No such file or directory

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?


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
this should list all the files in your directory. If the name is green, the file is executable.