简体   繁体   中英

Ubuntu Unable to execute No such file or directory

Installed Ubuntu and get this error. Latest Python package installed

Command: sudo./Task1.py

Error: sudo: unable to execute./Task1.py: No such file or directory

Working Command:

  • sudo
  • chmod +x Task1.py
  • gedit Task1.py

but sudo./Task1.py not working can anyone help me

Thank you

ls to check you are in the correct directory. Then try python task.py

Several ways:

  1. use pwd to show dir address.
  2. use ls | grep py ls | grep py to see whether it is there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM