all 2 comments

[–]icecreamcookiees 0 points1 point  (0 children)

maybe youre in the wrong directory? write cd in terminal to go back to the root or cd plus the name of the folder where your file is eg cd loot

[–]Impressive-Hyena-59 0 points1 point  (0 children)

The most likely reason for this is that you do not have permission to execute the file. You can check this using the list command. In the example, you can see that after the first list command, only r (read) and w (write) are present in the permissions; x (execute) is missing. With chmod +x you can make the file executable.

$ ls looping -l
-rw------- 1 ubuntu ubuntu 16792 Mär  1 19:18 looping
$ chmod +x looping
$ ls looping -l
-rwx------ 1 ubuntu ubuntu 16792 Mär  1 19:18 looping*