how to use linux shell command in python code example
Example 1: linux command on python
import os
os.system("command..")
Example 2: shell command python
import subprocess
subprocess.run(["ls", "-l"])
import os
os.system("command..")
import subprocess
subprocess.run(["ls", "-l"])