Atom save files not recognized in Bash


Hi guys, I’m new here and currently just started learning python.
I encountered a problem on my first lesson, where I created a .py file and follow all the necessary instruction.
But when I’m trying to run it on the terminal, the file seems not recognized nor exist.

Furthermore, I try to make another exact lines on text editor and everything seems running smoothly.

I’m running Ubuntu 16.04, any help?




Can you run cat [filename] and see the contents of your file? If so, then the problem isn’t with Atom.

Most likely, you are running into one of the following:

  • You’re not running the script with python [filename]
  • You haven’t set the script’s permissions with the execution bit turned on


Hi sorry, turns out it’s my fault.
I didn’t change my directory in the terminal and just execute immediately.
Thanks for your help!