0

I am trying to run linux command like ls, pwd,etc. directly in python console but failed.

#python3
>ls
>pwd

Is there a way to do that?

derek
  • 9,358
  • 11
  • 53
  • 94
  • 3
    Possible duplicate of [Calling an external command in Python](https://stackoverflow.com/questions/89228/calling-an-external-command-in-python) – Iain Shelvington Sep 07 '19 at 07:14
  • @IainShelvington derek is asking how to run a linux command from a *python shell*, not from a *python script*. – Lord Elrond Sep 07 '19 at 08:55

0 Answers0